Question: MATLAB Use a for loop to calculate the terms in the mathematical sequence and its corresponding harmonic series, 1/1 -1/2 1/3 -1/4 1/5 ... -1/50
MATLAB
Use a for loop to calculate the terms in the mathematical sequence and its corresponding harmonic series,
1/1 -1/2 1/3 -1/4 1/5 ... -1/50
Your answer should be a table with the first column being n, the second column is a_n and the third column is S_n with 6 decimal places shown.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
