Running Sage 5.3 on a MacBook Pro with OS X version 10.7.5, I want to use the 
modulo operator % in defining a function of a variable, as in the following 
example:

t = var('t')
L(t) = t*725.5 % 360.0
plot(L, 0,5)

This produces the following error message:
...
TypeError: unsupported operand type(s) for %:
'sage.symbolic.expression.Expression' and
'sage.symbolic.expression.Expression'

I can use other arithmetic operators such as + and / in this function 
expression, but not %, and I don't understand why.  Is there an alternative or 
workaround so that I can compute the quantity L dependent on this variable t 
and then graph the remainder of L mod 360 for a given range of values of t?

Thanks for any advice,
Kim

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to