NAME

Math::Big - routines (cos,sin,primes,hailstone,euler,fibbonaci etc) with big numbers

SYNOPSIS

use Math::Big qw/primes fibonacci hailstone factors wheel
  cos sin tan euler bernoulli arctan arcsin pi/;

@primes     = primes(100);          # first 100 primes
$count      = primes(100);          # number of primes <= 100
@fib        = fibonacci (100);      # first 100 fibonacci numbers
$fib_1000   = fibonacci (1000);     # 1000th fibonacci number
$hailstone  = hailstone (1000);     # length of sequence
@hailstone  = hailstone (127);      # the entire sequence

$factorial  = factorial(1000);      # factorial 1000!

$e = euler(1,64);                   # e to 64 digits

$b3 = bernoulli(3);

$cos        = cos(0.5,128);         # cosinus to 128 digits
$sin        = sin(0.5,128);         # sinus to 128 digits
$cosh       = cosh(0.5,128);        # cosinus hyperbolicus to 128 digits
$sinh       = sinh(0.5,128);        # sinus hyperbolicus to 128 digits
$tan        = tan(0.5,128);         # tangens to 128 digits
$arctan     = arctan(0.5,64);       # arcus tangens to 64 digits
$arcsin     = arcsin(0.5,32);       # arcus sinus to 32 digits
$arcsinh    = arcsin(0.5,18);       # arcus sinus hyperbolicus to 18 digits

$pi         = pi(1024);             # first 1024 digits
$log        = log(64,2);            # $log==6, because 2**6==64
$log        = log(100,10);          # $log==2, because 10**2==100
$log        = log(100);             # base defaults to 10: $log==2

REQUIRES

perl5.006002, Exporter, Math::BigInt, Math::BigFloat

EXPORTS

Exports nothing on default, but can export primes(), fibonacci(), hailstone(), bernoulli, euler, sin, cos, tan, cosh, sinh, arctan, arcsin, arcsinh, pi, log and factorial.

DESCRIPTION

This module contains some routines that may come in handy when you want to do some math with really, really big (or small) numbers. These are primarily examples.

FUNCTIONS

CAVEATS

BUGS

Please report any bugs or feature requests to bug-math-big at rt.cpan.org, or through the web interface at https://rt.cpan.org/Ticket/Create.html?Queue=Math-Big (requires login). We will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Math::Big

You can also look for information at:

LICENSE

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR