允许计算最小公倍数和最大公约数。

v0.1 2016-03-12 16:05 UTC

This package is not auto-updated.

Last update: 2024-09-20 18:19:52 UTC


README

允许计算

  • 最小公倍数
  • 最大公约数

使用方法

<?php
use lukaszmakuch\Math;

//the least common multiple
echo Math::lcm(3, 4); //12

//the greatest common divisor
echo Math::gcd(8, 12); //4

获取库

$ composer require lukaszmakuch/math