Toward an API for the Real Numbers
blog.acolyer.org
Toward an API for the Real Numbers
1–10 of 85 posts
Re: Toward an API for the Real Numbers
#2Re: Toward an API for the Real Numbers
#3Re: Toward an API for the Real Numbers
#4What about NaN values? Are the runtime errors or do they propagate down the chain of execution? Are they comparable?
edit: now that I think about it, that would require some really nice optional chaining syntax to be even slightly usable.
Re: Toward an API for the Real Numbers
#5What about NaN values? Are the runtime errors or do they propagate down the chain of execution? Are they comparable?
Re: Toward an API for the Real Numbers
#6Edit: the paper claims that you need exact equality tests to avoid printing unnecessary zeros at the end of decimal expansions, among other things.
Interesting that this work was done by Hans-J. Boehm, better known for the widely used Boehm garbage collector.
Re: Toward an API for the Real Numbers
#7Re: Toward an API for the Real Numbers
#8What about NaN values? Are the runtime errors or do they propagate down the chain of execution? Are they comparable?
There are no NaN values in the real numbers.
Re: Toward an API for the Real Numbers
#9Representing reals as fractions (rationals) goes a long way toward achieving this goal.
Re: Toward an API for the Real Numbers
#10Representing reals as fractions (rationals) goes a long way toward achieving this goal.