|
Exponent of mathematical constant e
|
|
12-04-2009, 04:07 AM
(This post was last modified: 12-04-2009 04:32 AM by drdebcol.)
Post: #1
|
|||
|
|||
|
Exponent of mathematical constant e
Base of natural algorithm "e" is a number that you can not write in p/q way so it is irrational. You need to make like an array of numbers with certain rule so you can get it with accuracy. "e" is around :
Code: 2.71828 18284 59045 23536 . . .http://en.wikipedia.org/wiki/Natural_logarithm And about "e" you have here : http://en.wikipedia.org/wiki/E_%28mathem...onstant%29 Now you can calculate exponent of "e" with this formula : ![]() And i made program for calculating this in Pascal. Input data are "n" and "x". "n" is number of loop circulations and "x" is exponent. If you enter : n=20 x=1 you should get around : 2.7182818 So here is the code in TPW for this : Code: program natural_logarithm_exponent;more simple and evidently faster : Code: # include <iostream>There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
« Next Oldest | Next Newest »
|



![[Image: 22783_exponente.jpg]](http://myph.us/pics/22783_exponente.jpg)


