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:

    “Because relationships are a primary source of self-esteem for girls and women, daughters need to know they will not lose our love if they speak up for what they want to tell us how they feel about things. . . . Teaching girls to make specific requests, rather than being indirect and agreeable, will help them avoid the pitfalls of having to be manipulative and calculating to get what they want.”
    —Jeanne Elium (20th century)

    “‘Whence thou return’st, and whither wentst, I know;
    For God is also in sleep; and dreams advise,
    Which he hath sent propitious, some great good
    Presaging, since, with sorrow and heart’s distress,
    Wearied I fell asleep: but now lead on;
    In me is no delay; without thee here to stay,
    Is to go hence unwilling; thou to me
    Art all things under Heaven, all places thou,”
    —John Milton (1608–1674)