Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
funciones serie de taylor
double exponencial(double x){ double suma=1; double termino=1; double max=pow(10,-5); if(x>0){ for (int i=1;termino>max;i++){ termino=pow(x,i)/(factorial(i)); if (termino<=max){break;} suma=suma+termino; } } else{ x=x*-1; for (int i=1;termino>max;i++){ termino=pow(x,i)/(factorial(i)); if (termino<=max){break;} suma=suma+termino; } suma=1/suma; } return suma; } double factorial(int n){ double fact=n; for(int i=1;i<n;i++){ fact=fact*i; } return fact; }
run
|
edit
|
history
|
help
0
Majeur ou mineur
b=1,c=1
Rationale Zahlen
Project v0.12
avance 2 guía 4
Day 2 String Manipulation
Stub Program for Problem 3 HW 2
Programação em C, testes
Operation of two numbers
Project 5 v.06