How to solve Simultaneous Quadratic Equations?

I have to solve two quadratic equations simultaneously as follows:
a1*tan^2(x)+b1*tan(x)+c1=0
a2*tan^2(r*x)+b2*tan(r*x)+c2=0
Here, a1, a2, b1, b2, c1, c2, r are known quantities.
I have to find out the value of x.
Thanks in advance.

답변 (2개)

John D'Errico
John D'Errico 2018년 4월 11일
편집: John D'Errico 2018년 4월 11일

0 개 추천

These are not quadratic equations. The mere possession of a square in there does not make it quadratic. The possession of tan(x) does makes it nonlinear.
Use fsolve or vpasolve.
Oh. And learn how to write the square of a function in MATLAB. tan^2(x) is not valid syntax. tan(x)^2 or tan(x).^2 is valid syntax.
Torsten
Torsten 2018년 4월 11일

0 개 추천

For the first equation, substitute y = tan(x) and solve the quadratic equation in y.
For the second equation, substitute z = tan(r*x) and solve the quadratic equation in z.
If atan(y) = 1/r*atan(z), the system from above has a solution: x = atan(y) ( = 1/r*atan(z)).
Best wishes
Torsten.

댓글 수: 3

Thanks for the answer.
But as you mentioned, If atan(y) = 1/r*atan(z), then solution is x = atan(y) ( = 1/r*atan(z)), but it is not satisfying.
Torsten
Torsten 2018년 4월 11일
Then there is no solution.
Ok. Thanks

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

카테고리

도움말 센터File Exchange에서 Optimization Toolbox에 대해 자세히 알아보기

태그

질문:

2018년 4월 11일

댓글:

2018년 4월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by