Skip to content

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

License

Notifications You must be signed in to change notification settings

lukaszmakuch/math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages