Answer - trigonometric equation
10-14-2016, 12:19 AM
Post: #1
 toya29 Junior Member Posts: 1 Joined: Apr 2016
Answer - trigonometric equation
Hi. When i try to solve a trigonometric equation. I'm not sure how to receive the answers in terms of pi and n. for example:

solve(sin(x)=0) = {0, pi}

but i want receive {n*pi}

My firmware is 10637 (29/08/2016)

thanks .
10-14-2016, 04:47 AM
Post: #2
 Steve Keeley Junior Member Posts: 18 Joined: Apr 2014
RE: Answer - trigonometric equation
Go into settings and turn off "Principal:"
10-14-2016, 05:05 AM (This post was last modified: 12-06-2016 11:49 PM by compsystems.)
Post: #3
 compsystems Senior Member Posts: 1,384 Joined: Dec 2013
RE: Answer - trigonometric equation
CAS Settings: Principal Solution: [OFF]

solve( sin(x)= 0, x) ;
[enter] returns
{n_0*π} // ok

but
Ans[1]|(n_0 = 1) not evaluated, Why?

.
10-14-2016, 03:41 PM
Post: #4
 Han Senior Member Posts: 1,882 Joined: Dec 2013
RE: Answer - trigonometric equation
(10-14-2016 05:05 AM)compsystems Wrote:  CAS Settings: Principal OFF

solve( sin(x)= 0, x) ;
[enter] returns
{n_0*π} // ok

but
(Ans[1]|(n_0 = 1)) not evaluated, Why?

This may be due to the priority of the | (where) operator. The (literal) expression "Ans[1]" does not contain any references to n_0 so that substitution does nothing. After evaluation of Ans[1], you get the unevaluated result because the evaluation of n_0 = 1 happened before the evaluation of Ans[1].

There was an old thread discussing this a while back...

Graph 3D | QPI | SolveSys
10-14-2016, 05:03 PM
Post: #5
 parisse Senior Member Posts: 1,326 Joined: Dec 2013
RE: Answer - trigonometric equation
You don't need | in CAS,
s:=solve(sin(x)=0);
s(1)(n_1=1)
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)