HP Forums
Use of trig identities - 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: Use of trig identities (/thread-22435.html)



Use of trig identities - DaftHuman01 - 09-30-2024 06:10 PM

Hi. Does anyone know how I can use the HP Prime to automatically apply trig identities. I have attached an example of the equation and what the result could be. Thanks!


RE: Use of trig identities - C.Ret - 10-01-2024 03:19 PM

Bonjour,

You are welcome.

This type of linearization reminds me of the time when we used to simplify the applied equations to facilitate computations from abacuses or a slide rule. For this specific case, this linearization also has the advantage of giving the shape of the signal as a function of time.

Today, with the power of smartphones and personal digital assistants, I am not sure that this is still useful. However, the HP Prime can help quite easily with this trigonometric linearization:
[Image: attachment.php?aid=14023]

It can also easily do the calculation with the first expression containing several trigonometric functions.


RE: Use of trig identities - Albert Chan - 10-01-2024 08:37 PM

(10-01-2024 03:19 PM)C.Ret Wrote:  This type of linearization reminds me of the time when we used to simplify the applied equations to facilitate computations from abacuses or a slide rule.

Product of 2 numbers, cos product to cos sum, vs log/exp

Division of 2 numbers, cos product to cos sum, acos(1/x) = asec(x)


RE: Use of trig identities - Albert Chan - 10-01-2024 08:40 PM

cos product to cos sum identity proof, using complex numbers.

cos(a)*cos(b)
= (cis(a)+cis(-a))/2 * (cis(b)+cis(-b))/2
= (cis(a+b)+cis(-(a+b))/4 + (cis(a-b)+cis(-(a-b))/4
= cos(a+b)/2 + cos(a-b)/2

Cas> simplify(exp2trig(trig2exp(cos(a)*cos(b))))

1/2*cos(a+b) + 1/2*cos(a-b)


RE: Use of trig identities - DaftHuman01 - 10-04-2024 12:27 AM

(10-01-2024 03:19 PM)C.Ret Wrote:  Bonjour,

You are welcome.

This type of linearization reminds me of the time when we used to simplify the applied equations to facilitate computations from abacuses or a slide rule. For this specific case, this linearization also has the advantage of giving the shape of the signal as a function of time.

Today, with the power of smartphones and personal digital assistants, I am not sure that this is still useful. However, the HP Prime can help quite easily with this trigonometric linearization:
[Image: attachment.php?aid=14023]

It can also easily do the calculation with the first expression containing several trigonometric functions.

Thank you for the help. It seems kind of strange though to have to put decimal points after every number for this to work though. Can you also help me with how I can solve the problem in the attached image with the HP Prime as well? Thank you in advance.


RE: Use of trig identities - C.Ret - 10-05-2024 11:07 AM

(10-04-2024 12:27 AM)DaftHuman01 Wrote:  It seems kind of strange though to have to put decimal points after every number for this to work though.

I deliberately put decimal points at each number in order to be consistent.

But, in general these points are present in order to control the type of result that is expected.
Without decimal points, expressions composed of integers will be considered exact by the CAS of the HP Prime and will give exact results even if it means producing extended expressions. The same type of results can be obtained by using the exact command.

The decimal points indicate that it is an approximate value and exempt the CAS system from generating an exact expression. This allows you to obtain a numerical value.
[Image: attachment.php?aid=14018]
The interest here is to obtain an approximate value of the additive constant as in the formula given as an example (i.e. 344.146).

If we do without the decimal points or if we use the exact command, the expression obtained does not give a numerical approximation but the exact expression of this additive constant (i.e. 600*cos(55°) ).

(10-04-2024 12:27 AM)DaftHuman01 Wrote:  Can you also help me with how I can solve the problem in the attached image with the HP Prime as well?

[Image: attachment.php?aid=14033]

I am not aware of any way to control the appearance of complex numbers in polar format in the HP Prime CAS. As such, there is no easy and immediately accessible way to achieve the simplification performed in this example.

Unlike other machines, there is no way in CAS mode to choose polar format for complex numbers.

In HOME mode, any complex result can be displayed in cartesian or polar format simply by pressing the shifted toggle key [ Shift ][ ∡ ]. But this functionality does not exist in CAS mode.

This state of affairs has already been noted and has already been discussed by others on the forum, for example here under the input of Dands.

[Image: attachment.php?aid=14043]

On the other hand, this is not really a simplification by trigonometric properties, but a simple simplification of the numerator and denominator by the some 80 factor.

Indeed, \( 80\angle 36.8699 = 80\cdot \left ( 1\angle 36.8699 \right ) \) as well as \( 80\angle 36.8699 = 64+48\, \textit{i} = 80\cdot \left ( 0.8+0.6\, \textit{i} \right ) \) and \( 160 = 2\cdot 80 \).