> Here are some 
> possibilities:
> 
> 
> 
> plot( f(x=5), (y, -10,10))
> 
> plot( f(x=5,y=y), (y, -10,10))
> 
> plot( f(5,None), (y, -10,10))
> 
> plot( f(5,y), (y, -10,10))
> 
> g(y) = f(5,y)
> plot(g, (y, -10,10))
> That last one seemed too verbose
> 
> Jason
> 

Personally I like allowing calls, but just using kwargs, like f(x=5),
forcing explicit variable naming, at the same time it would be a
convenience function for .subs(). That is unless f is declared as a
function like f(x) = x^3 because the declaration would imply variable
order.
If one wants to keep the convenience of using f(5) at least it would be
better to only allow one substitution for x, since x already has an
established status (if one wants it even more generic, allow only
single-variable functions). That way calling f(5,3) would raise an error
and force the user to explicitly order the variables.

Ronan Paixão


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to