BC Programming Language - Calculating Pi To 10000 Places

Calculating Pi To 10000 Places

Calculate Pi using the builtin arctangent function, a.

# The atan of 1 is 45 degrees, which is pi/4 in radians. $ bc -l scale=10000 4*a(1) # This may take several minutes to calculate.

Read more about this topic:  Bc Programming Language

Famous quotes containing the words calculating and/or places:

    I know that the right kind of leader for the Labour Party is a kind of desiccated calculating machine.
    Aneurin Bevan (1897–1960)

    Whoever places his trust into a system will soon be without a home. While you are building your third story, the two lower ones have already been dismantled.
    Franz Grillparzer (1791–1872)