Previous Up Next

5.23.20 Rewriting trigonometric functions in terms of tan(x/2) and hyperbolic functions in terms of exp(x): halftan_hyp2exp

The halftan_hyp2exp command rewrites the trigonometric function in terms of tan(x/2) (like halftan, see Section ‍5.23.19) and rewrites the hyperbolic functions in terms of their definitions using exponentials, namely:

     
  sinh(x)
= 
exex
2
         
cosh(x)
= 
ex+ex
2
         
tanh(x)
= 
exex
ex+ex
 =
e2x−1
e2x+1
         

Examples


Previous Up Next