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)

    The mother whose self-image is dependent on her children places on those children the responsibility for her own identity, and her involvement in the details of their lives can put great pressure on the children. A child suffers when everything he or she does is extremely important to a parent; this kind of over-involvement can turn even a small problem into a crisis.
    Grace Baruch (20th century)