On Sat, Nov 14, 2009 at 12:29 PM, Jason Grout
<[email protected]> wrote:
>
> pong wrote:
>> Thanks for the suggestion. I understand it now.
>>
>> Just curious, so what exactly does SAGE do when I type 0.6**2 then?
>> I tried a quick search with SAGE tutorial this time, but didn't seem
>> to find what I'm looking for.
>>
>
>
> Sage "preparses" the input and transforms it like this:
>
> sage: preparse('0.6**2')
> "RealNumber('0.6')**Integer(2)"
>
> So what is *actually* run is:
>
> RealNumber('0.6')**Integer(2)
>
> These are Sage-specific things, so you wouldn't be able to just type the
> above into python and expect it to work without importing and using Sage.
>

I've added this to the FAQ:

   http://wiki.sagemath.org/faq#WhatexactlydoesSAGEdowhenItype0.6.2A.2A2.3F

William

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

Reply via email to