Question: Write a real Fortran function Series(x) which returns an approximate sum of the sequence I 1! - 23 + - 2! 3! 4! +

Write a real Fortran function Series(x) which returns an approximate sum of the sequence I 1! - 23 + - 2! 3! 4! + i.e., which adds consecutive elements of this sequence until the addition of another term does not change the value of the sum. Write also a Fortran program which reads consecutive values and uses the function Series to find the approximate sum for each of these values. Assume that the value 0 indicates the end of data.
Step by Step Solution
There are 3 Steps involved in it
Here is an example of a Fortran program that includes a function Series to calcul... View full answer
Get step-by-step solutions from verified subject matter experts
