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 dans Big_int.power_* #2852

Closed
vicuna opened this issue Jul 23, 2001 · 1 comment
Closed

bug dans Big_int.power_* #2852

vicuna opened this issue Jul 23, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 23, 2001

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

Bug description

Les fonctions Big_int.power_big_int_positive_big_int et
Big_int.power_int_positive_big_int semblent fausses:

    Objective Caml version 3.01+4 (2001-06-18)

open Big_int;;

string_of_big_int

(power_big_int_positive_big_int (big_int_of_string "3")
(big_int_of_string "47"));;

  • : string = "1853020188851841"

string_of_big_int (power_int_positive_int 3 47);;

  • : string = "26588814358957503287787"

string_of_big_int (power_big_int_positive_int (big_int_of_string "3") 47);;

  • : string = "26588814358957503287787"

string_of_big_int (power_int_positive_big_int 3 (big_int_of_string "47"));;

  • : string = "7056148742039409131"

estephe:/tmp$ bc
bc 1.05
Copyright 1991, 1992, 1993, 1994, 1997, 1998 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
3^47
26588814358957503287787

Aussi, ça manque d'une fonction d'exponentiation modulaire, ainsi que
de génération de grands entiers aléatoires, premiers ou non.

  • Xavier "RSA" Leroy
@vicuna
Copy link
Author

vicuna commented Dec 4, 2001

Comment author: administrator

Fixed 2001-12-04 by XL by backporting PW's fix for Caml Light.

@vicuna vicuna closed this as completed Dec 4, 2001
@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