Yes, sorry about that. The second example should have been:
import sage.all
def test(T)
A = sage.all.log(T,10)*-15
B = 10**A
return B
Also, I'm running sage version 3.2.2 on windows vista via vmware.
On Feb 16, 11:17 am, Luiz Felipe Martins
<[email protected]> wrote:
> I didn't try your code, but I think you mean B=10**A in the second example.
>
>
>
> On Mon, Feb 16, 2009 at 10:52 AM, tdanner <[email protected]> wrote:
>
> > I have implemented the following in the notebook and it works just
> > fine.
>
> > T = 130
> > A = log(T,10)*-15
> > B = 10**A
> > print B
>
> > However, I have tried to implement it as compiled code as follows:
>
> > import sage.all
> > def test(T)
> > A = sage.all.log(T,10)*-15
> > B = 10**B
> > return B
>
> > It seems to compile fine, but upon execution the following error
> > occurs:
>
> > NotImplementedError: non-integral exponents not supported
>
> > What do I need to do differently in the compiled code versus the
> > notebook to make this work?
>
> > Thanks!
>
> --
> "The main things which seem to me important on their own account, and
> not merely as means to other things, are knowledge, art, instinctive
> happiness, and relations of friendship or affection."
> -Bertrand Russell
>
> L. Felipe Martins
> Department of Mathematics
> Cleveland State University
> [email protected]
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---