+ 1

hey i was thinking how computer system doesnt crash when we write code involving infinite series?how do it evaluate?

like we write c code for solving infinite series math problem. plz explain in detail ?thanks in advance.

17th Jan 2022, 9:15 AM
gaurav kumar
gaurav kumar - avatar
1 Resposta
+ 2
When computing an infinite series we never really let it run infinitely. Usually we let it run for a limited number of terms, or until a minimum precision is reached, or the result is within error boundaries. At the extreme there is a limit to the precision that floating point data types can effectively compute, known as epsilon. Attempts to compute values smaller than epsilon only contribute frothy noise to the answer, so that is where series computation must ultimately end. In C, you can find the limits in #include <limits.h>. This might interest you. Here is a program that determines epsilon values in C. https://code.sololearn.com/cKLSj5no6uph/?ref=app
17th Jan 2022, 6:25 PM
Brian
Brian - avatar