Hola!
I experimented almost a complete day with the seemingly simple
problem, I want to program a simple function, like:
f(u,v)=\cases{ 2, if u>=v,
0, else.}
and similar functions. As I want tom do calculus, I need symbolic
expressions, not Python functions.
I tries using thing like
step(x) = Piecewise([[(-infinity,0), lambda x : 0],[(0,infinity),
lambda x : 1]],x)
and then
f(u,v) = step(u-v)*2
but it does not work.
Ideas?
Also, Any suggestions about where to read about such things?
Kjetil
--
"If you want a picture of the future - imagine a boot stamping on the
human face - forever."
George Orwell (1984)
--
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
URL: http://www.sagemath.org