Top
Back: number_e
Forward: primes
FastBack: compregb_lib
FastForward: grobcov_lib
Up: general_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.3.11 number_pi

Procedure from library general.lib (see general_lib).

Usage:
number_pi(n); n positive integer

Return:
pi (area of unit circle) up to n decimal digits (no rounding)
- of type string if no basering of char 0 is defined,
- of type number, if a basering of char 0 is defined

Display:
decimal format of pi if printlevel > 0 (default:printlevel=0 )

Note:
procedure uses algorithm of S. Rabinowitz

Example:
 


Top Back: number_e Forward: primes FastBack: compregb_lib FastForward: grobcov_lib Up: general_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.