On Monday, October 1, 2018 at 4:55:14 PM UTC-4, Simon King wrote: > > Hi! > > I get the following with sage-8.4.beta5: > sage: f(x) = cos(pi*x) > sage: (f(x)*exp(-I*pi*x)).integral(x)(x=1/2) - > (f(x)*exp(-I*pi*x)).integral(x)(x=-1/2) > 1/2 > sage: (f(x)*exp(-I*pi*x)).integral(x,-1/2,1/2) > 1 > > The previous two expressions are not equal, but I think they should be > equal. Is it a stupid mistake of mine (but then, Wolfram alpha does the > same stupid mistake), is it a known bug, or a new bug (in that case I > should create some ticket, that would probably be my first on > calculus...)? >
Please do. It's likely something related to https://trac.sagemath.org/ticket/21440 and https://trac.sagemath.org/wiki/symbolics#Integrationtickets where you can browse to your heart's content :-) For some reason the wrong branch seems to get chosen by Maxima at times. For what it's worth: sage: (f(x)*exp(-I*pi*x)).integral(x,-1/2,1/2,algorithm='sympy') 1/2 -- 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.
