HP Forums
Trig simplifying hp50g - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Trig simplifying hp50g (/thread-3688.html)



Trig simplifying hp50g - attle123 - 04-21-2015 08:37 AM

hello,

when i was playing around with the hp50g, i was having a hard time of simplifying trig equations with tan() and sin() inside a single equation. E.g: if i wished to simplify (sin(x)^2)/cos(x), the answer would be sin(x)*tan(x). however i simply could not get the calculator to give this answer. Anyone able to give me a hand?


Thanks


RE: Trig simplifying hp50g - Thomas Ritschel - 04-21-2015 12:32 PM

There are quite a few commands for manipulating trigonometric functions hidden in the Catalog (CAT = right-shift SYMB), for example the TRIGSIN and TRIGTAN commands.

If you have SIN(X)/COS(X) on the stack, TRIGTAN will yield TAN(X) as expected.

However, for your example TRIGTAN (followed by EVAL) will produce TAN(X)^2 * COS(X), which is also correct, but not what you want. Setting flag 116 ("Prefer sin(x)") doesn't help.

Maybe someone else has a solution...

BTW, on the HP Prime the following works: simplify(cos2sintan(SIN(x)^2/COS(x))) = SIN(x) * TAN(x)


RE: Trig simplifying hp50g - Gilles - 04-22-2015 11:16 AM

(04-21-2015 12:32 PM)Thomas Ritschel Wrote:  There are quite a few commands for manipulating trigonometric functions hidden in the Catalog (CAT = right-shift SYMB), for example the TRIGSIN and TRIGTAN commands.

You can access more easily to these functions with "LShift TRIG"

To rewrite algebraic expression RShift CONVERT REWRITE is also interesting

All these functions can be used in EQW and can be applied to a subset of the equation. It's easy (POWEXPAND) to change :

SIN(X)²
------
COS(X)

in

SIN(X).SIN(X)
-------------
COS(X)

but I don't know how to change this in
Code:

        SIN(X)
SIN(X).-------
        COS(X)
Perhaps you can write a small program with the MATCH command.


RE: Trig simplifying hp50g - Tugdual - 04-22-2015 12:34 PM

To me
$$\sin { (x)*\tan { (x) } } $$ is not a simplified version of $$\frac { { \sin { \left( x \right) } }^{ 2 } }{ \cos { \left( x \right) } } $$ it is just another way to write it.

Not sure what the "simplify" functions of 50g and Prime are trying to do but the 50g answer with flag 116 being set to "Prefer cos" $$\frac { 1-{ \cos { \left( x \right) } }^{ 2 } }{ \cos { \left( x \right) } } $$ which presents a certain interest especially since you can now envisage substitution.

Now in order to find a "tan", I would rather use the TRIGT rewriting command that unfortunately returns a pretty silly and ugly result until you press EVAL as mentioned by Thomas earlier. Note that simplifying $$\tan { \left( x \right) *\sin { \left( x \right) } } $$ quite rapidly becomes tedious and mental and you never get any close to the first form. 50g CAS doesn't happen very capable.