First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 10 years ago

FrédéricC gravatar image

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
click to hide/show revision 2
No.2 Revision

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