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
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
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