axiom-mail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-mail] Turning an "Expression Float" into a Float?


From: Martin Rubey
Subject: Re: [Axiom-mail] Turning an "Expression Float" into a Float?
Date: 19 May 2008 06:52:50 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

"Alasdair McAndrew" <address@hidden> writes:

> The command
> 
> integrate(exp(-x^2),x=0..1)
> 
> produces an expression involving the error function.  But how do I turn this
> into a single Float?

It seems to be a bug.  Please file it on issuetracker, I'll try to fix it as
soon as possible.   Quite likely, it's just not implemented, in which a quick
workaround is to use romberg:

(6) -> romberg(x+->exp(-x^2),0,1,0.1,0.1,10,100)

   (6)
   [value= 0.7468241328 1242702543, error= 0.4 E -19, totalpts= 2049,
    success= true]
   Type: Record(value: Float,error: Float,totalpts: Integer,success: Boolean)


Martin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]