Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Happy Pi Day, 2018

    Code:
    * Happy Pi Day, 2018.
    clear *
    import delimited ///
    "http://ia800206.us.archive.org/18/items/AsciiPi/ascii_pi.txt", delimit(comma)
    drop if ltrim(v1)=="" // delete blank rows
    list, clean noobs
    display  _newline(1) "The constant pi = " c(pi)
    --
    Bruce Weaver
    Email: bweaver@lakeheadu.ca
    Web: http://sites.google.com/a/lakeheadu.ca/bweaver/
    Stata version: 16.0 IC (Windows)

  • #2
    https://blog.stata.com/tag/tau/ links to and contains advocacy for tau.

    Tau Day (tau is 2 pi) is June 28 (6/28). That's easier to see if you write dates US style, as I just did. In at least one country, mine, the form 28/6 is more common.

    Comment


    • #3
      Bruce, very nice! Thanks.

      By the way, it is with joy and sorrow, respectively, that I note that pi day is also the birthday of Albert Einstein and the day that Stephen Hawking died.

      Happy Pi Day to all.

      Comment


      • #4
        Code:
        . * Another way to get pi:  pi = 4*atan(1).
        . * Source:  http://www-01.ibm.com/support/docview.wss?uid=swg21476209.
        .
        . display  _newline(1) c(pi) _newline(1) 4*atan(1)
        
        3.1415927
        3.1415927
        --
        Bruce Weaver
        Email: bweaver@lakeheadu.ca
        Web: http://sites.google.com/a/lakeheadu.ca/bweaver/
        Stata version: 16.0 IC (Windows)

        Comment

        Working...
        X