Код: Выделить всё
e^x = 1 + (x^1/1!) + (x^2/2!) + (x^3/3!) ...
Код: Выделить всё
double etopowerx = 1;
long number = 1;
long numberFactorial = number;
numberFactorial *= number;
etopowerx += 1.0 / numberFactorial;
Console.WriteLine($"e^x = {etopowerx}");
Ссылка: (Константа E) (Факториал n!)
Математическая константа E
Подробнее здесь: https://stackoverflow.com/questions/790 ... -series-ex