| 1 | # This file was automatically generated by SWIG | ||||||||||||||||||||||||||||
| 2 | package Math::Cephes; | ||||||||||||||||||||||||||||
| 3 | 17 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 17 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 17 | ▶ | use vars qw($VERSION @EXPORT_OK %EXPORT_TAGS @ISA); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 17 | require Exporter; | |||||||||||||||||||||||||||
| 8 | 17 | *import = \&Exporter::import; | |||||||||||||||||||||||||||
| 9 | 17 | require DynaLoader; | |||||||||||||||||||||||||||
| 10 | 17 | @ISA = qw( DynaLoader); | |||||||||||||||||||||||||||
| 11 | package Math::Cephesc; | ||||||||||||||||||||||||||||
| 12 | 17 | bootstrap Math::Cephes; | |||||||||||||||||||||||||||
| 13 | package Math::Cephes; | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 17 | my @constants = qw($PI $PIO2 $PIO4 $SQRT2 $MACHEP $MAXLOG $MINLOG $MAXNUM | |||||||||||||||||||||||||||
| 16 | $SQ2OPI $LOGE2 $LOGSQ2 $THPIO4 $TWOOPI $SQRTH $LOG2E ); | ||||||||||||||||||||||||||||
| 17 | 17 | my @trigs = qw(asin acos atan atan2 sin cos tan cot hypot | |||||||||||||||||||||||||||
| 18 | tandg cotdg sindg cosdg radian cosm1); | ||||||||||||||||||||||||||||
| 19 | 17 | my @hypers = qw(acosh asinh atanh sinh cosh tanh); | |||||||||||||||||||||||||||
| 20 | 17 | my @explog = qw(log1p expm1 exp exp10 exp2 log log10 log2 expxx); | |||||||||||||||||||||||||||
| 21 | 17 | my @cmplx = qw(clog cexp csin ccos ctan ccot casin | |||||||||||||||||||||||||||
| 22 | cacos catan cadd csub cmul cdiv cmov cneg cabs csqrt | ||||||||||||||||||||||||||||
| 23 | csinh ccosh ctanh cpow casinh cacosh catanh new_cmplx); | ||||||||||||||||||||||||||||
| 24 | 17 | my @utils = qw(ceil floor frexp ldexp fabs | |||||||||||||||||||||||||||
| 25 | round sqrt lrand pow powi drand lsqrt fac cbrt); | ||||||||||||||||||||||||||||
| 26 | 17 | my @bessels = qw(i0 i0e i1 i1e iv j0 j1 jn jv k0 k1 kn yn yv k0e k1e y0 y1); | |||||||||||||||||||||||||||
| 27 | 17 | my @dists = qw(bdtr bdtrc bdtri btdtr chdtr chdtrc chdtri | |||||||||||||||||||||||||||
| 28 | fdtr fdtrc fdtri gdtr gdtrc nbdtr nbdtrc nbdtri | ||||||||||||||||||||||||||||
| 29 | ndtr ndtri pdtr pdtrc pdtri stdtr stdtri); | ||||||||||||||||||||||||||||
| 30 | 17 | my @gammas = qw(gamma igam igamc igami psi fac rgamma lgam); | |||||||||||||||||||||||||||
| 31 | 17 | my @betas = qw(beta lbeta incbet incbi lbeta); | |||||||||||||||||||||||||||
| 32 | 17 | my @elliptics = qw(ellie ellik ellpe ellpj ellpk); | |||||||||||||||||||||||||||
| 33 | 17 | my @hypergeometrics = qw(onef2 threef0 hyp2f1 hyperg hyp2f0); | |||||||||||||||||||||||||||
| 34 | 17 | my @misc = qw(zeta zetac airy dawsn fresnl sici shichi expn spence ei | |||||||||||||||||||||||||||
| 35 | erfc erf struve plancki simpson bernum polylog vecang); | ||||||||||||||||||||||||||||
| 36 | 17 | my @fract = qw(radd rsub rmul rdiv euclid); | |||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||
| 38 | 17 | %EXPORT_TAGS = ('constants' => [@constants], | |||||||||||||||||||||||||||
| 39 | 'utils' => [@utils], | ||||||||||||||||||||||||||||
| 40 | 'trigs' => [@trigs], | ||||||||||||||||||||||||||||
| 41 | 'hypers' => [@hypers], | ||||||||||||||||||||||||||||
| 42 | 'explog' => [@explog], | ||||||||||||||||||||||||||||
| 43 | 'cmplx' => [@cmplx], | ||||||||||||||||||||||||||||
| 44 | 'bessels' => [@bessels], | ||||||||||||||||||||||||||||
| 45 | 'gammas' => [@gammas], | ||||||||||||||||||||||||||||
| 46 | 'dists' => [@dists], | ||||||||||||||||||||||||||||
| 47 | 'betas' => [@betas], | ||||||||||||||||||||||||||||
| 48 | 'elliptics' => [@elliptics], | ||||||||||||||||||||||||||||
| 49 | 'hypergeometrics' => [@hypergeometrics], | ||||||||||||||||||||||||||||
| 50 | 'fract' => [@fract], | ||||||||||||||||||||||||||||
| 51 | 'misc' => [@misc], | ||||||||||||||||||||||||||||
| 52 | 'all' => [@constants, @utils, @trigs, @hypers, | ||||||||||||||||||||||||||||
| 53 | @explog, @bessels, @gammas, @betas, @elliptics, | ||||||||||||||||||||||||||||
| 54 | @hypergeometrics, @misc, @dists], | ||||||||||||||||||||||||||||
| 55 | ); | ||||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||
| 57 | 17 | @EXPORT_OK = (@constants, @utils, @trigs, @hypers, | |||||||||||||||||||||||||||
| 58 | @explog, @bessels, @gammas, @betas, @elliptics, | ||||||||||||||||||||||||||||
| 59 | @hypergeometrics, @misc, @dists, @fract, @cmplx); | ||||||||||||||||||||||||||||
| 60 | |||||||||||||||||||||||||||||
| 61 | 17 | $VERSION = '0.5308'; | |||||||||||||||||||||||||||
| 62 | #Math::Cephes->bootstrap($VERSION); | ||||||||||||||||||||||||||||
| 63 | #var_Math__Cephes_init(); | ||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||
| 65 | 1 | ▶ | sub simpson { | ||||||||||||||||||||||||||
|
Subroutine
simpson: called CC=12 SCAR=26.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 66 | 1 | my ($r, $a, $b, $abs, $rel, $nmax) = @_; | |||||||||||||||||||||||||||
| 67 | 1 | ▶ | die "Must supply a CODE reference" unless ref($r) eq 'CODE'; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 68 | 1 | ▶ | die "Must supply start and end points($a and $b)" | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $a and defined $b
MC/DC0%0/2
defined $a and defined $b
defined $a
defined $b
Truth table33%1/3
A and B
A= defined $aB= defined $b
| |||||||||||||||||||||||||||||
| 69 | unless (defined $a and defined $b); | ||||||||||||||||||||||||||||
| 70 | 1 | ▶ | $abs ||= 1e-06; | ||||||||||||||||||||||||||
|
Condition50%1/2
$abs ||= "1e-06"
MC/DC0%0/1
$abs ||= "1e-06"
$abs
Truth table50%1/2
A
A= $abs
| |||||||||||||||||||||||||||||
| 71 | 1 | ▶ | $rel ||= 1e-06; | ||||||||||||||||||||||||||
|
Condition50%1/2
$rel ||= "1e-06"
MC/DC0%0/1
$rel ||= "1e-06"
$rel
Truth table50%1/2
A
A= $rel
| |||||||||||||||||||||||||||||
| 72 | 1 | ▶ | $nmax ||= 256; | ||||||||||||||||||||||||||
|
Condition50%1/2
$nmax ||= 256
MC/DC0%0/1
$nmax ||= 256
$nmax
Truth table50%1/2
A
A= $nmax
| |||||||||||||||||||||||||||||
| 73 | 1 | ▶ | $nmax = 2 if $nmax < 2; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 74 | 1 | my $sumold = 0; | |||||||||||||||||||||||||||
| 75 | 1 | ▶ | for (my $n=2; $n<=$nmax; $n++) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 76 | 24 | my $count = 0; | |||||||||||||||||||||||||||
| 77 | 24 | my $x = $a; | |||||||||||||||||||||||||||
| 78 | 24 | my $sum = 0; | |||||||||||||||||||||||||||
| 79 | 24 | my $h = ($b - $a) / $n / 8; | |||||||||||||||||||||||||||
| 80 | 24 | my $f = []; | |||||||||||||||||||||||||||
| 81 | 24 | ▶ | for($count=0; $count <= 8*$n; $count++, $x+=$h) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 82 | 2616 | $f->[$count] = &$r($x); | |||||||||||||||||||||||||||
| 83 | } | ||||||||||||||||||||||||||||
| 84 | 24 | $sum = Math::Cephes::simpsn_wrap($f, $count-1, $h); | |||||||||||||||||||||||||||
| 85 | 24 | my $test = abs($sum - $sumold); | |||||||||||||||||||||||||||
| 86 | 24 | ▶ | return $sum if ($test < $abs or abs($test/$sum) < $rel); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$test < $abs or abs $test / $sum < $rel
MC/DC50%1/2
$test < $abs or abs $test / $sum < $rel
$test < $abs
abs $test / $sum < $rel
Truth table66%2/3
A or B
A= $test < $absB= abs $test / $sum < $rel
| |||||||||||||||||||||||||||||
| 87 | 23 | $sumold = $sum; | |||||||||||||||||||||||||||
| 88 | } | ||||||||||||||||||||||||||||
| 89 | 0 | warn("Math::Cephes::simpson: Maximum number $nmax of iterations reached"); | |||||||||||||||||||||||||||
| 90 | 0 | return undef; | |||||||||||||||||||||||||||
| 91 | } | ||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||
| 93 | 2 | ▶ | sub bernum { | ||||||||||||||||||||||||||
|
Subroutine
bernum: called CC=4 SCAR=14.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 94 | 2 | my $i = shift; | |||||||||||||||||||||||||||
| 95 | 2 | ▶ | die "Cannot exceed i=30" if (defined $i and $i > 30); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $i and $i > 30
MC/DC0%0/2
defined $i and $i > 30
defined $i
$i > 30
Truth table66%2/3
A and B
A= defined $iB= $i > 30
| |||||||||||||||||||||||||||||
| 96 | 2 | my $num = [split //, 0 x 30 ]; | |||||||||||||||||||||||||||
| 97 | 2 | my $den = [split //, 0 x 30 ]; | |||||||||||||||||||||||||||
| 98 | 2 | Math::Cephes::bernum_wrap($num, $den); | |||||||||||||||||||||||||||
| 99 | 2 | ▶ | return defined $i ? (int($num->[$i]), int($den->[$i])) : ($num, $den); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 100 | } | ||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||
| 102 | 2 | ▶ | sub expxx { | ||||||||||||||||||||||||||
|
Subroutine
expxx: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 103 | 2 | my $x = shift; | |||||||||||||||||||||||||||
| 104 | 2 | ▶ | my $n = shift || 1; | ||||||||||||||||||||||||||
|
Condition100%2/2
shift() || 1
MC/DC100%1/1
shift() || 1
shift()
Truth table100%2/2
A
A= shift()
| |||||||||||||||||||||||||||||
| 105 | 2 | return Math::Cephes::expx2($x, $n); | |||||||||||||||||||||||||||
| 106 | } | ||||||||||||||||||||||||||||
| 107 | |||||||||||||||||||||||||||||
| 108 | 1 | ▶ | sub vecang { | ||||||||||||||||||||||||||
|
Subroutine
vecang: called CC=5 SCAR=19.4
Pod
undocumented
| |||||||||||||||||||||||||||||
| 109 | 1 | my ($a, $b) = @_; | |||||||||||||||||||||||||||
| 110 | 1 | ▶ | die "Must supply array references" | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
ref $a eq "ARRAY" and ref $b eq "ARRAY"
MC/DC0%0/2
ref $a eq "ARRAY" and ref $b eq "ARRAY"
ref $a eq "ARRAY"
ref $b eq "ARRAY"
Truth table33%1/3
A and B
A= ref $a eq "ARRAY"B= ref $b eq "ARRAY"
| |||||||||||||||||||||||||||||
| 111 | unless (ref($a) eq 'ARRAY' and ref($b) eq 'ARRAY'); | ||||||||||||||||||||||||||||
| 112 | 1 | ▶ | die "Vectors must be of dimension 3" | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
scalar @$a == 3 and scalar @$b == 3
MC/DC0%0/2
scalar @$a == 3 and scalar @$b == 3
scalar @$a == 3
scalar @$b == 3
Truth table33%1/3
A and B
A= scalar @$a == 3B= scalar @$b == 3
| |||||||||||||||||||||||||||||
| 113 | unless (scalar @$a == 3 and scalar @$b == 3); | ||||||||||||||||||||||||||||
| 114 | 1 | return Math::Cephes::arcdot($a, $b); | |||||||||||||||||||||||||||
| 115 | } | ||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||
| 117 | # ---------- BASE METHODS ------------- | ||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||
| 119 | package Math::Cephes; | ||||||||||||||||||||||||||||
| 120 | |||||||||||||||||||||||||||||
| 121 | 0 | ▶ | sub TIEHASH { | ||||||||||||||||||||||||||
|
Subroutine
TIEHASH: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 122 | 0 | my ($classname,$obj) = @_; | |||||||||||||||||||||||||||
| 123 | 0 | return bless $obj, $classname; | |||||||||||||||||||||||||||
| 124 | } | ||||||||||||||||||||||||||||
| 125 | |||||||||||||||||||||||||||||
| 126 | 0 | ▶ | sub CLEAR { } | ||||||||||||||||||||||||||
|
Subroutine
CLEAR: not called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 127 | |||||||||||||||||||||||||||||
| 128 | 0 | ▶ | sub FIRSTKEY { } | ||||||||||||||||||||||||||
|
Subroutine
FIRSTKEY: not called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 129 | |||||||||||||||||||||||||||||
| 130 | 0 | ▶ | sub NEXTKEY { } | ||||||||||||||||||||||||||
|
Subroutine
NEXTKEY: not called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 131 | |||||||||||||||||||||||||||||
| 132 | 244 | ▶ | sub FETCH { | ||||||||||||||||||||||||||
|
Subroutine
FETCH: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 133 | 244 | my ($self,$field) = @_; | |||||||||||||||||||||||||||
| 134 | 244 | my $member_func = "swig_${field}_get"; | |||||||||||||||||||||||||||
| 135 | 244 | $self->$member_func(); | |||||||||||||||||||||||||||
| 136 | } | ||||||||||||||||||||||||||||
| 137 | |||||||||||||||||||||||||||||
| 138 | 6 | ▶ | sub STORE { | ||||||||||||||||||||||||||
|
Subroutine
STORE: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 139 | 6 | my ($self,$field,$newval) = @_; | |||||||||||||||||||||||||||
| 140 | 6 | my $member_func = "swig_${field}_set"; | |||||||||||||||||||||||||||
| 141 | 6 | $self->$member_func($newval); | |||||||||||||||||||||||||||
| 142 | } | ||||||||||||||||||||||||||||
| 143 | |||||||||||||||||||||||||||||
| 144 | 0 | ▶ | sub this { | ||||||||||||||||||||||||||
|
Subroutine
this: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 145 | 0 | my $ptr = shift; | |||||||||||||||||||||||||||
| 146 | 0 | return tied(%$ptr); | |||||||||||||||||||||||||||
| 147 | } | ||||||||||||||||||||||||||||
| 148 | |||||||||||||||||||||||||||||
| 149 | |||||||||||||||||||||||||||||
| 150 | # ------- FUNCTION WRAPPERS -------- | ||||||||||||||||||||||||||||
| 151 | |||||||||||||||||||||||||||||
| 152 | package Math::Cephes; | ||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||
| 154 | 17 | *acosh = *Math::Cephesc::md_acosh; | |||||||||||||||||||||||||||
| 155 | 17 | *airy = *Math::Cephesc::airy; | |||||||||||||||||||||||||||
| 156 | 17 | *asin = *Math::Cephesc::md_asin; | |||||||||||||||||||||||||||
| 157 | 17 | *acos = *Math::Cephesc::md_acos; | |||||||||||||||||||||||||||
| 158 | 17 | *asinh = *Math::Cephesc::md_asinh; | |||||||||||||||||||||||||||
| 159 | 17 | *atan = *Math::Cephesc::md_atan; | |||||||||||||||||||||||||||
| 160 | 17 | *atan2 = *Math::Cephesc::md_atan2; | |||||||||||||||||||||||||||
| 161 | 17 | *atanh = *Math::Cephesc::md_atanh; | |||||||||||||||||||||||||||
| 162 | 17 | *bdtrc = *Math::Cephesc::bdtrc; | |||||||||||||||||||||||||||
| 163 | 17 | *bdtr = *Math::Cephesc::bdtr; | |||||||||||||||||||||||||||
| 164 | 17 | *bdtri = *Math::Cephesc::bdtri; | |||||||||||||||||||||||||||
| 165 | 17 | *beta = *Math::Cephesc::beta; | |||||||||||||||||||||||||||
| 166 | 17 | *lbeta = *Math::Cephesc::lbeta; | |||||||||||||||||||||||||||
| 167 | 17 | *btdtr = *Math::Cephesc::btdtr; | |||||||||||||||||||||||||||
| 168 | 17 | *cbrt = *Math::Cephesc::md_cbrt; | |||||||||||||||||||||||||||
| 169 | 17 | *chbevl = *Math::Cephesc::chbevl; | |||||||||||||||||||||||||||
| 170 | 17 | *chdtrc = *Math::Cephesc::chdtrc; | |||||||||||||||||||||||||||
| 171 | 17 | *chdtr = *Math::Cephesc::chdtr; | |||||||||||||||||||||||||||
| 172 | 17 | *chdtri = *Math::Cephesc::chdtri; | |||||||||||||||||||||||||||
| 173 | 17 | *clog = *Math::Cephesc::md_clog; | |||||||||||||||||||||||||||
| 174 | 17 | *cexp = *Math::Cephesc::md_cexp; | |||||||||||||||||||||||||||
| 175 | 17 | *csin = *Math::Cephesc::md_csin; | |||||||||||||||||||||||||||
| 176 | 17 | *ccos = *Math::Cephesc::md_ccos; | |||||||||||||||||||||||||||
| 177 | 17 | *ctan = *Math::Cephesc::md_ctan; | |||||||||||||||||||||||||||
| 178 | 17 | *ccot = *Math::Cephesc::ccot; | |||||||||||||||||||||||||||
| 179 | 17 | *casin = *Math::Cephesc::md_casin; | |||||||||||||||||||||||||||
| 180 | 17 | *cacos = *Math::Cephesc::md_cacos; | |||||||||||||||||||||||||||
| 181 | 17 | *catan = *Math::Cephesc::md_catan; | |||||||||||||||||||||||||||
| 182 | 17 | *csinh = *Math::Cephesc::md_csinh; | |||||||||||||||||||||||||||
| 183 | 17 | *casinh = *Math::Cephesc::md_casinh; | |||||||||||||||||||||||||||
| 184 | 17 | *ccosh = *Math::Cephesc::md_ccosh; | |||||||||||||||||||||||||||
| 185 | 17 | *cacosh = *Math::Cephesc::md_cacosh; | |||||||||||||||||||||||||||
| 186 | 17 | *ctanh = *Math::Cephesc::md_ctanh; | |||||||||||||||||||||||||||
| 187 | 17 | *catanh = *Math::Cephesc::md_catanh; | |||||||||||||||||||||||||||
| 188 | 17 | *cpow = *Math::Cephesc::md_cpow; | |||||||||||||||||||||||||||
| 189 | 17 | *radd = *Math::Cephesc::radd; | |||||||||||||||||||||||||||
| 190 | 17 | *rsub = *Math::Cephesc::rsub; | |||||||||||||||||||||||||||
| 191 | 17 | *rmul = *Math::Cephesc::rmul; | |||||||||||||||||||||||||||
| 192 | 17 | *rdiv = *Math::Cephesc::rdiv; | |||||||||||||||||||||||||||
| 193 | 17 | *euclid = *Math::Cephesc::euclid; | |||||||||||||||||||||||||||
| 194 | 17 | *cadd = *Math::Cephesc::cadd; | |||||||||||||||||||||||||||
| 195 | 17 | *csub = *Math::Cephesc::csub; | |||||||||||||||||||||||||||
| 196 | 17 | *cmul = *Math::Cephesc::cmul; | |||||||||||||||||||||||||||
| 197 | 17 | *cdiv = *Math::Cephesc::cdiv; | |||||||||||||||||||||||||||
| 198 | 17 | *cmov = *Math::Cephesc::cmov; | |||||||||||||||||||||||||||
| 199 | 17 | *cneg = *Math::Cephesc::cneg; | |||||||||||||||||||||||||||
| 200 | 17 | *cabs = *Math::Cephesc::md_cabs; | |||||||||||||||||||||||||||
| 201 | 17 | *csqrt = *Math::Cephesc::md_csqrt; | |||||||||||||||||||||||||||
| 202 | 17 | *hypot = *Math::Cephesc::md_hypot; | |||||||||||||||||||||||||||
| 203 | 17 | *cosh = *Math::Cephesc::md_cosh; | |||||||||||||||||||||||||||
| 204 | 17 | *dawsn = *Math::Cephesc::dawsn; | |||||||||||||||||||||||||||
| 205 | 17 | *ellie = *Math::Cephesc::ellie; | |||||||||||||||||||||||||||
| 206 | 17 | *ellik = *Math::Cephesc::ellik; | |||||||||||||||||||||||||||
| 207 | 17 | *ellpe = *Math::Cephesc::ellpe; | |||||||||||||||||||||||||||
| 208 | 17 | *ellpj = *Math::Cephesc::ellpj; | |||||||||||||||||||||||||||
| 209 | 17 | *ellpk = *Math::Cephesc::ellpk; | |||||||||||||||||||||||||||
| 210 | 17 | *exp = *Math::Cephesc::md_exp; | |||||||||||||||||||||||||||
| 211 | 17 | *exp10 = *Math::Cephesc::md_exp10; | |||||||||||||||||||||||||||
| 212 | 17 | *exp2 = *Math::Cephesc::md_exp2; | |||||||||||||||||||||||||||
| 213 | 17 | *expn = *Math::Cephesc::md_expn; | |||||||||||||||||||||||||||
| 214 | 17 | *ei = *Math::Cephesc::ei; | |||||||||||||||||||||||||||
| 215 | 17 | *fabs = *Math::Cephesc::md_fabs; | |||||||||||||||||||||||||||
| 216 | 17 | *fac = *Math::Cephesc::fac; | |||||||||||||||||||||||||||
| 217 | 17 | *fdtrc = *Math::Cephesc::fdtrc; | |||||||||||||||||||||||||||
| 218 | 17 | *fdtr = *Math::Cephesc::fdtr; | |||||||||||||||||||||||||||
| 219 | 17 | *fdtri = *Math::Cephesc::fdtri; | |||||||||||||||||||||||||||
| 220 | 17 | *ceil = *Math::Cephesc::md_ceil; | |||||||||||||||||||||||||||
| 221 | 17 | *floor = *Math::Cephesc::md_floor; | |||||||||||||||||||||||||||
| 222 | 17 | *frexp = *Math::Cephesc::md_frexp; | |||||||||||||||||||||||||||
| 223 | 17 | *ldexp = *Math::Cephesc::md_ldexp; | |||||||||||||||||||||||||||
| 224 | 17 | *fresnl = *Math::Cephesc::fresnl; | |||||||||||||||||||||||||||
| 225 | 17 | *gamma = *Math::Cephesc::md_gamma; | |||||||||||||||||||||||||||
| 226 | 17 | *lgam = *Math::Cephesc::lgam; | |||||||||||||||||||||||||||
| 227 | 17 | *gdtr = *Math::Cephesc::gdtr; | |||||||||||||||||||||||||||
| 228 | 17 | *gdtrc = *Math::Cephesc::gdtrc; | |||||||||||||||||||||||||||
| 229 | 17 | *hyp2f1 = *Math::Cephesc::hyp2f1; | |||||||||||||||||||||||||||
| 230 | 17 | *hyperg = *Math::Cephesc::hyperg; | |||||||||||||||||||||||||||
| 231 | 17 | *hyp2f0 = *Math::Cephesc::hyp2f0; | |||||||||||||||||||||||||||
| 232 | 17 | *i0 = *Math::Cephesc::i0; | |||||||||||||||||||||||||||
| 233 | 17 | *i0e = *Math::Cephesc::i0e; | |||||||||||||||||||||||||||
| 234 | 17 | *i1 = *Math::Cephesc::i1; | |||||||||||||||||||||||||||
| 235 | 17 | *i1e = *Math::Cephesc::i1e; | |||||||||||||||||||||||||||
| 236 | 17 | *igamc = *Math::Cephesc::igamc; | |||||||||||||||||||||||||||
| 237 | 17 | *igam = *Math::Cephesc::igam; | |||||||||||||||||||||||||||
| 238 | 17 | *igami = *Math::Cephesc::igami; | |||||||||||||||||||||||||||
| 239 | 17 | *incbet = *Math::Cephesc::incbet; | |||||||||||||||||||||||||||
| 240 | 17 | *incbi = *Math::Cephesc::incbi; | |||||||||||||||||||||||||||
| 241 | 17 | *iv = *Math::Cephesc::iv; | |||||||||||||||||||||||||||
| 242 | 17 | *j0 = *Math::Cephesc::md_j0; | |||||||||||||||||||||||||||
| 243 | 17 | *y0 = *Math::Cephesc::md_y0; | |||||||||||||||||||||||||||
| 244 | 17 | *j1 = *Math::Cephesc::md_j1; | |||||||||||||||||||||||||||
| 245 | 17 | *y1 = *Math::Cephesc::md_y1; | |||||||||||||||||||||||||||
| 246 | 17 | *jn = *Math::Cephesc::md_jn; | |||||||||||||||||||||||||||
| 247 | 17 | *jv = *Math::Cephesc::jv; | |||||||||||||||||||||||||||
| 248 | 17 | *k0 = *Math::Cephesc::k0; | |||||||||||||||||||||||||||
| 249 | 17 | *k0e = *Math::Cephesc::k0e; | |||||||||||||||||||||||||||
| 250 | 17 | *k1 = *Math::Cephesc::k1; | |||||||||||||||||||||||||||
| 251 | 17 | *k1e = *Math::Cephesc::k1e; | |||||||||||||||||||||||||||
| 252 | 17 | *kn = *Math::Cephesc::kn; | |||||||||||||||||||||||||||
| 253 | 17 | *log = *Math::Cephesc::md_log; | |||||||||||||||||||||||||||
| 254 | 17 | *log10 = *Math::Cephesc::md_log10; | |||||||||||||||||||||||||||
| 255 | 17 | *log2 = *Math::Cephesc::md_log2; | |||||||||||||||||||||||||||
| 256 | 17 | *lrand = *Math::Cephesc::lrand; | |||||||||||||||||||||||||||
| 257 | 17 | *lsqrt = *Math::Cephesc::lsqrt; | |||||||||||||||||||||||||||
| 258 | 17 | *mtherr = *Math::Cephesc::mtherr; | |||||||||||||||||||||||||||
| 259 | 17 | *new_cmplx = \&Math::Cephesc::new_cmplx; | |||||||||||||||||||||||||||
| 260 | 17 | *polevl = *Math::Cephesc::polevl; | |||||||||||||||||||||||||||
| 261 | 17 | *p1evl = *Math::Cephesc::p1evl; | |||||||||||||||||||||||||||
| 262 | 17 | *nbdtrc = *Math::Cephesc::nbdtrc; | |||||||||||||||||||||||||||
| 263 | 17 | *nbdtr = *Math::Cephesc::nbdtr; | |||||||||||||||||||||||||||
| 264 | 17 | *nbdtri = *Math::Cephesc::nbdtri; | |||||||||||||||||||||||||||
| 265 | 17 | *ndtr = *Math::Cephesc::ndtr; | |||||||||||||||||||||||||||
| 266 | 17 | *erfc = *Math::Cephesc::md_erfc; | |||||||||||||||||||||||||||
| 267 | 17 | *erf = *Math::Cephesc::md_erf; | |||||||||||||||||||||||||||
| 268 | 17 | *ndtri = *Math::Cephesc::ndtri; | |||||||||||||||||||||||||||
| 269 | 17 | *pdtrc = *Math::Cephesc::pdtrc; | |||||||||||||||||||||||||||
| 270 | 17 | *pdtr = *Math::Cephesc::pdtr; | |||||||||||||||||||||||||||
| 271 | 17 | *pdtri = *Math::Cephesc::pdtri; | |||||||||||||||||||||||||||
| 272 | 17 | *pow = *Math::Cephesc::md_pow; | |||||||||||||||||||||||||||
| 273 | 17 | *powi = *Math::Cephesc::md_powi; | |||||||||||||||||||||||||||
| 274 | 17 | *psi = *Math::Cephesc::psi; | |||||||||||||||||||||||||||
| 275 | 17 | *rgamma = *Math::Cephesc::rgamma; | |||||||||||||||||||||||||||
| 276 | 17 | *round = *Math::Cephesc::md_round; | |||||||||||||||||||||||||||
| 277 | 17 | *shichi = *Math::Cephesc::shichi; | |||||||||||||||||||||||||||
| 278 | 17 | *sici = *Math::Cephesc::sici; | |||||||||||||||||||||||||||
| 279 | 17 | *sin = *Math::Cephesc::md_sin; | |||||||||||||||||||||||||||
| 280 | 17 | *cos = *Math::Cephesc::md_cos; | |||||||||||||||||||||||||||
| 281 | 17 | *radian = *Math::Cephesc::radian; | |||||||||||||||||||||||||||
| 282 | 17 | *sindg = *Math::Cephesc::md_sindg; | |||||||||||||||||||||||||||
| 283 | 17 | *cosdg = *Math::Cephesc::cosdg; | |||||||||||||||||||||||||||
| 284 | 17 | *sinh = *Math::Cephesc::md_sinh; | |||||||||||||||||||||||||||
| 285 | 17 | *spence = *Math::Cephesc::spence; | |||||||||||||||||||||||||||
| 286 | 17 | *sqrt = *Math::Cephesc::sqrt; | |||||||||||||||||||||||||||
| 287 | 17 | *stdtr = *Math::Cephesc::stdtr; | |||||||||||||||||||||||||||
| 288 | 17 | *stdtri = *Math::Cephesc::stdtri; | |||||||||||||||||||||||||||
| 289 | 17 | *onef2 = *Math::Cephesc::onef2; | |||||||||||||||||||||||||||
| 290 | 17 | *threef0 = *Math::Cephesc::threef0; | |||||||||||||||||||||||||||
| 291 | 17 | *struve = *Math::Cephesc::struve; | |||||||||||||||||||||||||||
| 292 | 17 | *tan = *Math::Cephesc::md_tan; | |||||||||||||||||||||||||||
| 293 | 17 | *cot = *Math::Cephesc::cot; | |||||||||||||||||||||||||||
| 294 | 17 | *tandg = *Math::Cephesc::tandg; | |||||||||||||||||||||||||||
| 295 | 17 | *cotdg = *Math::Cephesc::cotdg; | |||||||||||||||||||||||||||
| 296 | 17 | *tanh = *Math::Cephesc::md_tanh; | |||||||||||||||||||||||||||
| 297 | 17 | *log1p = *Math::Cephesc::md_log1p; | |||||||||||||||||||||||||||
| 298 | 17 | *expm1 = *Math::Cephesc::expm1; | |||||||||||||||||||||||||||
| 299 | 17 | *cosm1 = *Math::Cephesc::cosm1; | |||||||||||||||||||||||||||
| 300 | 17 | *yn = *Math::Cephesc::md_yn; | |||||||||||||||||||||||||||
| 301 | 17 | *yv = *Math::Cephesc::yv; | |||||||||||||||||||||||||||
| 302 | 17 | *zeta = *Math::Cephesc::zeta; | |||||||||||||||||||||||||||
| 303 | 17 | *zetac = *Math::Cephesc::zetac; | |||||||||||||||||||||||||||
| 304 | 17 | *drand = *Math::Cephesc::drand; | |||||||||||||||||||||||||||
| 305 | 17 | *plancki = *Math::Cephesc::plancki; | |||||||||||||||||||||||||||
| 306 | 17 | *polini = *Math::Cephesc::polini; | |||||||||||||||||||||||||||
| 307 | 17 | *polmul = *Math::Cephesc::polmul; | |||||||||||||||||||||||||||
| 308 | 17 | *poldiv = *Math::Cephesc::poldiv; | |||||||||||||||||||||||||||
| 309 | 17 | *poladd = *Math::Cephesc::poladd; | |||||||||||||||||||||||||||
| 310 | 17 | *polsub = *Math::Cephesc::polsub; | |||||||||||||||||||||||||||
| 311 | 17 | *polsbt = *Math::Cephesc::polsbt; | |||||||||||||||||||||||||||
| 312 | 17 | *poleva = *Math::Cephesc::poleva; | |||||||||||||||||||||||||||
| 313 | 17 | *polatn = *Math::Cephesc::polatn; | |||||||||||||||||||||||||||
| 314 | 17 | *polsqt = *Math::Cephesc::polsqt; | |||||||||||||||||||||||||||
| 315 | 17 | *polsin = *Math::Cephesc::polsin; | |||||||||||||||||||||||||||
| 316 | 17 | *polcos = *Math::Cephesc::polcos; | |||||||||||||||||||||||||||
| 317 | 17 | *polrt_wrap = *Math::Cephesc::polrt_wrap; | |||||||||||||||||||||||||||
| 318 | 17 | *cpmul_wrap = *Math::Cephesc::cpmul_wrap; | |||||||||||||||||||||||||||
| 319 | 17 | *fpolini = *Math::Cephesc::fpolini; | |||||||||||||||||||||||||||
| 320 | 17 | *fpolmul_wrap = *Math::Cephesc::fpolmul_wrap; | |||||||||||||||||||||||||||
| 321 | 17 | *fpoldiv_wrap = *Math::Cephesc::fpoldiv_wrap; | |||||||||||||||||||||||||||
| 322 | 17 | *fpoladd_wrap = *Math::Cephesc::fpoladd_wrap; | |||||||||||||||||||||||||||
| 323 | 17 | *fpolsub_wrap = *Math::Cephesc::fpolsub_wrap; | |||||||||||||||||||||||||||
| 324 | 17 | *fpolsbt_wrap = *Math::Cephesc::fpolsbt_wrap; | |||||||||||||||||||||||||||
| 325 | 17 | *fpoleva_wrap = *Math::Cephesc::fpoleva_wrap; | |||||||||||||||||||||||||||
| 326 | 17 | *bernum_wrap = *Math::Cephesc::bernum_wrap; | |||||||||||||||||||||||||||
| 327 | 17 | *simpsn_wrap = *Math::Cephesc::simpsn_wrap; | |||||||||||||||||||||||||||
| 328 | 17 | *minv = *Math::Cephesc::minv; | |||||||||||||||||||||||||||
| 329 | 17 | *mtransp = *Math::Cephesc::mtransp; | |||||||||||||||||||||||||||
| 330 | 17 | *eigens = *Math::Cephesc::eigens; | |||||||||||||||||||||||||||
| 331 | 17 | *simq = *Math::Cephesc::simq; | |||||||||||||||||||||||||||
| 332 | 17 | *polylog = *Math::Cephesc::polylog; | |||||||||||||||||||||||||||
| 333 | 17 | *arcdot = *Math::Cephesc::arcdot; | |||||||||||||||||||||||||||
| 334 | 17 | *expx2 = *Math::Cephesc::expx2; | |||||||||||||||||||||||||||
| 335 | |||||||||||||||||||||||||||||
| 336 | |||||||||||||||||||||||||||||
| 337 | # ------- VARIABLE STUBS -------- | ||||||||||||||||||||||||||||
| 338 | |||||||||||||||||||||||||||||
| 339 | package Math::Cephes; | ||||||||||||||||||||||||||||
| 340 | |||||||||||||||||||||||||||||
| 341 | 17 | *MACHEP = *Math::Cephesc::MACHEP; | |||||||||||||||||||||||||||
| 342 | 17 | *MAXLOG = *Math::Cephesc::MAXLOG; | |||||||||||||||||||||||||||
| 343 | 17 | *MINLOG = *Math::Cephesc::MINLOG; | |||||||||||||||||||||||||||
| 344 | 17 | *MAXNUM = *Math::Cephesc::MAXNUM; | |||||||||||||||||||||||||||
| 345 | 17 | *PI = *Math::Cephesc::PI; | |||||||||||||||||||||||||||
| 346 | 17 | *PIO2 = *Math::Cephesc::PIO2; | |||||||||||||||||||||||||||
| 347 | 17 | *PIO4 = *Math::Cephesc::PIO4; | |||||||||||||||||||||||||||
| 348 | 17 | *SQRT2 = *Math::Cephesc::SQRT2; | |||||||||||||||||||||||||||
| 349 | 17 | *SQRTH = *Math::Cephesc::SQRTH; | |||||||||||||||||||||||||||
| 350 | 17 | *LOG2E = *Math::Cephesc::LOG2E; | |||||||||||||||||||||||||||
| 351 | 17 | *SQ2OPI = *Math::Cephesc::SQ2OPI; | |||||||||||||||||||||||||||
| 352 | 17 | *LOGE2 = *Math::Cephesc::LOGE2; | |||||||||||||||||||||||||||
| 353 | 17 | *LOGSQ2 = *Math::Cephesc::LOGSQ2; | |||||||||||||||||||||||||||
| 354 | 17 | *THPIO4 = *Math::Cephesc::THPIO4; | |||||||||||||||||||||||||||
| 355 | 17 | *TWOOPI = *Math::Cephesc::TWOOPI; | |||||||||||||||||||||||||||
| 356 | |||||||||||||||||||||||||||||
| 357 | 17 | require Math::Cephes::Complex; | |||||||||||||||||||||||||||
| 358 | |||||||||||||||||||||||||||||
| 359 | 17 | 1; | |||||||||||||||||||||||||||
| 360 | |||||||||||||||||||||||||||||
| 361 | __END__ | ||||||||||||||||||||||||||||