in reply to Evolving formulae

A sample run of 500 generations yielded the following best approximation: 3 + 1 / 10^(1426/1726) which beats the commonly memorized idiom of 22/7 in accuracy by about an order of magnitude. (22/7 approximates pi correctly to the third decimal.)

pi = 3.14159265...
22/7 = 3.14285714...
3 + 1 / 10^(1426/1726) = 3.14921493....

In what way is that more accurate?

Replies are listed 'Best First'.
Re: Re: Evolving formulae
by tsee (Curate) on Feb 27, 2004 at 09:19 UTC

    I'm sorry, you're right. I botched up simplifying the expression. (There were lots of redundant zeros in it.) Here:s the original:

    1: [0,10] (10 ^ ((11 * 1) / ((((3 - 0) - (0 ^ 1)) / ((128 - ((0 - 2) + (5 * 0))) + 3)) - (0 + 13)))) + 3 = 3.14202847846689 (Fitness: 2294.49958586465)

    That's closer to pi than 22/7.