SCOUG-Programming Mailing List Archives
Return to [ 14 |
February |
2005 ]
<< Previous Message <<
>> Next Message >>
two cents from a lurker: As much of this discussion mentions both APL and
PL/I, it might be of interest that Kenneth Iverson, the inventor of APL
(died recently), created a revision of APL called J around 1990. J
supports exact calculations using a syntax for a rational number,
numerator r denominator. The operator that creates the exact
representation of a decimal (or any base) value is 'x:'. For example,
17%83 yields 0.204819 (the divide operator in J is %)
x: 17%83 gives 17r83
and
x: 13 + 17%83 gives 1096r83
x: 13 + 0.204819 gives 5220261405187r395330023470
and
x: (11%3) * (4%7) gives 44r21 (some parens are needed)
another syntax for exact calculations appends an x, e.g.,
44%21 gives 2.09524...
44%21x gives 44r21
I think Maple also supports exact calculations, and suspect Mathematica
probably does too.
J is free for non-comercial use (www.jsoftware.com), but unfortunately, J
is not available for OS/2. (I have it on a Mac.) It is available for all
Windows versions and Linux, and has an alternate Java GUI. Perhaps this
could be a good candidate for Odinizing.
an erstwhile SCOUGite
--
-----------------------------------------------------------
Benedict G. Archer
-----------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 14 |
February |
2005 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|