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

bug in num #2371

Closed
vicuna opened this issue Feb 17, 2000 · 1 comment
Closed

bug in num #2371

vicuna opened this issue Feb 17, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 17, 2000

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

Bug description

Bonjour.

Avec caml 0.74, et utilisant la librairie num,
un appel de fonction (purement fonctionel...)
ne rend pas le meme resultat selon que les rationnels sont
systematiquement reduits ou non.

J'ai extrait un source de 60 lignes du programme initial
20 fois plus gros (normalize_ratio_when_printing false est
VRAIMENT INDISPENSABLE :) ...) Il est en attachement.

la variable hf (normalize_ratio=false) vaut chez moi :

  • : nombre * nombre =
    Interval {vmin = -264/40; vmax = -146/40},
    Interval {vmin = -12/10; vmax = -9/10}

la variable ht (=hf, mais normalize_ratio a true) vaut chez moi :

  • : nombre * nombre =
    Interval {vmin = -33/5; vmax = -1/2},
    Interval {vmin = -6/5; vmax = -9/10}

et -146/40 <>/ -1/2

Cordialement,

Dominique Michelucci Dominique.Michelucci@emse.fr
http://www.emse.fr/~micheluc
Ecole Nationale Superieure des Mines de St-Etienne
158 cours Fauriel, 42023 Saint Etienne cedex 2, France
Tel: +33 4 77 42 01 73 from abroad, 04 77 42 01 73 from France
Fax: +33 4 77 42 66 66 from abroad, 04 77 42 66 66 from France

@vicuna
Copy link
Author

vicuna commented Feb 22, 2000

Comment author: administrator

Problem fixed in recent OCaml releases (see #2373)

@vicuna vicuna closed this as completed Feb 22, 2000
@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