Effacer les filtres
Effacer les filtres

Solving Two Trig Equations Simultaneously

1 vue (au cours des 30 derniers jours)
Frank Lehmann
Frank Lehmann le 20 Avr 2018
Commenté : Frank Lehmann le 20 Avr 2018
Hi All,
Having difficulty solving the below 2 equations
syms theta V
e=V*sin(theta) % Equation 1 = V*sin(theta)
Vs=int(e,0,theta)
Vs=rewrite(Vs,'sin') %Equation 2 = 2*V*sin(theta/2)^2
Now I want to solve both w.r.t "e"
% Final equation 3 should be = (Vs/V)^2 - 2*(Vs/V)+1= 1-(e/V)^2 or something similar.
I have tried "Subs", "Solve", "equationsToMatrix" and run out of ideas. I end up with struct with fields and when solved I get blanket "0's" across the board or 0 in general.
Any ideas, anyone?
As always, many thanks.
Frank

Réponses (1)

Walter Roberson
Walter Roberson le 20 Avr 2018
syms E
simplify( subs(Vs, theta, solve(E==e,theta)) )
  1 commentaire
Frank Lehmann
Frank Lehmann le 20 Avr 2018
Thanks Walter works fine now a quadratic.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by