Solving Two Trig Equations Simultaneously

조회 수: 1 (최근 30일)
Frank Lehmann
Frank Lehmann 2018년 4월 20일
댓글: Frank Lehmann 2018년 4월 20일
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

답변 (1개)

Walter Roberson
Walter Roberson 2018년 4월 20일
syms E
simplify( subs(Vs, theta, solve(E==e,theta)) )
  댓글 수: 1
Frank Lehmann
Frank Lehmann 2018년 4월 20일
Thanks Walter works fine now a quadratic.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by