On Tue, Jul 21, 2009 at 6:08 PM, Doug<mcke...@gmail.com> wrote:
>
>> Piecewise functions of 2 variables are not yet implemented.
>> Sorry.
>
> Ah, I see.  If there was were primitive functions for LessThan(x,y),
> Equal(x,y), and GreaterThan(x,y), and they returned 0 or 1, I think
> that's all I would need:
>
> f(x,y) = y + LessThan(x,pi/2)*f1(x) + Equal(x,pi/2)*f2(x) + GreaterThan
> (x,pi/2)*f2(x)
>
> I don't suppose these exist or are easy to define?


I'm not sure what you are going to do with your function.
If it is just for plotting, say, I think you might just want to use


def f(x,y):
    if <case1>:
       return <whatever1>
    if <case2>:
       return <whatever2>
   etc



>
> Thanks again for the super-quick replies!
>
> Doug
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to