Lines Matching defs:bdiv
47 '/' => sub { $_[2] ? ref($_[0]) -> new($_[1]) -> bdiv($_[0])
48 : $_[0] -> copy() -> bdiv($_[1]); },
70 '/=' => sub { scalar $_[0] -> bdiv($_[1]); },
1270 $an = $an -> bmul($an, $n) -> bdiv(4 * $tn, $n);
2090 sub bdiv {
2101 return $x if $x->modify('bdiv');
2106 # Math::BigInt -> bdiv().
2114 # Math::BigInt -> bdiv(). See the comment in the code for Math::BigInt ->
2115 # bdiv() for further details.
2133 # Math::BigInt -> bdiv(). See the comment in the code for Math::BigInt ->
2134 # bdiv() for further details.
2149 # Math::BigInt -> bdiv(), with one exception: In scalar context,
2152 # comment in the code for Math::BigInt -> bdiv() for further details.
2197 return $upgrade -> bdiv($x, $y, @r)
2547 return scalar $x -> bdiv($z, $a, $p, $r);
2562 my $inv = $class -> bdiv($class -> bone(), $x, @r);
2701 $x = $x -> bdiv($base_log_e, $scale);
3222 $term -> bmul($xsq, $scale) -> bdiv($fac, $scale);
3356 my $next = $over->copy()->bdiv($below, $scale);
3479 $x = $x->bdiv($x_copy, $scale);
3485 $x = $x->bdiv($x->copy()->bmul($x)->binc()->bsqrt($scale + 4)->binc(),
3527 my $next = $over->copy()->bdiv($below, $scale);
3641 $y = $y -> bdiv($x, $scale) -> batan($scale); # atan(y/x)
3646 $y = $y -> bdiv($x, $scale) -> batan() # atan(y/x) + pi
3649 $y = $y -> bdiv($x, $scale) -> batan() # atan(y/x) - pi
3844 my $u = $class->bone()->bdiv($x, $scale);
3871 my $u = $class->bone()->bdiv($y, $scale+4);
4095 # call bdiv()
4096 $x = $x -> bdiv($b -> bpow($y), $r[0], $r[1], $r[2], $y);
4628 $x = $x -> bdiv($gcd) -> bmul($y);
5845 $x = $x -> bdiv($v, $scaleup); # first term: u/v
5861 -> bdiv($denom -> copy() -> bmul($factor) -> bround($scaleup), $scaleup);
6055 $x = $x->bdiv($two, $scale+4); # keep all digits
6170 $next = $over->copy()->bdiv($below, $scale);
6183 $x = $x->bone->bdiv($x_copy, $scale);
6324 $x->bdiv($y); # division (floored), set $x to quotient
6557 print scalar $x->copy()->bdiv($y, 2); # print 4300
6558 print scalar $x->copy()->bdiv($y)->bround(2); # print 4300
6659 =item bdiv()
6661 $q = $x->bdiv($y);
6662 ($q, $r) = $x->bdiv($y);
6810 $y = $x->copy()->bdiv(3); # gives 0.66667
6811 $y = $x->copy()->bdiv(3,6); # gives 0.666667
6812 $y = $x->copy()->bdiv(3,6,undef,'odd'); # gives 0.666667
6814 $y = $x->copy()->bdiv(3,6); # will also give 0.666667
6819 means that in the examples above, the C<3> as argument to C<bdiv()> will also
6828 $y = $x->copy()->bdiv(3);
6835 $y = $x->copy()->bdiv(3,5); # gives 0.66667
7061 print $z = $x->copy()->bdiv($y),"\n"; # 41170
7072 print $z = $x->copy()->bdiv($y,4),"\n"; # 41150