How to solve complex equations?
Mostrar comentarios más antiguos
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 comentarios
John D'Errico
el 13 de Feb. de 2024
Editada: John D'Errico
el 13 de Feb. de 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
el 13 de Feb. de 2024
You forgot a bracket around the denominator under the square root.
Navaneeth
el 14 de Feb. de 2024
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Equation Solving en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
