How to solve complex equations?
显示 更早的评论
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 个评论
John D'Errico
2024-2-13
编辑:John D'Errico
2024-2-13
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
2024-2-13
You forgot a bracket around the denominator under the square root.
Navaneeth
2024-2-14
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Equation Solving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
