How to solve complex equations?
Ältere Kommentare anzeigen
I am trying to solve the following equation.

I have the following script to solve for theta, but getting erro when I am running the program.
Any suggestions is much appreciated.
Thank you.
clc;
clear;
close all;
syms theta
assume(0 <= theta <= 2*pi)
t = 0.4e-3;
n = 1.523;
delta_y = 3;
S1 = solve(delta_y == t*sind(theta)*(1 - sqrt((1-sind(theta)^2)/n^2 - sind(theta)^2)),theta);
3 Kommentare
John D'Errico
am 13 Feb. 2024
Bearbeitet: John D'Errico
am 13 Feb. 2024
You don't say what that equation should model. While the picture seems to show the variables, it shows what appears to be a rectangle canted at an angle. But one edge of the rectangle seems to have length t, and the other parallel edge shows that as n. So your drawing does not make sense. Perhaps n and t do not mean what they are shown as. I might guess that n refers to one dimension of the rect, and t is the other. But that is just a wild guess. But then one cannot possibly derive the equation, or show that it is correct.
Torsten
am 13 Feb. 2024
You forgot a bracket around the denominator under the square root.
Navaneeth
am 14 Feb. 2024
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Equation Solving finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
