On 9/13/08, Sand Wraith <[EMAIL PROTECTED]> wrote: > > Hello, > > tell please, how to access spline like function? for example i have:
Try the sage command "spline". Also try scipy. - from a cell phone... > > p=list(); > p.append([1,1]); > p.append([2,1.5]); > p.append([3,2]); > p.append([4,0]); > s=spline(p) > > and i can get value of s in any point: s(1) or s(3) etc. > > so, i want to use this spline like function: > g(x)=s(x)+1; > or > def g(x): > return s(x)*sin(x); > > or for example what should i do to integrate s? > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
