Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A proposal to Trac#10038 (relevant ticket) needs review...

Possible interim workarounds :

sage: var("a, b")
(a, b)
sage: sin(x).maxima_methods().exponentialize()
-1/2*I*e^(I*x) + 1/2*I*e^(-I*x)
sage: tan(x)._sympy_().rewrite("exp")._sage_()
-I*(e^(I*x) - e^(-I*x))/(e^(I*x) + e^(-I*x))
sage: exp(a + I*b).maxima_methods().demoivre()
(cos(b) + I*sin(b))*e^a
sage: exp(I*x)._sympy_().rewrite("sin")._sage_()
cos(x) + I*sin(x)
sage: exp(x)._sympy_().rewrite("sin")._sage_()
cosh(x) + sinh(x)

A proposal to Trac#10038 (relevant ticket) needs review...

Possible interim workarounds :

sage: var("a, b")
(a, b)
sage: sin(x).maxima_methods().exponentialize()
-1/2*I*e^(I*x) + 1/2*I*e^(-I*x)
sage: tan(x)._sympy_().rewrite("exp")._sage_()
-I*(e^(I*x) - e^(-I*x))/(e^(I*x) + e^(-I*x))
sage: exp(a + I*b).maxima_methods().demoivre()
(cos(b) + I*sin(b))*e^a
sage: exp(I*x)._sympy_().rewrite("sin")._sage_()
cos(x) + I*sin(x)
sage: exp(x)._sympy_().rewrite("sin")._sage_()
cosh(x) + sinh(x)

EDIT : This propoosal has been integrated in 9.5.beta0 ; the SymbolicRing class has nowdemoivreandexponentializemethods (implemented insage, not directly in ginac/pynac, which is way above my pay grade...).

HTH,

A proposal to Trac#10038 (relevant ticket) needs review...

Possible interim workarounds :

sage: var("a, b")
(a, b)
sage: sin(x).maxima_methods().exponentialize()
-1/2*I*e^(I*x) + 1/2*I*e^(-I*x)
sage: tan(x)._sympy_().rewrite("exp")._sage_()
-I*(e^(I*x) - e^(-I*x))/(e^(I*x) + e^(-I*x))
sage: exp(a + I*b).maxima_methods().demoivre()
(cos(b) + I*sin(b))*e^a
sage: exp(I*x)._sympy_().rewrite("sin")._sage_()
cos(x) + I*sin(x)
sage: exp(x)._sympy_().rewrite("sin")._sage_()
cosh(x) + sinh(x)

EDIT : This propoosal proposal has been integrated in 9.5.beta0 ; the SymbolicRing class has nowdemoivreandexponentializemethods (implemented insage, not directly in ginac/pynac, which is way above my pay grade...).

HTH,

A proposal to Trac#10038 (relevant ticket) needs review...

Possible interim workarounds :

sage: var("a, b")
(a, b)
sage: sin(x).maxima_methods().exponentialize()
-1/2*I*e^(I*x) + 1/2*I*e^(-I*x)
sage: tan(x)._sympy_().rewrite("exp")._sage_()
-I*(e^(I*x) - e^(-I*x))/(e^(I*x) + e^(-I*x))
sage: exp(a + I*b).maxima_methods().demoivre()
(cos(b) + I*sin(b))*e^a
sage: exp(I*x)._sympy_().rewrite("sin")._sage_()
cos(x) + I*sin(x)
sage: exp(x)._sympy_().rewrite("sin")._sage_()
cosh(x) + sinh(x)

EDIT : This proposal has been integrated in 9.5.beta0 ; the SymbolicRing SymbolicRing class has nownow demoivredemoivre and andexponentializeexponentialize methods (implemented inin sage, not directly in inginacginac//pynac, pynac`, which is way above my pay grade...).

HTH,

A proposal to Trac#10038 (relevant ticket) needs review...

Possible interim workarounds :

sage: var("a, b")
(a, b)
sage: sin(x).maxima_methods().exponentialize()
-1/2*I*e^(I*x) + 1/2*I*e^(-I*x)
sage: tan(x)._sympy_().rewrite("exp")._sage_()
-I*(e^(I*x) - e^(-I*x))/(e^(I*x) + e^(-I*x))
sage: exp(a + I*b).maxima_methods().demoivre()
(cos(b) + I*sin(b))*e^a
sage: exp(I*x)._sympy_().rewrite("sin")._sage_()
cos(x) + I*sin(x)
sage: exp(x)._sympy_().rewrite("sin")._sage_()
cosh(x) + sinh(x)

EDIT : This proposal has been integrated in 9.5.beta0 ; the SymbolicRing class has now demoivre and exponentialize methods (implemented in sage, sage, not directly inin ginacginac//pynacpynac`, , which is way above my pay grade...).

HTH,

A proposal to Trac#10038 (relevant ticket) needs review...

Possible interim workarounds :

sage: var("a, b")
(a, b)
sage: sin(x).maxima_methods().exponentialize()
-1/2*I*e^(I*x) + 1/2*I*e^(-I*x)
sage: tan(x)._sympy_().rewrite("exp")._sage_()
-I*(e^(I*x) - e^(-I*x))/(e^(I*x) + e^(-I*x))
sage: exp(a + I*b).maxima_methods().demoivre()
(cos(b) + I*sin(b))*e^a
sage: exp(I*x)._sympy_().rewrite("sin")._sage_()
cos(x) + I*sin(x)
sage: exp(x)._sympy_().rewrite("sin")._sage_()
cosh(x) + sinh(x)

EDIT : This proposal has been integrated in 9.5.beta0 ; the SymbolicRing class has now demoivre and exponentialize methods (implemented in sage, not directly in ginac/pynac, which is way above my pay grade...).

HTH,