jadaayu
Newbie level 2
Write MATLAB function K = compK(k2) which implements this algorithm. The input
parameter k2 stands for k2. Use the loop while to generate consecutive members of both
sequences, but do not save all numbers generated in the course of computations. Continue
execution of the while loop as long as an – bn eps, where eps is the machine epsilon
parameter k2 stands for k2. Use the loop while to generate consecutive members of both
sequences, but do not save all numbers generated in the course of computations. Continue
execution of the while loop as long as an – bn eps, where eps is the machine epsilon