I know multiplication is very finicky. You might try using R.<t> = PolynomialRing(RR, "t") instead, but I'm not sure that will work either.
Can you post more of your code so I can give a more detailed answer? On Thu, Jun 25, 2009 at 2:17 PM, David Sevilla<sevil...@gmail.com> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---