How to make my algorithm work for case:

Achatesopo8

Achatesopo8

Answered question

2022-04-07

How to make my algorithm work for case: irrational number 2 so that
pq-2<0.001

Answer & Explanation

davelucasnp0j

davelucasnp0j

Beginner2022-04-08Added 16 answers

Step 1
Your algorithm is applicable to approximate rationals by rationals, but it doesn’t applicable directly to approximate reals by rationals. On the other hand, best rational approximations of a given a real number are provided by its simple continued fraction. Moreover, for rational approximants, listed here, we see that
4129-2<4.21·10-4

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?