senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Keᷟiͣzᷤoͭuͦ@6ͩ4ͦ0ᷠ0 (keizou@mstdn.guru)'s status on Tuesday, 04-Dec-2018 01:17:37 JST Keᷟiͣzᷤoͭuͦ@6ͩ4ͦ0ᷠ0 Keᷟiͣzᷤoͭuͦ@6ͩ4ͦ0ᷠ0

    簡易円周率ベンチマークワンライナーをアップデート

    4*a(1)は簡易としてはユーザビリティが高いけれど、円周率演算としてのエレガントさに欠けているので高野喜久雄先生の公式に置き換えた

    time echo "scale = NUMBER; (12*a(1/49)+32*a(1/57)-5*a(1/239)+12*a(1/110443))*4" | bc -qls

    ちなみに4*a(1)を使った円周率演算よりも10〜20%(CPUによる)くらい演算速度が落ちる

    In conversation Tuesday, 04-Dec-2018 01:17:37 JST from mstdn.guru permalink

    Feeds

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

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.