The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
WP34s: Domain Error in RMDR and MOD
10-21-2015, 12:13 PM (This post was last modified: 10-21-2015 12:15 PM by Dieter.)
Post: #1
WP34s: Domain Error in RMDR and MOD
I just noticed a strange behaviour of the RMDR and MOD functions. For large arguments they may return a "Domain Error". Some further investigation showed that these functions seem to work for y < 1E820 · x, and as soon as y gets larger the error occurs:

Code:
[DBLON]

[EEX] 820 [ENTER] 360 [x]   =>   3,6 E+822
360 [RMDR]                  =>   Domain Error
    [MOD]                   =>   Domain Error

[x<>y] [ENTER] [ULP] [-]    =>   3,599999999999999999999999999999999 E+822
360 [RMDR]                  =>   80

Since the arguments are out of range in single precision mode, all this happens only after switching to double precision.
Any idea what's going on here?

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WP34s: Domain Error in RMDR and MOD - Dieter - 10-21-2015 12:13 PM



User(s) browsing this thread: 1 Guest(s)