HP Forums
simplify(9*sin(3)-9*sin(8)) gives long results - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: simplify(9*sin(3)-9*sin(8)) gives long results (/thread-3311.html)



simplify(9*sin(3)-9*sin(8)) gives long results - jepessen - 03-08-2015 08:55 PM

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?


RE: simplify(9*sin(3)-9*sin(8)) gives long results - Mark Hardman - 03-08-2015 09:11 PM

You can use 'collect' to get the result you want:

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


RE: simplify(9*sin(3)-9*sin(8)) gives long results - jepessen - 03-08-2015 09:19 PM

It seems to work. Thanks.