Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re: [Caml-list] Problem with the Num implementation #8429

Closed
vicuna opened this issue Dec 30, 2003 · 1 comment
Closed

Re: [Caml-list] Problem with the Num implementation #8429

vicuna opened this issue Dec 30, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 30, 2003

Original bug ID: 2008
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

I just use this thread to ask again a question ...

How to compute the best or at least a very good float interval
containing a rational number with the num library ?

The float_of-num function is really not convincing (it is very slow
because it does a translation to a decimal representation as string and
look at all the digits !).

Remark: it should be possible to find a very good (may be not always the
best) float interval in constant time !

This is usefull to implement lazy arithmetics (you compute with floating
point interval until this is not enough and then you compute the exact
value. But it is useful in some cases to compute an interval from the
rational number and it needs to be fast to be useful)

--
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI

IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/8WCkSQDyWB/+xBwRAsKeAJ9oGYH9XHpOn6J3ZugwJreTou5h2wCePRrP
EPENzee137oKUi1A+nVhcF4=
=bN8A
-----END PGP SIGNATURE-----



@vicuna
Copy link
Author

vicuna commented Jan 3, 2004

Comment author: administrator

argh ! don't reply to caml-bugs if you are changing the subject...
-DD

@vicuna vicuna closed this as completed Jan 3, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant