Big Integers

Big Integers

bigint is a toolbox to make calculations with "big integers": their size (number of digits) can be arbitrary long no rounding errros would appear. The toolbox consists only in macros (no java/c/... sources files) and should not necessit compilations.

  • a new variable type "bigint" build as a tlist
  • another variable type "mbigint" for matrix of bigint "bigint" build as a mlist
  • arithmetic (+,-,,^,/,...) and boolean (==,...) operations are defined for bigint and mbigint type *overloading compatibility for arithmetic (+,-,,^,/,...) and boolean (==,...) operations with double/bigint/mbigint operation
  • overloading basic scilab functions (as size, sum, sort ...) isn't achieved

to contribute to bigint toolbox download source code :

  • open contribute.sci to see a "function skeleton" with online help written directly in the source code
  • add your own macro to bigint/macros/ directory as *.sci files
  • add your own examples in the *.sci files, source code of demonstrations files will be generated in bigint/demos/
  • add unitary tests in bigint/tests/unit_tests/ directory as *.tst files
  • run bigint/builder.sce to update the toolbox
  • restart scilab and run bigint/loader.sce to reload the toolbox (if macros runs but online help isn't loaded there is probably a mistake in the help xml code)

Development Team
Clément David
philippe roux

Powered by InDefero,
a Céondo Ltd initiative.