Friday, 24 June 2022

Solving an equation by Iteration

Solving an equation by Iteration
I am solving an equation by iteration. In this case, I am going to solve x 2  - x - 5 = 0 by iteration.  First of all, I am rearranging it in the iterative form: Suppose you have to solve x 2  - x - 5 = 0 by iteration. Let's rearrange it in iterative form first. x = √(x + 5) x n+1  = √(x n  + 5) Let's ta…

Tuesday, 21 June 2022

Polygon Maker

Polygon Maker
The following applet, written in Python, can simulate the formation of polygons.  It simply use the fact the external angle of a regular polygon is 360/n, where n is the number of sides.

Gradient of a curve by differentiation

Gradient of a curve by differentiation
I am finding the gradient of a curve by differentiation with the following Geogebra applet. The equation of the curve is y = x 2 /4. Gradient = dy/dx = x/2 If you move the point along the curve, you can find the gradient of the curve at any point. For example, at x = 2, dy/dx = 1