On Wed, 25 Mar 2009 19:56:08 -0700 (PDT)
Alex Raichev <tortoise.s...@gmail.com> wrote:

> 
> I suppose the same issue applies to other common functions, such as
> the sine function.
<snip>
> sage: sin(QQbar(2))
<boom>

You're right, these are easier to fix then the __pow__ problem as well.

One question we should answer before implementing this is, do we try to
make sense of the argument before we make it a pynac symbolic
expression and apply sin on it?

I guess not, since we regard all these as purely symbolic expressions.

But then we have the following:

sage: from sage.symbolic.ring import NSR
sage: t = NSR(Mod(2,7))
sage: sin(t)
0.90929742682568171

compare to:

sage: sin(NSR(2))
sin(2)

Should we return sin(2) in the first example as well? Should we raise an
error instead?


Cheers,
Burcin

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