Re: [sage-support] exp(I*x) -- cos(x)+I*sin(x)

2011-03-27 Thread Francois Maltey
Dmitry Shkirmanov a écrit : Hello, list, i need a function that can exp(I*x) -- cos(x)+I*sin(x) At http://wiki.sagemath.org/symbolics/rewrite i found the rewrite function. But this function is not mentioned in Sage reference manual, and Sage 4.6.2 does not know this function: NameError: name

[sage-support] exp(I*x) -- cos(x)+I*sin(x)

2011-03-25 Thread Dmitry Shkirmanov
Hello, list, i need a function that can exp(I*x) -- cos(x)+I*sin(x) At http://wiki.sagemath.org/symbolics/rewrite i found the rewrite function. But this function is not mentioned in Sage reference manual, and Sage 4.6.2 does not know this function: NameError: name 'rewrite' is not defined How i

Re: [sage-support] exp(I*x) -- cos(x)+I*sin(x)

2011-03-25 Thread Laurent
How i can exp(I*x) -- cos(x)+I*sin(x) ? I wrote the following for personnal use : def ThisIsEulerFormula(t): Return t, but in a simplified form. We force Sage to see that exp(ix) is equal to cos(x)+i*sin(x) and then to simplify the trigonometric expressions. INPUT