| lib/Acme/ExtUtils/XSOne/Test/Calculator/Scientific.xs | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 19 | 24 | 79.1 |
| line | true | false | branch |
|---|---|---|---|
| 8 | 2 | 2 | static double sci_safe_log(double a, int *error) { |
| 17 | 2 | 2 | static double sci_safe_sqrt(double a, int *error) { |
| 27 | 0 | 4 | /* Integer power - faster than pow() for integer exponents */ |
| 29 | 2 | 2 | int neg = 0; |
| 34 | 12 | 4 | double result = 1.0; |
| 35 | 6 | 6 | while (exp > 0) { |
| 39 | 2 | 2 | } |
| 43 | 4 | 0 | static double sci_combination(int n, int r) { |
| 0 | 4 | static double sci_combination(int n, int r) { | |
| 44 | 4 | 0 | if (r > n || r < 0) return 0.0; |
| 0 | 4 | if (r > n || r < 0) return 0.0; | |
| 46 | 8 | 4 | double result = 1.0; |