CaMykS  1.0-20231201
Functions
math.php.inc File Reference

Math specific methods. More...

Functions

 math_leastCommonMultiple ($x, $y)
 
 math_greatestCommonDenominator ($x, $y)
 
 math_leastCommonMultipleArray ($numbers=array())
 

Detailed Description

Math specific methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.1
Date
Creation: Jul 2017
Modification: Apr 2018
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Warning
This library is not loaded with CaMykS initialisation.

Function Documentation

◆ math_leastCommonMultiple()

math_leastCommonMultiple (   $x,
  $y 
)

Compute least common multiple of 2 numbers.

Parameters
integer$x
integer$y
Returns
integer

◆ math_greatestCommonDenominator()

math_greatestCommonDenominator (   $x,
  $y 
)

Compute greatest common denominator of 2 numbers.

Parameters
integer$x
integer$y
Returns
integer

◆ math_leastCommonMultipleArray()

math_leastCommonMultipleArray (   $numbers = array())

Compute least common multiple of an array of numbers.

Parameters
array$numbers
Returns
integer