Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I program MATLAB to calculate the argument of a cubed tangent function?

Tags:

matlab

I need to solve tan^3(w)=tan(s) for w where s= 1.5 radians or 16.845 degrees. I need to write a line of MATLAB code for this operation but do not know an equivalent form of the equation.

like image 563
user1869171 Avatar asked Nov 04 '22 09:11

user1869171


1 Answers

solve('tan(x)^3==tan(1.5)','x')

Answer:

                                      1.1783511187702876557436189917532
- 1.3391755593851438278718094958766 + 0.35610550401885024116569451380696*i
- 1.3391755593851438278718094958766 - 0.35610550401885024116569451380696*i

One real solution, and two complex solutions.

(This was tested in Matlab R2012a)

like image 137
Aziz Avatar answered Nov 15 '22 08:11

Aziz