Méthode | Description | |
---|---|---|
arithmeticProgression ( integer $n, integer $d, integer $a₁ ) : array | Arithmetic progression A sequence of numbers such that the difference between the consecutive terms is constant. | |
cubicNumber ( integer $n ) : array | Cubic numbers https://en.wikipedia.org/wiki/Cube_(algebra) | |
factorial ( integer $n ) : array | Factorial https://en.wikipedia.org/wiki/Factorial | |
geometricProgression ( integer $n, number $a, number $r ) : array | Geometric progression A sequence of numbers where each term after the first is found by multiplying the previous one by a fixed, non-zero number called the common ratio. | |
powersOfTen ( integer $n ) : array | Powers of ten https://en.wikipedia.org/wiki/Power_of_10 | |
powersOfTwo ( integer $n ) : array | Powers of two https://en.wikipedia.org/wiki/Power_of_two | |
squareNumber ( integer $n ) : array | Square numbers https://en.wikipedia.org/wiki/Square_number |
public static cubicNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Résultat | array | Indexed from 0 (indexes are the base number which is raised to the power of 3) |
public static powersOfTen ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Résultat | array | Indexed from 0 (indexes are the power 10 is raised to) |
public static powersOfTwo ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Résultat | array | Indexed from 0 (indexes are the power 2 is raised to) |
public static squareNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Résultat | array | Indexed from 0 (indexes are the base number which is raised to the power of 2) |