Ask Your Question
1

expand hyperbolic trig functions

asked 2014-07-23 15:48:08 +0100

rws gravatar image

Part of a symbolic expression is

ex = 2*e^(1/2*x)*sinh(1/2*x)

How to substitute sinh(x) with its expansion (e^x-e^(-x))/2 and simplify ex to e^x-1? I have tried all expand and simplify functions.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-07-23 16:24:57 +0100

FrédéricC gravatar image

updated 2014-07-23 16:32:20 +0100

Is this what you need ?

sage: ex2 = ex.subs_expr(sinh(x/2) == (exp(x/2)-exp(-x/2))/2)
sage: ex2.exp_simplify()
e^x - 1

or even better

sage: w0 = SR.wild(0)
sage: ex2 = ex.subs_expr(sinh(w0) == (exp(w0)-exp(-w0))/2)
sage: ex2.exp_simplify()
e^x - 1
edit flag offensive delete link more

Comments

This substitution should happen on expand() or expand_trig() IMHO.

rws gravatar imagerws ( 2014-07-23 17:01:53 +0100 )edit

Perhaps, but I'm not sure if it is available in any of the expansions in Ginac or Maxima.

kcrisman gravatar imagekcrisman ( 2014-07-23 17:14:14 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-07-23 15:48:08 +0100

Seen: 1,381 times

Last updated: Jul 23 '14