How to solve complex equations?
Afficher commentaires plus anciens
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 commentaires
John D'Errico
le 13 Fév 2024
Modifié(e) : John D'Errico
le 13 Fév 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
le 13 Fév 2024
You forgot a bracket around the denominator under the square root.
Navaneeth
le 14 Fév 2024
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Equation Solving dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
