Square Roots in Python part 2: Calculations

In the first part of this article I wrote code to calculate rough estimates of square roots which enable formulas which converge on accurate square root values to do so with fewer iterations. Part 1 also included code to graph estimates to compare them to accurate values.

In this second part I'll implement some of those formulas, again graphing the results alongside definitive values.

Continue reading

Exploring SI Units in Python Part 1: Base Units

The International System of Units, commonly known as the SI System, consists of seven base units for measuring quantities such as mass, time and electric current. These base units can be combined into derived units to measure a wide range of other quantities.

In this article I will develop a Python class to represent base unit values and associated methods. In a future article I will extend the project to handle derived units.

Continue reading