dglez/e-pi
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
ReadMe Programmer: Daniel Gonzalez Date: 09/20/2016 To compile and execute Constant program, follow the steps below. 1. Copy Constant.c file to any directory 2. In terminal change directory (cd) to the directory where Constant.c file was copied. 3. compile program with: gcc Constant.c -lm -o myprogram.out 4. execute program : ./myprogram.out Sample Output: +----------------------------------------------------------------------+ | | | Calculated e: 2.7182818284467593628050963 | | Library constant: 2.7182818284590450907955983 | | ↑| | +----------------------------------------------------------------------+ Terms to calculate with a digit accuracy of 10 is 14 Execution time: 0.002000000000000ms +----------------------------------------------------------------------+ | | | Calculated Pi: 3.1415921535897242122814532 | | Library constant: 3.1415926535897931159979635 | | ↑| | +----------------------------------------------------------------------+ Terms to calculate with a digit accuracy of 6 is 2000000 Execution time: 42.210000000000001ms