> Coercion is currently still a little problem, and I think you would > earn some credits here if add this ability to the call method in > BuiltinFunction. Have you ever looked into that class? Perhaps it > helps you understanding the problem.
So I've been looking at some of the trigonometric functions in sage/functions/trig.pyx but I'm having trouble understanding what's going on. There's not much going on in terms of documentation and __call__ isn't even being overloaded in those examples. (See arccos or something similar.) Have you encountered any slight more elaborate examples? > If you need a quick solution, simply writing a small python class > would do the trick. (similar as in the current ortho_polys version) I considered this at first but I wanted to see if there's a preexisting Sage construct that could help me out. BuiltinFunction seems like a step in the right direction if I can only find examples of its use. There's not a lot of helpful documentation out there. I'm gonna have to make a blog post about it once I figure it out. :) -- Chris -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org