Scol standard library package  0.3.1
Common and usefull functions for all Scol applications
Functions | Variables
maths.pkg File Reference

Scol Standard Library - Maths API. More...

Functions

 std_m2power (x)
 Return the power of two : \(2^{f}\). More...
 
 std_m2powerI (x)
 Return the power of two : \(2^{i}\). More...
 
 STD_M_COMPOSITE ()
 
 STD_M_PRIME ()
 
 std_mDegToRad (f)
 Convert degree to radian. More...
 
 std_mfibonacci (n, o1, o2)
 
 std_mFibonacci (n)
 Return the nth value of the Fibonacci series (1, 1, 2, 3, 5, 8, 13, 21, ...) More...
 
 std_mGCD (int1, int2)
 Return the GCD (Greatest Common Divisor, PGCD in french) of two integers. More...
 
 std_mLCM (int1, int2)
 Return the LCM (Least Common Multiple, PPCM in french) of two integers. More...
 
 std_mPow (i, n)
 Calculate the power of an integer by a quick recursion. More...
 
 std_mprimality_step1 (s, d)
 
 std_mprime_mr_det (n)
 
fun std_mprime_mr_power (a, b, c)
 
 std_mprime_mr_witness (n, s, d, a)
 
 std_mPrimeMRDet (iNumber)
 Returns if an integer is a prime number or a composite number. More...
 
 std_mRadToDeg (f)
 Convert radian to degree. More...
 

Variables

var STD_M2POWER =127.0
 
var STD_M2POWERI =29
 
var STD_MFIBONACCI =43
 

Detailed Description

Scol Standard Library - Maths API.

Author
Scol team
Version
0.1

This API provides some functions to manipulate some mathematical objects

Dependancies :