| lib/Spreadsheet/Engine/Function/ASIN.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 12 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 5 | 5 | 100.0 |
| pod | 2 | 2 | 100.0 |
| total | 19 | 19 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Spreadsheet::Engine::Function::ASIN; | ||||||
| 2 | |||||||
| 3 | 28 | 28 | 162 | use strict; | |||
| 28 | 59 | ||||||
| 28 | 989 | ||||||
| 4 | 28 | 28 | 150 | use warnings; | |||
| 28 | 53 | ||||||
| 28 | 775 | ||||||
| 5 | |||||||
| 6 | 28 | 28 | 154 | use base 'Spreadsheet::Engine::Fn::math'; | |||
| 28 | 62 | ||||||
| 28 | 4088 | ||||||
| 7 | |||||||
| 8 | 166 | 166 | 1 | 627 | sub signature { [ '>=-1', '<=1' ] } | ||
| 9 | |||||||
| 10 | sub calculate { | ||||||
| 11 | 83 | 83 | 1 | 2404 | my ($self, $value) = @_; | ||
| 12 | 83 | 2040 | return atan2($value, sqrt(1 - $value * $value)); | ||||
| 13 | } | ||||||
| 14 | |||||||
| 15 | 1; | ||||||
| 16 | |||||||
| 17 | __END__ |