Skip to content

integrate gives wrong result when using maxima #24316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sagetrac-stassev mannequin opened this issue Dec 2, 2017 · 1 comment
Open

integrate gives wrong result when using maxima #24316

sagetrac-stassev mannequin opened this issue Dec 2, 2017 · 1 comment

Comments

@sagetrac-stassev
Copy link
Mannequin

sagetrac-stassev mannequin commented Dec 2, 2017

I'm using sage 8.0. Here is what I get:

sage: b,c,d=var('b c d')

sage: integrate(sqrt(b*cos(x)^2 + c*sin(x)^2 + 2*d*sin(x)*cos(x)), x, 0, 2*pi,algorithm='maxima')

-1/2*pi*b

That answer cannot possibly be correct, as the integrand is symmetric in b and c (you can substitute x with pi/2-x ...). Checking the answer numerically shows that it is indeed wrong.

Component: symbolics

Issue created by migration from https://trac.sagemath.org/ticket/24316

@sagetrac-stassev sagetrac-stassev mannequin added this to the sage-8.1 milestone Dec 2, 2017
@rwst
Copy link
Contributor

rwst commented Dec 28, 2017

comment:2

See also #18599, #18821, #24117.

@mkoeppe mkoeppe removed this from the sage-8.1 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants