On Oct 27, 7:34 pm, Nick Alexander <ncalexan...@gmail.com> wrote:
> > Why do you think that f, which is a function from R^2->R^1, should not
> > naturally be able to take inputs that live in R^2?
>
> I don't.  But that's not the way that Python works, and the existing  
> implementation tries to make f(x, y) look like a Python function of  
> two variables.  I would be fine if it instead made f(x, y) a function  
> accepting one variable (a vector in R^2) -- but that's even stranger  
> in the more common case when you really want a function from, say R x  
> C -> C.  Then you'd need to say f([x, y]) or something equally nutty.

But this seems like an easy case to catch, and is very mathematically
natural and user-friendly, esp. for going back and forth between
matrix stuff and calculus stuff like one often does in sophomore-level
courses.  Certainly we shouldn't *require* a tuple or list as input -
that would be silly, I agree.

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

Reply via email to