Pharo on an iPad

Recently, I downloaded Pharo for an iPad from this link. The source is listed on GitHub. This was used to solve a math problem - finding the radius:

Blue circle, green line from center, red tangent
Using the Pythagorean theorem:

(A-D)2 + (B-C)2 - (A-C)2 = 0

So with values:

7.932 + r2 - (3.08 + r)2 = 0

Starting with two guesses for the radius of 4 and 9 provided results on either side of zero, so we can guess numbers in-between until the result was very small:

#(4 8 8.5 8.6 8.65 8.66 8.665 8.6685 8.66858 8.669 8.67 8.7 8.75 9)
  do: [  :r  | Transcript show: r; tab; show:  ( r squared + (7.93 squared)) - ((r + 3.08) squared); cr ].

Which gives the output:

4	28.758499999999984
8	4.118499999999983
8.5	1.038499999999999
8.6	0.42250000000001364
8.65	0.1144999999999925
8.66	0.05289999999996553
8.665	0.02209999999999468
8.6685	0.0005400000000008731
8.669	-0.002540000000010423
8.67	-0.008700000000004593
8.7	-0.19350000000000023
8.75	-0.5015000000000214
9	-2.0415000000000134

I have not had success with loading code from GitHub or starting a zipped file, but having Smalltalk on a portable device is useful.

Screenshot - Notice the buttons on the far-right of the screen are the main controls:

Pharo desktop on an iPad

Posted by John Borden at 9 April 2026, 4:50 pm link

Leave your comment