This page lays out the mathematics used to develop the Crochet Sphere Calculator. Click here to use the calculator. (If you don't see anything below, please be patient; the pretty math view of this page may take a minute to load!)


Inputs

The user's inputs produce the following values:

Stitch Counts

The total number of rows needed, \(n = \frac{\pi d}{2} \cdot g_r\), rounded to the nearest whole number. We can then calculate the adjusted diameter due to rounding, \(d' = n \cdot \frac{2}{\pi g_r}\).

We can now calculate a set of indexed variables for each row: Or, mashing it all up to give \(s_i\) in terms of the original variables, $$s_i = \sin(\frac{2i-1}{dg_r}) \cdot \pi d \cdot g_s.$$ Because this produces a decimal value, \(s_i\) is rounded to the nearest whole number to get \(\hat s_i\), the functional number of stitches for row \(i\).

Error Calculation

Now, let's calculate the accumulated error (relative to \(d'\), not \(d\)). I chose to use \(r^2\), as many people are familiar with this metric. Let's start by laying out the variables that will be used for these calculations: The formula for \(r^2\) is $$r^2 = \frac{ESS}{TSS}.$$ where ESS is the explained sum of squares and TSS is the total sum of squares (see the Wiki article on ESS for more info). $$r^2 = \frac{ESS}{TSS} = \frac{\sum_{i=1}^n (\hat c_i\ - \bar c)^2}{\sum_{i=1}^n (c_i\ - \bar c)^2}.$$ This \(r^2\) is given as a decimal value between 0 and 1; the value is converted to a percentage before being displayed.

Now that you know how the calculator works, go give it a try! The applet was formulated by Emmett Wald. This page was last updated . For questions or corrections, contact emmettmwald@gmail.com.