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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Translate the entire conversation x

MEP - Change Mathcad numerical infinity to IEEE 754 Infinity

StuartBruff
23-Emerald IV

MEP - Change Mathcad numerical infinity to IEEE 754 Infinity

Mathcad Enhancement Proposal:  Change Mathcad's numerical representation of infinity to the IEEE 754 floating-point standard.

 

When dealing with large numbers, representing infinity as 10^307 can lead to numerical errors and yield ambiguous or unreadable results.

 

2025 11 15 A.png

 

Note: Python math, NumPy, Mathematica and Matlab all give correct results.

 

I don't know why 2^1020 is allowable, but 2^n, where n:=1020, raises an error.

 

Stuart

 

(Numerical ∞ = 10307 has annoyed me since Mathsoft Mathcad days.  At least change ∞ to ⧜ (U+29DC Incomplete Infinity)

6 REPLIES 6

Interesting.

 

2025 11 16 A.png

 

Math Result display set to "General".

 

Stuart

LucMeekes
23-Emerald IV
(To:StuartBruff)

The 'Infinity' unit was introduced in Prime 6. Up to and including Prime 5 you'd get:

LucMeekes_0-1763294390507.png

But the funny behaviour with 2^1020 was already present in Prime 2.

 

Success!
Luc

 

StuartBruff
23-Emerald IV
(To:LucMeekes)

Thanks, Luc.

 

Perhaps PTC can fix that problem at the same time as they implement an IEEE 754 Infinity.

 

Stuart

By the Power of Grayvector and by the Magic of Mathcad’s Unit System, Werner’s work in another thread has inspired a technique for saving us from Thanos by transmogrifying an infinity stone into a very large number of kilograms,

 

2025 11 26 C.png

 

I knew I'd find a use for a finite infinity.  Previously, I could only destroy them two at a time before the structure of the 64-bit floating-point universe threw an overflow error (which wouldn't happen with a proper IEEE 754 infinity).   But now I can handle all of them at once.

 

I’m not sure it’s a good enough reason to retain 10^307 as infinity, though. 

Werner_E
25-Diamond I
(To:StuartBruff)

Unfortunately only one "Right' out of six:

Werner_E_0-1764224151268.png

 

BTW, you get correct results with the full version and using the symbolics:

Werner_E_0-1764234129248.png

in Prime as well as in MC15

Werner_E_1-1764234294189.png

 

StuartBruff
23-Emerald IV
(To:Werner_E)

Thanks, Werner.  Looks like a copy & paste error on my part (I forgot to change the equality operator to division).

 

Compatibility with symbolic results (where meaningful) is another good reason to implement a proper IEEE 754 infinity rather than an arbitrarily large number, say, 𒌋𒐗 𒎙𒐖 𒑪 𒑪𒐘 𒑪𒐝 𒐝 𒎙𒐝 𒑪𒐜 𒎙𒐚 𒑩𒐗 𒌋𒐛 𒌍𒐕 𒑪𒐕 𒐚 𒑩.

 

(And if you're going to pick a big FP number, why 10307 rather than 253-1?)

 

Stuart

Announcements

Top Tags