The interactive examples in this post require installing Wolfram CDF player, which is free and works on most desktop computers using Firefox, Safari and Internet Explorer, but not Chrome. The source code is the Mathematica Notebook algebra1.nb, which is available for free use under a Creative Commons Attribution-ShareAlike 2.5 License. The notebook can be read by CDF Player if you cannot make the embedded versions in this post work.
Active calculation of area
In my previous post Visible algebra I constructed a computation tree for calculating the area of a window consisting of a rectangle surmounted by a semicircle. The visual algebra system described there constructs a computation by selecting operations and attaching them to a tree, which can then be used to calculate the area of the window.
I promised to produce a live computation tree later; it is below.
Press the buttons from left to right to simulate the computation that would take place in a genuine algebra system. Note that if you skip button 2 you get the effect of parallel computation (the only place in the calculation that can be parallelized).
In Visual Algebra I the tree was put together step by step by reasoning out how you would calculate the area of the window: (1) the area is the sum of the areas of the semidisk and the rectangle, (2) the rectangle is width times height, (3) the semidisk has half the area of a disk of radius half the width of the rectangle, and so on. So the resulting tree is a transparent construction that lets you see the reasoning that created it.
The resulting tree could obviously be simplified. But if you were designing a few such windows, why should you simplify it? You certainly don't need to simplify it to speed up the computation. On the other hand, if you are going on to solve the problem of finding the maximum area you can get if the perimeter is fixed, you will have to do some algebraic manipulation and so you do want a simplified expression.
Later, I will write more about simplifying trees, solving the max area problem, and other things concerning this system of doing algebra.
Remark
What I am showing in these posts is a simulation of a possible visible algebra system. I have not constructed any part of the system; these posts only show something about what the interface will look like. My practice in the last few years is to throw out ideas, not construct completed documents or programs. (I am not saying how long I will continue to do this.) All these posts, Mathematica programs and abstractmath.org are available to reuse under a Creative Commons license.
Send to Kindle
One thought on “Visible algebra I supplement”