> 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
I'm doing numerical minimization on it right now and the only reason I want/need it to be a sage function is so I can .subs() real values for my parameters. To get around that, I'm just going to use global variables for my parameters. It's kind of ugly, but it will work. It would be nice to be able to get symbolic derivatives too, but I don't need these either. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
