一些数学公式的实现
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
src
.gitignore
README.md
composer.json

README.md

Home page

http://www.liyangweb.com/296.html

How to install?

composer require kaopur/maths
$value = \Kaopur\maths\Maths::c(3,2);
var_dump($value);

$value = \Kaopur\maths\Maths::combination($array, 2);
var_dump($value);

$value = \Kaopur\maths\Maths::p(3,2);
var_dump($value);

$value = \Kaopur\maths\Maths::permutation($array, 2);
var_dump($value);

$value = \Kaopur\maths\Maths::primeNumber(100);
var_dump($value);

$value = \Kaopur\maths\Maths::isPrimeNumber(4);
var_dump($value);