Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Elias Schwerdtfeger (goebelmasse@quitter.se)'s status on Tuesday, 14-Mar-2017 13:12:27 UTC Elias Schwerdtfeger Elias Schwerdtfeger
    echo 'scale=100; print a(1)*4;' | bc -l

    #PIday (Und nein, das ist nicht die schnellste Methode, hundert Stellen zu berechnen…)
    In conversation Tuesday, 14-Mar-2017 13:12:27 UTC from quitter.se permalink
    • Benedikt Geißler 🐃 repeated this.
    • Benedikt Geißler 🐃 (benediktg@gnusocial.de)'s status on Tuesday, 14-Mar-2017 15:30:24 UTC Benedikt Geißler 🐃 Benedikt Geißler 🐃
      @goebelmasse
      Haskell:

      calcPi :: Float
      calcPi = 4 * calcPi2 10000
          where calcPi2 0 = 1
                   calcPi2 n = (-1)^n / fromIntegral (2*n + 1) + calcPi2 (n-1)

      ;)
      In conversation Tuesday, 14-Mar-2017 15:30:24 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.