Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
var('x,y,z') 
plot3d(lambda x,y :min(y,x),(x,0,1),(y,0,1))

gives a reasonable plot (if you rotate the plot manually)

var('x,y,z') plot3d(lambda x,y :min(y,x),(x,0,1),(y,0,1))

:min(y,x),(x,0,1),(y,0,1))

gives a reasonable plot (if you rotate the plot manually)manually).

Numerical integration with mpmath:

from mpmath import *
mp.dps = 15; mp.pretty = True
f = lambda x,y,z: min(x,y,z)
quad(f,[0,1],[0,1],[0,1])

var('x,y,z') plot3d(lambda x,y :min(y,x),(x,0,1),(y,0,1))

gives a reasonable plot (if you rotate the plot manually).

Numerical integration with mpmath:

from mpmath import *
mp.dps = 15; mp.pretty = True
f = lambda x,y,z: min(x,y,z)
quad(f,[0,1],[0,1],[0,1])

var('x,y,z') 
 plot3d(lambda x,y :min(y,x),(x,0,1),(y,0,1))

:min(y,x),(x,0,1),(y,0,1))

gives a reasonable plot (if you rotate the plot manually).

Numerical integration with mpmath:

from mpmath import *
mp.dps = 15; mp.pretty = True
f = lambda x,y,z: min(x,y,z)
quad(f,[0,1],[0,1],[0,1])