0% found this document useful (0 votes)
16 views1 page

SQRT Table

The document compares the results of calculating the square root of numbers from 1 to 25 using a custom my_sqrt function versus the built-in math.sqrt function in Python, recording any differences between the results.

Uploaded by

asdsafsvvsg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

SQRT Table

The document compares the results of calculating the square root of numbers from 1 to 25 using a custom my_sqrt function versus the built-in math.sqrt function in Python, recording any differences between the results.

Uploaded by

asdsafsvvsg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

a= | my_sqrt(a) | math.

sqrt(a) | diff

- | --------- | ---------- | ----

a = 1.0 1.000000 1.000000 0.0

a = 2.0 1.414214 1.414214 2.220446049250313e-16

a = 3.0 1.732051 1.732051 0.0

a = 4.0 2.000000 2.000000 0.0

a = 5.0 2.236068 2.236068 0.0

a = 6.0 2.449490 2.449490 0.0

a = 7.0 2.645751 2.645751 0.0

a = 8.0 2.828427 2.828427 4.440892098500626e-16

a = 9.0 3.000000 3.000000 0.0

a = 10.0 3.162278 3.162278 4.440892098500626e-16

a = 11.0 3.316625 3.316625 0.0

a = 12.0 3.464102 3.464102 0.0

a = 13.0 3.605551 3.605551 4.440892098500626e-16

a = 14.0 3.741657 3.741657 0.0

a = 15.0 3.872983 3.872983 0.0

a = 16.0 4.000000 4.000000 0.0

a = 17.0 4.123106 4.123106 0.0

a = 18.0 4.242641 4.242641 8.881784197001252e-16

a = 19.0 4.358899 4.358899 8.881784197001252e-16

a = 20.0 4.472136 4.472136 0.0

a = 21.0 4.582576 4.582576 0.0

a = 22.0 4.690416 4.690416 0.0

a = 23.0 4.795832 4.795832 0.0

a = 24.0 4.898979 4.898979 0.0

a = 25.0 5.000000 5.000000 0.0

You might also like