for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Samsara\Fermat\Values;
use Samsara\Fermat\Types\Decimal;
class DecimalIntBench
{
public function benchFactorial()
$five = new ImmutableDecimal(5);
$five->factorial();
}
public function benchSubFactorial()
$five->subFactorial();
public function benchDoubleFactorial()
$five->doubleFactorial();
public function benchSemiFactorial()
$five->semiFactorial();
public function benchLCM()
$num = new ImmutableDecimal(6);
$num->getLeastCommonMultiple(8);
public function benchGCD()
$num = new ImmutableDecimal(24);
$num->getGreatestCommonDivisor(16);
public function benchIsPrime()
$num = new ImmutableDecimal(83);
$num->isPrime();