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 sinh dans caml light 0.75 mac os x #3540

Closed
vicuna opened this issue Mar 16, 2005 · 2 comments
Closed

bug sinh dans caml light 0.75 mac os x #3540

vicuna opened this issue Mar 16, 2005 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Mar 16, 2005

Original bug ID: 3540
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for Caml light use https://github.com/camllight/camllight/issues

Bug description

Bonjour,

Sauf erreur de ma part, il semble que la fonction sinus hyperbolique ne
soit pas correctement implémentée dans Camllight 0.75 sous Mac OS X:

% camllight

  Caml Light version 0.75

#sinh(2.);;

  • : float = 0.909297426826

Apparemment, le bug n'existe pas sous ocaml:

% ocaml
Objective Caml version 3.07+2

sinh(2.);;

  • : float = 3.62686040784701902

où la réponse est correcte.

Merci d'avance de me tenir informer, nous utilisons ce langage pour le
concours d'entrée dans les grandes écoles et ce bug nous posent des
difficultés.

-- Nicolas Schabanel


Nicolas Schabanel - http://perso.ens-lyon.fr/nicolas.schabanel/
CR CNRS - LIP, 46 allée d'Italie, 69364 Lyon Cedex 07, France
Tel: +33 4.72.72.84.81 - Fax: +33 4.72.72.80.80 - Bur: LR5/038


Bonjour,

Sauf erreur de ma part, il semble que la fonction sinus hyperbolique
ne soit pas correctement implémentée dans Camllight 0.75 sous Mac OS X:

% camllight

  Caml Light version 0.75

#sinh(2.);;

  • : float = 0.909297426826

Apparemment, le bug n'existe pas sous ocaml:

% ocaml

    Objective Caml version 3.07+2

sinh(2.);;

  • : float = 3.62686040784701902

où la réponse est correcte.

Merci d'avance de me tenir informer, nous utilisons ce langage pour le
concours d'entrée dans les grandes écoles et ce bug nous posent des
difficultés.

-- Nicolas Schabanel

---

Nicolas Schabanel - http://perso.ens-lyon.fr/nicolas.schabanel/

CR CNRS - LIP, 46 allée d'Italie, 69364 Lyon Cedex 07, France

Tel: +33 4.72.72.84.81 - Fax: +33 4.72.72.80.80 - Bur: LR5/038

---------------- ----------------
@vicuna
Copy link
Author

vicuna commented Mar 17, 2005

Comment author: administrator

see also #3542

@vicuna vicuna closed this as completed Mar 17, 2005
@vicuna
Copy link
Author

vicuna commented Apr 11, 2005

Comment author: administrator

Bonjour,

Sauf erreur de ma part, il semble que la fonction sinus hyperbolique ne=20=

soit pas correctement impl=E9ment=E9e dans Camllight 0.75 sous Mac OS X:

Bien vu! Ce bug doit se trouver tapi là depuis des années. Grâce à
l'aide de Damien Doligez, c'est corrigé dans la version de travail.

Il suffit de changer la ligne 63 du fichier src/stdlib/float.mli par
la ligne corrigée suivante:

and sinh : float -> float = 1 "sinh_float"

Je vais tâcher de faire une nouvelle distribution dans les semaines
qui viennent.

Merci du rapport de bug.

Pierre Weis

INRIA, Projet Cristal, http://pauillac.inria.fr/~weis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant