Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the problem with that integral ?

I try to integrate this:

sage: integrate(integrate(integrate(2cos(z)sin(atan((2cos(y)-0.5+x)/(2sin(y)))),y,0,pi/2),x,0,1),z,0,pi/2);

There is a problem :

"ECL says: In function ZEROP, the value of the only argument is ((RAT SIMP) -0.5 1.0) which is not of the expected type NUMBER"

Could you help me please ?

click to hide/show revision 2
None

What is the problem with that integral ?

I try to integrate this:

sage: integrate(integrate(integrate(2cos(z)sin(atan((2cos(y)-0.5+x)/(2sin(y)))),y,0,pi/2),x,0,1),z,0,pi/2);

integrate(integrate(integrate(2*cos(z)*sin(atan((2*cos(y)-0.5+x)/(2*sin(y)))),y,0,pi/2),x,0,1),z,0,pi/2);

There is a problem :

"ECL says: In function ZEROP, the value of the only argument is
  ((RAT SIMP) -0.5 1.0)
which is not of the expected type NUMBER"

NUMBER"

Could you help me please ?

What is the problem with that integral ?

I try to integrate this:

sage: integrate(integrate(integrate(2*cos(z)*sin(atan((2*cos(y)-0.5+x)/(2*sin(y)))),y,0,pi/2),x,0,1),z,0,pi/2);

There is a problem :

"ECL says: In function ZEROP, the value of the only argument is
  ((RAT SIMP) -0.5 1.0)
which is not of the expected type NUMBER"

Could you help me please ?

Wolfram do it so I think it is not an error of the function maybe a limit ?

What is the problem with that integral ?

I try to integrate this:

sage: integrate(integrate(integrate(2*cos(z)*sin(atan((2*cos(y)-0.5+x)/(2*sin(y)))),y,0,pi/2),x,0,1),z,0,pi/2);

There is a problem :

"ECL says: In function ZEROP, the value of the only argument is
  ((RAT SIMP) -0.5 1.0)
which is not of the expected type NUMBER"

Could you help me please ?

Wolfram do does it so I think it is not an error of the function maybe a limit ?

What is the problem with that integral ?

I try to integrate this:

sage: integrate(integrate(integrate(2*cos(z)*sin(atan((2*cos(y)-0.5+x)/(2*sin(y)))),y,0,pi/2),x,0,1),z,0,pi/2);

There is a problem :

"ECL says: In function ZEROP, the value of the only argument is
  ((RAT SIMP) -0.5 1.0)
which is not of the expected type NUMBER"

Could you help me please ?

Wolfram does it so I think it is not an error of the function maybe a limit ?

It works with python:

def f1(y,x,z): ...     return  2*np.cos(z)*np.sin(np.arctan((2*np.cos(y)-0.5+x)/(2*np.sin(y))))

...

tplquad(f1,0,np.pi/2, lambda z: 0, lambda z:1, lambda z, x: 0, lambda z, x: np.pi/2) (1.9792263101075036, 2.1973826204252407e-14)