Allows to compute the least common multiple and the greatest common divisor.

Installs: 90

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/lukaszmakuch/math

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

This package is not auto-updated.

Last update: 2025-10-03 23:19:29 UTC


README

Allows to compute:

  • the least common multiple
  • the greatest common divisor

Usage

<?php
use lukaszmakuch\Math;

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

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

Getting the library

$ composer require lukaszmakuch/math