The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.symbolic

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: MapleV: using evalhf with infinite integral.
Replies: 2   Last Post: Dec 6, 1996 1:53 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dave Seaman

Posts: 2,446
Registered: 12/6/04
Re: MapleV: using evalhf with infinite integral.
Posted: Dec 5, 1996 10:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In article <>,
David Klein <> wrote:
>I would like to integrate a function like

Since you said you were trying to integrate the function, I will assume you
meant to evaluate


I would suggest you evaluate it as follows:

> int(f,x=-infinity..infinity);


> evalhf(");


As you can see, the first step is to evaluate the integral and get an
exact, symbolic result. No floating point computations are involved
here, and insisting on using floating point will only slow it down and
get a less precise answer. The second step, evaluating Pi^(1/2), is
the only place where floating point arithmetic is needed.

>but with a more time consuming integrand, f.
>evalf instead of evalhf works, but I am trying to be faster.

If the integral is one that Maple doesn't handle symbolically, then you
should try the following:

Digits := trunc(evalhf(Digits));

With this setting of Digits, evalf and evalhf should give similar
results, though it is not clear whether the timing will be the same for
expressions on which both are applicable. With the simple f :=
exp(x^2), this method is MUCH slower than symbolic integration.

Dave Seaman
++++ stop the execution of Mumia Abu-Jamal ++++
++++ if you agree copy these lines to your sig ++++
++++ see ++++

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.