Ask Your Question

gpires's profile - activity

2024-03-05 21:31:42 +0200 received badge  Notable Question (source)
2024-03-05 21:31:42 +0200 received badge  Popular Question (source)
2022-03-26 21:44:40 +0200 commented answer Choose figsize for 3D plots

It looks like this workaround does not work in a sagecell.

2022-03-26 20:46:59 +0200 received badge  Supporter (source)
2022-03-25 00:30:43 +0200 received badge  Nice Question (source)
2022-03-21 19:39:14 +0200 asked a question Choose figsize for 3D plots

Apparently the option figsize does not work in 3D. Any suggestions? var('x y') W = plot3d(x^2+y^2,(x,-2,2),(y,-2,2)) sho

2020-12-19 15:30:43 +0200 commented answer minimize_constrained works for f(x,y)=x+y but not for f(x,y)=x

It works. Thank you! But if c is the input of interact, it does not work. I wonder why: var('x,y') @interact def _(f=x, c=1-x^2-y^2): cc = lambda p: c(*p) a=minimize_constrained(f, [cc], [0,0]) print(a)

2020-12-19 15:09:17 +0200 commented answer minimize_constrained works for f(x,y)=x+y but not for f(x,y)=x

It works. Thank you!

2020-12-17 21:22:42 +0200 received badge  Student (source)
2020-12-17 02:10:53 +0200 asked a question minimize_constrained works for f(x,y)=x+y but not for f(x,y)=x

Hi, need help to understand why minimize_constrained works for f(x, y) = x + y but does not work for f(x, y) = x.

Example:

var('x, y')
f(x, y) = x + y
c(x, y) = 1 - x^2 - y^2
minimize_constrained(f(x, y), [c(x, y)], [0, 0])