GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 6fcb7a...fcde01 )
by t
06:59 queued 04:42
created

TMAT   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 40
ccs 0
cts 7
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A tanh() 0 3 1
A trunc() 0 4 1
A tan() 0 3 1
1
<?php
2
/**
3
 * Trait MathAndTrigonometry-T
4
 *
5
 * @link https://www.icy2003.com/
6
 * @author icy2003 <[email protected]>
7
 * @copyright Copyright (c) 2017, icy2003
8
 */
9
namespace icy2003\php\icomponents\excel\mathAndTrigonometry;
10
11
/**
12
 * MathAndTrigonometry-T
13
 */
14
trait TMAT
15
{
16
    /**
17
     * 返回已知角度的正切
18
     *
19
     * @param double $number 必需。 要求正切的角度,以弧度表示
20
     *
21
     * @return double
22
     */
23
    public static function tan($number)
24
    {
25
        return tan($number);
26
    }
27
28
    /**
29
     * 返回数字的双曲正切
30
     *
31
     * - y = sinh(x) / cosh(x) = (e^x - e^(-x)) / (e^x + e^(-x))
32
     *
33
     * @param double $number 必需。 任意实数
34
     *
35
     * @return double
36
     */
37
    public static function tanh($number)
38
    {
39
        return tanh($number);
40
    }
41
42
    /**
43
     * 将数字的小数部分截去,返回整数
44
     *
45
     * @param double $number 必需。 需要截尾取整的数字
46
     * @param integer $digits 可选。 用于指定取整精度的数字。 num_digits 的默认值为 0(零)
47
     *
48
     * @return double
49
     */
50
    public static function trunc($number, $digits = 0)
51
    {
52
        $sign = self::sign($number);
53
        return round(abs($number) - 0.5, $digits) * $sign;
54
    }
55
}
56