``When you can measure what you are speaking about and express it in numbers you know something about it, but when you cannot measure it, when you cannot express it in numbers, your knowledge is of a meagre and unsatisfactory kind.'' Lord Kelvin, 1883.In this vein, we have attempted to measure the behaviour of the iterators by simulation. We randomly generate equations to be solved. This is done top down, generating for each node of the expression tree a random operator. The number of occurrences of x is kept between 2 and 10, various functions are given different probabilities, the equation is forced to be a sum of various terms at the top level and polynomials are discarded. The following are 3 examples of such equations
|