Number Theory






The goal of this toolbox is to provide several Number theory related algorithms. The toolbox is based on macros. The implementation uses Scilab’s double precision integers, therefore is limited to integers in the [-2^53,2^53] interval.

This module depends on the dispmat module. In order to install the dispmat module, use the atoms system:

atomsInstall(“dispmat”)

This module depends on the apifun module. In order to install the apifun module, use the atoms system:

atomsInstall(“apifun”)

Features:

•    number_carmichael : Returns some Carmichael numbers.
•    number_coprime : Checks if two numbers are relatively prime.
•    number_isdivisor : Checks if a divides b.
•    number_primes1000 : Returns a matrix containing the 1000 first primes