You are on page 1of 1

Ap2.

Create a new class: Lab_06_2_surname_name

Calculate Markov series

1 a 
xn   xn 1   a n
2 xn 1 

for a given number n calculate the n term of the series and compute the relative error

xn  a
err 
a

The number a and the first term of the series x1 are also given.

At the end of the program the user will be asked if he wants to run the program again by
typing with y for yes and n for no

You might also like