Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Symbolic Toolbox: Solution of Trigonometric Equations
Replies: 4   Last Post: Jul 22, 2013 8:00 AM

 Messages: [ Previous | Next ]
 Nasser Abbasi Posts: 6,677 Registered: 2/7/05
Re: Symbolic Toolbox: Solution of Trigonometric Equations
Posted: Jun 15, 2013 4:13 AM

On 6/15/2013 1:45 AM, Dinesh Bhati wrote:
>Toolbox is returning only one.I have plotted function 'p'. It has no. of minimas.
>
> syms t10 t11
> p=(cos(t11)*sin(t10) + sin(t10)^3*cos(t11)*+sin(t10)^2 - cos(t11)^2*sin(t10)^2);
> eq1=diff(p,t10);
> eq2=diff(p,t11);
> s=solve(eq1,eq2,'t10','t11')
> s.t10
> s.t11

There are a little more to it. You might be better of either do it
by hand, or find a ready to use code, or write one yourself.
May be file exchange has something. (or toolbox might allready have
one, do not know)

But here is a sketch of algorithm:

given: f(x,y)

1) find diff(f,x) and diff(f,y)
2) find solution to diff(f,x)=0. let sol be yi and xi
3) replace y in diff(f,y) by yi. Now solve diff(f,y)=0 for xj
4) just found critical point(s) (xj,yi)
5) now replace x in diff(f,y) by xi from (2) and solve diff(f,y)=0 for yj
6) found another critical point(s) (xi,yj)
7) check each point if min/max/saddle points using second derivatives.

--Nasser

Date Subject Author
6/14/13 Dinesh Bhati
6/14/13 Nasser Abbasi
6/15/13 Dinesh Bhati
6/15/13 Nasser Abbasi
7/22/13 Christopher Creutzig