Analyse

127 days ago by Benny_Malengier

x, y = var('x,y'); f(x)= x^2-2 
       
       
x |--> x^2 - 2
x |--> x^2 - 2
plot(f, (x,-3,3)) 
       
solve(f(x)==0, x) 
       
[x == -sqrt(2), x == sqrt(2)]
[x == -sqrt(2), x == sqrt(2)]
f.diff() 
       
x |--> 2*x
x |--> 2*x
f.integrate(x) 
       
x |--> 1/3*x^3 - 2*x
x |--> 1/3*x^3 - 2*x
W = plot3d(sin(pi*((x)^2+(y)^2))/2,(x,-1,1),(y,-1,1), frame=False, color='purple', opacity=0.8) S = sphere((0,0,0),size=0.3, color='red', aspect_ratio=[1,1,1]) show(W + S, figsize=8)