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
is_there_segfault
22nd HW Switchv0.1
variable number of arguments 3
Is const really const? Yes
18BCE2182 LAB FAT-2-A-i
ayudantia ejercicio 2 numero nashee
C programming example implementing a function to set a specified bit in an int (from ECE 2534)
lab5
14th Feb Programming Project v.01
lol