Opened 4 years ago

Last modified 4 months ago

#18821 new defect

integral with sqrt(cos)*sin unsolved

Reported by: rws Owned by:
Priority: major Milestone: sage-6.8
Component: calculus Keywords: Maxima, integrate
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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/

Change History (1)

comment:1 Changed 4 months ago by chapoton

  • Keywords integrate added

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.

Last edited 4 months ago by chapoton (previous) (diff)
Note: See TracTickets for help on using tickets.