napia

Section: ユーザーコマンド (1)
Updated: 2021年7月
Index Return to Main Contents
 

名前

napia - ネイピア数の計算  

書式

napia  

説明

ネイピア数を計算する。精度は小数点以下50桁で、500回計算後e(1)を表示する。 ネイピア数:
        n := 1..500,  (1+1/n)^n
 

実行例

$ time napia.bc |tail
2.71552448385993202396866477228210443207353912205811
2.71553006647249000673990447342543042894728923976757
2.71553562652523007517616639789107179829725055671547
2.71554116415462574734959462660664261642845036743302
2.71554667949605197794060424094074365193640958858273
2.71555217268379618984614164525068605053910259085175
2.71555764385106917312107033748358860531081558184742
2.71556309313001585311033006730409833068730341127451
----
2.71828182845904523536028747135266249775724709369995

real    0m14.386s
user    0m14.304s
sys     0m0.051s

 

作者

mailto: akihito.yakoshi@gmail.com  

著作権

Copyright © 2021 ycos Systems


 

Index

名前
書式
説明
実行例
作者
著作権

This document was created by man2html, using the manual pages.
Time: 06:36:26 GMT, July 21, 2021