Your question is puzzling since i is a constant, and 1/(s-i) = (s+i)/(s^2+1) so the expressions are equal.
John Cremona On 6 Mar 2017 17:35, "Hemanth G" <[email protected]> wrote: > Dear All, > > How do you make SageMath to consider the term "i" as a complex term.Here > the SageMath is considering "i" as a constant.This question is > in wake of problem faced in getting Laplace transform of exp(i*x). The > answer should be [s/(s^2+1)] +i* [1/(s^2+1)] whereas I am getting > 1/(s-I). The answer should be [s/(s^2+1)] +i* [1/(s^2+1)] since this > infers to cos(x)+i*sin(x) when we take the inverse Laplace transform. > Please refer the codes below. > > ##codes used in SageMath > var('s,x') > i=sqrt(-1) > f=exp(i*x) > f.laplace() > ## Answer from this code is 1/(s-I) > ##Required answer is [s/(s^2+1)] +i*[1/(s^2+1)] > > Could anyone help me in this matter.Thank you. > > With Best Regards/ Mit Besten Grüßen / Sincères Salutations > Hemanth Gaekwad > > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
