XD from text generated by a high-precision package like MATLAB'sVPA(), and stores the result with XD! directly into the target
...
Luckily, in the case at hand the necessary constants are not magic numbers but result from formulas that can be computed to high precision with 106/128 bit floating point, i.e., *with xd-fp itself*.
The procedure was therefore to define all FP constants as 0e0. After xd-fp has loaded, the iForth compiler recomputes all XDCONSTANTs using >XD from text generated by a high-precision package like MATLAB's VPA(), and stores the result with XD! directly into the target constant's >BODY areas. I was able to show that all constants turn out to have at least 39 decimals of remaining precision.
This is not a trivial problem, and an example of a practical situation
where the Forth system is asked to potentially handle >700 digit
floating point text. (For extended floats, even much more than 700 digits).
-marcel--
In article <119mr1e$c6ka$1@dont-email.me>, marcel hendrix <mhx@iae.nl> wrote:
<SNIP>
This is not a trivial problem, and an example of a practical situation
where the Forth system is asked to potentially handle >700 digit
floating point text. (For extended floats, even much more than 700 digits).
Floats with 700 digits makes no sense. You must do fixed point
exact calculation with an appropriate error analysis.
Only the Riemann hypothesis comes to mind. Quantum fluctuations
prevent future-telling of a galaxy, even if you are given the start conditions.
-marcel
Floats with 700 digits makes no sense.... Only the Riemann hypothesis
comes to mind.
In article <119mr1e$c6ka$1@dont-email.me>, marcel hendrix <mhx@iae.nl> wrote:
<SNIP>
This is not a trivial problem, and an example of a practical situationFloats with 700 digits makes no sense. You must do fixed point
where the Forth system is asked to potentially handle >700 digit
floating point text. (For extended floats, even much more than 700 digits). >>
exact calculation with an appropriate error analysis.
Only the Riemann hypothesis comes to mind. Quantum fluctuations
prevent future-telling of a galaxy, even if you are given the start
conditions.
-marcel
I agree. Accepting (and converting) arbitrarily long numeric FP strings
by a Forth system should not be a top priority.
As far as I understand it, accepting >700 digit floats does not mean
that one can make any useful calculations with them. Riemann will have
to wait.
-marcel--
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 55:03:16 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,585 |