Post Reply 
Answer - trigonometric equation
10-14-2016, 12:19 AM
Post: #1
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 .
Find all posts by this user
Quote this message in a reply
10-14-2016, 04:47 AM
Post: #2
RE: Answer - trigonometric equation
Go into settings and turn off "Principal:"
Find all posts by this user
Quote this message in a reply
10-14-2016, 05:05 AM (This post was last modified: 12-06-2016 11:49 PM by compsystems.)
Post: #3
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?




.
Find all posts by this user
Quote this message in a reply
10-14-2016, 03:41 PM
Post: #4
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
Find all posts by this user
Quote this message in a reply
10-14-2016, 05:03 PM
Post: #5
RE: Answer - trigonometric equation
You don't need | in CAS,
s:=solve(sin(x)=0);
s(1)(n_1=1)
Find all posts by this user
Quote this message in a reply
Post Reply 




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