Documente Academic
Documente Profesional
Documente Cultură
Solución:
Codificación:
Prueba:
FUNCION
y = seno(x)
s=x
error = 1
ant = x
i=2
WHILE error > 0.001
term = ((-1) ^ (i+1)) * (x^(2*i-1) / factorial (2 * (i-1))
s = s + term
error = abs (abs (term) - abs(ant))
ant = term
i= i + 1
ENDWHILE
y=s
ENDFUNCION