Hi,

I am trying to construct the usual spline basis functions. In short, I
start with several piecewise functions that take values 1 and 0 only,
and then make combinations of them. But there is something with the
syntax that I am not managing to do well, I suppose:

L[1]
Piecewise defined function with 3 parts, [[(-1, 0), 0], [(0,
1.50000000000000), 0], [(1.50000000000000, 3.20000000000000), 1]]

t = var('t')
L[1]*t
Traceback (click to the left for traceback)
...
AttributeError: 'sage.symbolic.expression.Expression' object has no
attribute 'domain'

It seems to me that I have to set things up so that L[1] is a function
of t as well. I tried "lambda t: " in front where I define it, but now
L[1] is a function whose value is always a certain piecewise
function  :)

Any suggestions?

Thanks,

David

--~--~---------~--~----~------------~-------~--~----~
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