Test Failed
Pull Request — master (#127)
by Jordan
06:46
created

DecimalTrigInverseBench   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 37
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A benchArcSec() 0 4 1
A benchArcCot() 0 4 1
A benchArcCos() 0 4 1
A benchArcSin() 0 4 1
A benchArcTan() 0 4 1
A benchArcCsc() 0 4 1
1
<?php
2
3
4
namespace Samsara\Fermat\Values;
5
6
use Samsara\Fermat\Types\Decimal;
7
8
class DecimalTrigInverseBench
9
{
10
11
    public function benchArcSin()
12
    {
13
        $point5 = new ImmutableDecimal('0.5');
14
        $point5->arcsin();
15
    }
16
17
    public function benchArcCos()
18
    {
19
        $point5 = new ImmutableDecimal('0.5');
20
        $point5->arccos();
21
    }
22
23
    public function benchArcTan()
24
    {
25
        $point5 = new ImmutableDecimal('0.5');
26
        $point5->arctan();
27
    }
28
29
    public function benchArcSec()
30
    {
31
        $point5 = new ImmutableDecimal('10');
32
        $point5->arcsec();
33
    }
34
35
    public function benchArcCsc()
36
    {
37
        $point5 = new ImmutableDecimal('10');
38
        $point5->arccsc();
39
    }
40
41
    public function benchArcCot()
42
    {
43
        $point5 = new ImmutableDecimal('0.5');
44
        $point5->arccot();
45
    }
46
47
}