Test Failed
Pull Request — master (#119)
by Jordan
06:20
created

DecimalLogBench   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A benchExp() 0 4 1
A benchExpFloat() 0 4 1
A benchLn() 0 4 1
A benchLog10() 0 4 1
1
<?php
2
3
namespace Samsara\Fermat\Values;
4
5
use Samsara\Fermat\Types\Decimal;
6
7
class DecimalLogBench
8
{
9
10
    public function benchLn()
11
    {
12
        $ten = new ImmutableDecimal(10);
13
        $ten->ln();
14
    }
15
16
    public function benchLog10()
17
    {
18
        $ten = new ImmutableDecimal(50);
19
        $ten->log10();
20
    }
21
22
    public function benchExp()
23
    {
24
        $ten = new ImmutableDecimal(10);
25
        $ten->exp();
26
    }
27
28
    public function benchExpFloat()
29
    {
30
        $ten = new ImmutableDecimal('12.5');
31
        $ten->exp();
32
    }
33
34
}