File Coverage

lib/Spreadsheet/Engine/Function/ACOS.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::ACOS;
2              
3 28     28   154 use strict;
  28         56  
  28         893  
4 28     28   242 use warnings;
  28         56  
  28         748  
5              
6 28     28   146 use base 'Spreadsheet::Engine::Fn::math';
  28         62  
  28         4464  
7              
8 684     684 1 2608 sub signature { [ '>=-1', '<=1' ] }
9              
10             sub calculate {
11 258     258 1 7665 my ($self, $value) = @_;
12 258         6111 return atan2(sqrt(1 - $value * $value), $value);
13             }
14              
15             1;
16              
17             __END__