Skip to content

integral with sqrt(cos)*sin unsolved #18821

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
rwst opened this issue Jun 30, 2015 · 2 comments
Open

integral with sqrt(cos)*sin unsolved #18821

rwst opened this issue Jun 30, 2015 · 2 comments

Comments

@rwst
Copy link
Contributor

rwst commented Jun 30, 2015

F = lambda z: (2/pi)*integral((4*cos(x)^2-1)^z*sin(x)^2,x,0,pi)
print F(1/2)
...
RuntimeError: ECL says: Error executing code in Maxima:

sage: a=numerical_integral(real(2/pi*(4*cos(x)^2-1)^(.5)*sin(x)^2),0,pi)
sage: b=numerical_integral(imag(2/pi*(4*cos(x)^2-1)^(.5)*sin(x)^2),0,pi)
sage: a[0]+b[0]*i
0.483843757993525*i + 0.3697166887548152

http://ask.sagemath.org/question/27235/problem-with-integral/

Component: calculus

Keywords: Maxima, integrate

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

@rwst rwst added this to the sage-6.8 milestone Jun 30, 2015
@fchapoton
Copy link
Contributor

Changed keywords from Maxima to Maxima, integrate

@fchapoton
Copy link
Contributor

comment:1

Works in sage 8.9.b7:

sage: F = lambda z: (2/pi)*integral((4*cos(x)^2-1)^z*sin(x)^2,x,0,pi)
sage: 
sage: F(0)
1
sage: F(1)
0
sage: F(0.5)
(1.161499228562 + 1.520039988172*I)/pi

But symbolic integration F(1/2) get stuck inside Sympy.

@mkoeppe mkoeppe removed this from the sage-6.8 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

3 participants