line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Math::SymbolicX::BigNum;
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1326
|
use 5.006;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
5
|
1
|
|
|
1
|
|
15
|
use warnings;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
6
|
1
|
|
|
1
|
|
4
|
use Carp;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
327
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Math::BigInt;
|
9
|
|
|
|
|
|
|
require Math::BigRat;
|
10
|
|
|
|
|
|
|
require Math::BigFloat;
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = '0.02';
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
use Math::SymbolicX::ParserExtensionFactory (
|
15
|
|
|
|
|
|
|
bigint => sub {
|
16
|
5
|
|
|
|
|
15374
|
my $argstring = shift;
|
17
|
5
|
|
|
|
|
31
|
return Math::Symbolic::Constant->new( Math::BigInt->new($argstring) );
|
18
|
|
|
|
|
|
|
},
|
19
|
|
|
|
|
|
|
bigrat => sub {
|
20
|
2
|
|
|
|
|
8824
|
my $argstring = shift;
|
21
|
2
|
|
|
|
|
14
|
return Math::Symbolic::Constant->new( Math::BigRat->new($argstring) );
|
22
|
|
|
|
|
|
|
},
|
23
|
|
|
|
|
|
|
bignum => sub {
|
24
|
0
|
|
|
|
|
0
|
my $argstring = shift;
|
25
|
0
|
0
|
|
|
|
0
|
if ( $argstring =~ /\// ) {
|
26
|
0
|
|
|
|
|
0
|
return Math::Symbolic::Constant->new(
|
27
|
|
|
|
|
|
|
Math::BigRat->new($argstring) );
|
28
|
|
|
|
|
|
|
}
|
29
|
|
|
|
|
|
|
else {
|
30
|
0
|
|
|
|
|
0
|
return Math::Symbolic::Constant->new(
|
31
|
|
|
|
|
|
|
Math::BigFloat->new($argstring) );
|
32
|
|
|
|
|
|
|
}
|
33
|
|
|
|
|
|
|
},
|
34
|
|
|
|
|
|
|
bigfloat => sub {
|
35
|
3
|
|
|
|
|
11276
|
my $argstring = shift;
|
36
|
3
|
|
|
|
|
24
|
return Math::Symbolic::Constant->new( Math::BigFloat->new($argstring) );
|
37
|
|
|
|
|
|
|
},
|
38
|
1
|
|
|
1
|
|
792
|
);
|
|
1
|
|
|
|
|
896
|
|
|
1
|
|
|
|
|
12
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1;
|
41
|
|
|
|
|
|
|
__END__
|