This code works perfectly
w, w1, w2, p, a=var('w w1 w2 p a')
Uf1(w,a)= w^a # La fonction doit être fonction de ses variables et paramètres
a=.6
p=0.5
G3D1 = plot3d(p * Uf1(w1,a) + (1-p)* Uf1(w2,a),(w1,0.0001,5),(w2,0.0001,5), frame=False, color='wheat',
opacity=0.6)
G3D1+= arrow3d((0,0,0), (5,0,0), color='green')
G3D1+= arrow3d((0,0,0), (0,5,0), color='green')
G3D1+= arrow3d((0,0,0), (0,0,3), color='green')
G3D1+= text3d("$U(w)= w^a$", (1,2,3), color=(0.5,0,0))
contour_plot(p * Uf1(w1,a) + (1-p)* Uf1(w2,a), (w1,0,5),(w2,0,5))
show(G3D1,viewer='threejs')
contour_plot(p * Uf1(w1,a) + (1-p)* Uf1(w2,a), (w1,0,5),(w2,0,5))
I have 4 questions
1) is it possible to include latex text in a 3D setting ?
2) is it possible to label the axes (preferably in the same way) ?
3) is it possible to combine the coutour_plot
on the surface ?
4) is it possible to project the coutour_plot
on (x, y) plane?
3) is it possible to project the coutour_plot
on the (x, y) plane ?
4)