Find the sum of the first n terms of the harmonic series where n is an integer variable greater than one
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:30.2
All Answers
total answers (1)
>> n = 4;
>> sum(1./(1:n))
ans =
2.0833
need an explanation for this answer? contact us directly to get an explanation for this answer