|
ProgIng - Programación en Ingeniería
|
Aproximación de sen(x) con Taylor usando recurrencia entre términos (O(n)). More...
#include <stdio.h>
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
Aproximación de sen(x) con Taylor usando recurrencia entre términos (O(n)).
Serie: sen(x) = sum_{i=0}^{∞} (-1)^i * x^{2i+1} / (2i+1)!
Definimos el término positivo: t_i = x^{2i+1} / (2i+1)! con recurrencia: t_0 = x t_{i+1} = t_i * (x^2) / [(2i+2)(2i+3)]
Luego: sen(x) ≈ sum_{i=0}^{n-1} (-1)^i * t_i
Definition in file Ejemplo016.c.
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 38 of file Ejemplo016.c.
