Post Reply 
simplify(9*sin(3)-9*sin(8)) gives long results
03-08-2015, 08:55 PM
Post: #1
simplify(9*sin(3)-9*sin(8)) gives long results
Hi.

I have this expression:

9*sin(3)-9*sin(8)

I tried to use "simplify" in order to obtain a more compact result. I was expecting

9*(sin(3)-sin(8))

But I've obtained

1152*cos(1)*sin(1)^7-1728*cos(1)*sin(1)^5+720*cos(1)*sin(1)^3-72*cos(1)*sin(1)-36*sin(1)^3+27*sin(1)

The calculator has created an expression in which sin and cos have same argument.

Is this correct? because I did not expected something like this from the "simplify" command.
Is there another way to collect terms and obtain the expression that I expected?
Find all posts by this user
Quote this message in a reply
03-08-2015, 09:11 PM (This post was last modified: 03-08-2015 09:14 PM by Mark Hardman.)
Post: #2
RE: simplify(9*sin(3)-9*sin(8)) gives long results
You can use 'collect' to get the result you want:

collect(9*SIN(3)-9*SIN(8)) ----> 9*(SIN(3)-SIN(8))

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
03-08-2015, 09:19 PM
Post: #3
RE: simplify(9*sin(3)-9*sin(8)) gives long results
It seems to work. Thanks.
Find all posts by this user
Quote this message in a reply
Post Reply 




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