cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

## Is the calculation accuracy low in MathCAD compared with Maple?  8-Gravel

## Is the calculation accuracy low in MathCAD compared with Maple?

I met some problems on calculation accuracy in MathCAD, I hope friends in this forum could help me. 1 ACCEPTED SOLUTION

Accepted Solutions  23-Emerald II
(To:jlee-10-11-12)

The differences you see are due to numerical approximations (when you use a numerical evaluation with '=').

The example above from Fred appears to show an exact match between the numerical approximation and the symbolical solution of the integral over the normal distribution function. But when you tell Prime to show the result with sufficient decimals (15...) then you see the answer is not eactly 1: (This was done with Prime 4.0 express, hence I cannot show the symbolic result.)

In Mathcad 11 (which uses Maple as its symbolic engine) you get: (If I tell Mathcad 11 to show 15 decimals, it still shows 1 as a numerical result. To show the 'error' I had to subtract 1 from the integral).

Apparently the numerical approximation is done differently from Prime's algorithm, or the settings are different, resulting in a somewhat better approximation of 1 for the integral.

Note that the symbolic result is exact.

Success!
Luc

6 REPLIES 6  23-Emerald I
(To:jlee-10-11-12)

In Prime 3.0, (paid for) I get:   8-Gravel
(To:Fred_Kohlhepp)

Hi Fred,

--

Jeff  23-Emerald II
(To:jlee-10-11-12)

The differences you see are due to numerical approximations (when you use a numerical evaluation with '=').

The example above from Fred appears to show an exact match between the numerical approximation and the symbolical solution of the integral over the normal distribution function. But when you tell Prime to show the result with sufficient decimals (15...) then you see the answer is not eactly 1: (This was done with Prime 4.0 express, hence I cannot show the symbolic result.)

In Mathcad 11 (which uses Maple as its symbolic engine) you get: (If I tell Mathcad 11 to show 15 decimals, it still shows 1 as a numerical result. To show the 'error' I had to subtract 1 from the integral).

Apparently the numerical approximation is done differently from Prime's algorithm, or the settings are different, resulting in a somewhat better approximation of 1 for the integral.

Note that the symbolic result is exact.

Success!
Luc  8-Gravel
(To:LucMeekes)

Hi Luc,

Thank you for patient answer the question, solve the problems, i was deeply touched.

I think i will never eaisy suspect the calculation accuracy of CAS because of my poor knowledge foundation.

--

Jeff  24-Ruby V
(To:jlee-10-11-12)

For exact results you should use symolic evaluations only:   8-Gravel
(To:Werner_E)

Hi  Werner,

Yes, i redefine the Φ(x) for normal distrubtion function. Really thank you for your guide.

--

Jeff 