Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README
e-algo.txt
e-estim.py
e.c

README

e constant calculator

(C) 2012 by blockeduser

it uses maclaurin series and lagrange remainder term

the python version explains the details

Presumed to be quite inefficient. But it works!!!

There are more efficient softwares in existence.

Example
----------------------------------------------------------------------------

$ wcc -Dunsigned= -w e.c -o e.elf
$ ./e.elf -d 1000|fold -60
1000 decimal places
e = 2.718281828459045235360287471352662497757247093699959574
966967627724076630353547594571382178525166427427466391932003
059921817413596629043572900334295260595630738132328627943490
763233829880753195251019011573834187930702154089149934884167
509244761460668082264800168477411853742345442437107539077744
992069551702761838606261331384583000752044933826560297606737
113200709328709127443747047230696977209310141692836819025515
108657463772111252389784425056953696770785449969967946864454
905987931636889230098793127736178215424999229576351482208269
895193668033182528869398496465105820939239829488793320362509
443117301238197068416140397019837679320683282376464804295311
802328782509819455815301756717361332069811250996181881593041
690351598888519345807273866738589422879228499892086805825749
279610484198444363463244968487560233624827041978623209002160
990235304369941849146314093431738143640546253152096183690888
707016768396424378140592714563549061303107208510383750510115
7477041718986106873969655212671546889570350354...

You can’t perform that action at this time.