On Mar 12, 5:39 pm, stefan <stejane...@gmail.com> wrote:
> Basically, I am trying to plot this expression:
>
> #sage> fermi(x,y,d,L) = 1 - 1/( exp( ( max(abs(x),abs(y))-L) /d)  + 1)


I'm not sure but there might be a bug or problem evaluating the
expression. Anyways, going the "pure" python way works:

sage: def fermi(x,y,d,L): return  1 - 1/( exp( ( max(abs(x),abs(y))-
L) /d)  + 1)

sage: plot3d(lambda x,y : fermi(x,y,0.2,1), (x,-2,2), (y,-2,2))

Does this look fine?

H

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to