1.365 * [progress]: [Phase 1 of 3] Setting up. 0.001 * * * [progress]: [1/2] Preparing points 0.016 * * * [progress]: [2/2] Setting up program. 0.017 * [progress]: [Phase 2 of 3] Improving. 0.017 * [simplify]: Simplifying: (sqrt (- 1.0 (* x x))) 0.017 * [simplify]: Sending expressions to egg_math: (sqrt (- h1 (* h0 h0))) 0.019 * * [simplify]: iteration 0 : 7 enodes (cost 3 ) 0.020 * * [simplify]: iteration 1 : 11 enodes (cost 3 ) 0.022 * * [simplify]: iteration 2 : 13 enodes (cost 3 ) 0.023 * * [simplify]: iteration 3 : 13 enodes (cost 3 ) 0.023 * * [progress]: iteration 1 / 4 0.023 * * * [progress]: picking best candidate 0.024 * * * * [pick]: Picked # 0.024 * * * [progress]: localizing error 0.028 * * * [progress]: generating rewritten candidates 0.028 * * * * [progress]: [ 1 / 1 ] rewriting at (2) 0.036 * * * [progress]: generating series expansions 0.036 * * * * [progress]: [ 1 / 1 ] generating series at (2) 0.036 * [backup-simplify]: Simplify (sqrt (- 1.0 (* x x))) into (sqrt (- 1.0 (pow x 2))) 0.036 * [approximate]: Taking taylor expansion of (sqrt (- 1.0 (pow x 2))) in (x) around 0 0.036 * [taylor]: Taking taylor expansion of (sqrt (- 1.0 (pow x 2))) in x 0.036 * [taylor]: Taking taylor expansion of (- 1.0 (pow x 2)) in x 0.036 * [taylor]: Taking taylor expansion of 1.0 in x 0.036 * [backup-simplify]: Simplify 1.0 into 1.0 0.036 * [taylor]: Taking taylor expansion of (pow x 2) in x 0.036 * [taylor]: Taking taylor expansion of x in x 0.036 * [backup-simplify]: Simplify 0 into 0 0.036 * [backup-simplify]: Simplify 1 into 1 0.037 * [backup-simplify]: Simplify (+ 1.0 0) into 1.0 0.037 * [backup-simplify]: Simplify (sqrt 1.0) into (sqrt 1.0) 0.037 * [backup-simplify]: Simplify (+ 0 0) into 0 0.037 * [backup-simplify]: Simplify (/ 0 (* 2 (sqrt 1.0))) into 0 0.037 * [taylor]: Taking taylor expansion of (sqrt (- 1.0 (pow x 2))) in x 0.038 * [taylor]: Taking taylor expansion of (- 1.0 (pow x 2)) in x 0.038 * [taylor]: Taking taylor expansion of 1.0 in x 0.038 * [backup-simplify]: Simplify 1.0 into 1.0 0.038 * [taylor]: Taking taylor expansion of (pow x 2) in x 0.038 * [taylor]: Taking taylor expansion of x in x 0.038 * [backup-simplify]: Simplify 0 into 0 0.038 * [backup-simplify]: Simplify 1 into 1 0.038 * [backup-simplify]: Simplify (+ 1.0 0) into 1.0 0.038 * [backup-simplify]: Simplify (sqrt 1.0) into (sqrt 1.0) 0.038 * [backup-simplify]: Simplify (+ 0 0) into 0 0.039 * [backup-simplify]: Simplify (/ 0 (* 2 (sqrt 1.0))) into 0 0.039 * [backup-simplify]: Simplify (sqrt 1.0) into (sqrt 1.0) 0.039 * [backup-simplify]: Simplify 0 into 0 0.039 * [backup-simplify]: Simplify (* 1 1) into 1 0.039 * [backup-simplify]: Simplify (- 1) into -1 0.040 * [backup-simplify]: Simplify (+ 0 -1) into -1 0.042 * [backup-simplify]: Simplify (/ (- -1 (pow 0 2) (+)) (* 2 (sqrt 1.0))) into (/ -1/2 (sqrt 1.0)) 0.042 * [backup-simplify]: Simplify (/ -1/2 (sqrt 1.0)) into (/ -1/2 (sqrt 1.0)) 0.043 * [backup-simplify]: Simplify (+ (* 1 0) (* 0 1)) into 0 0.043 * [backup-simplify]: Simplify (- 0) into 0 0.043 * [backup-simplify]: Simplify (+ 0 0) into 0 0.044 * [backup-simplify]: Simplify (/ (- 0 (+ (* 2 (* 0 (/ -1/2 (sqrt 1.0)))))) (* 2 (sqrt 1.0))) into 0 0.044 * [backup-simplify]: Simplify 0 into 0 0.044 * [backup-simplify]: Simplify (+ (* 1 0) (+ (* 0 0) (* 0 1))) into 0 0.045 * [backup-simplify]: Simplify (- 0) into 0 0.045 * [backup-simplify]: Simplify (+ 0 0) into 0 0.048 * [backup-simplify]: Simplify (/ (- 0 (pow (/ -1/2 (sqrt 1.0)) 2) (+ (* 2 (* 0 0)))) (* 2 (sqrt 1.0))) into (/ -1/8 (pow (sqrt 1.0) 3)) 0.049 * [backup-simplify]: Simplify (/ -1/8 (pow (sqrt 1.0) 3)) into (/ -1/8 (pow (sqrt 1.0) 3)) 0.051 * [backup-simplify]: Simplify (+ (* (/ -1/8 (pow (sqrt 1.0) 3)) (pow x 4)) (+ (* (/ -1/2 (sqrt 1.0)) (pow x 2)) (sqrt 1.0))) into (- (sqrt 1.0) (+ (* 1/8 (/ (pow x 4) (pow (sqrt 1.0) 3))) (* 1/2 (/ (pow x 2) (sqrt 1.0))))) 0.051 * [backup-simplify]: Simplify (sqrt (- 1.0 (* (/ 1 x) (/ 1 x)))) into (sqrt (- 1.0 (/ 1 (pow x 2)))) 0.051 * [approximate]: Taking taylor expansion of (sqrt (- 1.0 (/ 1 (pow x 2)))) in (x) around 0 0.051 * [taylor]: Taking taylor expansion of (sqrt (- 1.0 (/ 1 (pow x 2)))) in x 0.051 * [taylor]: Taking taylor expansion of (- 1.0 (/ 1 (pow x 2))) in x 0.051 * [taylor]: Taking taylor expansion of 1.0 in x 0.051 * [backup-simplify]: Simplify 1.0 into 1.0 0.051 * [taylor]: Taking taylor expansion of (/ 1 (pow x 2)) in x 0.051 * [taylor]: Taking taylor expansion of (pow x 2) in x 0.051 * [taylor]: Taking taylor expansion of x in x 0.051 * [backup-simplify]: Simplify 0 into 0 0.051 * [backup-simplify]: Simplify 1 into 1 0.051 * [backup-simplify]: Simplify (* 1 1) into 1 0.052 * [backup-simplify]: Simplify (/ 1 1) into 1 0.052 * [backup-simplify]: Simplify (- 1) into -1 0.052 * [backup-simplify]: Simplify (+ 0 -1) into -1 0.052 * [backup-simplify]: Simplify (sqrt -1) into (sqrt -1) 0.053 * [backup-simplify]: Simplify (+ (* 1 0) (* 0 1)) into 0 0.053 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)))) into 0 0.053 * [backup-simplify]: Simplify (- 0) into 0 0.057 * [backup-simplify]: Simplify (+ 0 0) into 0 0.058 * [backup-simplify]: Simplify (/ 0 (* 2 (sqrt -1))) into 0 0.058 * [taylor]: Taking taylor expansion of (sqrt (- 1.0 (/ 1 (pow x 2)))) in x 0.058 * [taylor]: Taking taylor expansion of (- 1.0 (/ 1 (pow x 2))) in x 0.058 * [taylor]: Taking taylor expansion of 1.0 in x 0.058 * [backup-simplify]: Simplify 1.0 into 1.0 0.058 * [taylor]: Taking taylor expansion of (/ 1 (pow x 2)) in x 0.058 * [taylor]: Taking taylor expansion of (pow x 2) in x 0.058 * [taylor]: Taking taylor expansion of x in x 0.058 * [backup-simplify]: Simplify 0 into 0 0.058 * [backup-simplify]: Simplify 1 into 1 0.058 * [backup-simplify]: Simplify (* 1 1) into 1 0.059 * [backup-simplify]: Simplify (/ 1 1) into 1 0.059 * [backup-simplify]: Simplify (- 1) into -1 0.059 * [backup-simplify]: Simplify (+ 0 -1) into -1 0.059 * [backup-simplify]: Simplify (sqrt -1) into (sqrt -1) 0.060 * [backup-simplify]: Simplify (+ (* 1 0) (* 0 1)) into 0 0.060 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)))) into 0 0.060 * [backup-simplify]: Simplify (- 0) into 0 0.060 * [backup-simplify]: Simplify (+ 0 0) into 0 0.061 * [backup-simplify]: Simplify (/ 0 (* 2 (sqrt -1))) into 0 0.061 * [backup-simplify]: Simplify (sqrt -1) into (sqrt -1) 0.061 * [backup-simplify]: Simplify 0 into 0 0.062 * [backup-simplify]: Simplify (+ (* 1 0) (+ (* 0 0) (* 0 1))) into 0 0.062 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)) (* 0 (/ 0 1)))) into 0 0.062 * [backup-simplify]: Simplify (- 0) into 0 0.063 * [backup-simplify]: Simplify (+ 1.0 0) into 1.0 0.064 * [backup-simplify]: Simplify (/ (- 1.0 (pow 0 2) (+)) (* 2 (sqrt -1))) into (/ 0.5 (sqrt -1)) 0.065 * [backup-simplify]: Simplify (/ 0.5 (sqrt -1)) into (/ 0.5 (sqrt -1)) 0.065 * [backup-simplify]: Simplify (+ (* 1 0) (+ (* 0 0) (+ (* 0 0) (* 0 1)))) into 0 0.066 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)) (* 0 (/ 0 1)) (* 0 (/ 0 1)))) into 0 0.066 * [backup-simplify]: Simplify (- 0) into 0 0.066 * [backup-simplify]: Simplify (+ 0 0) into 0 0.067 * [backup-simplify]: Simplify (/ (- 0 (+ (* 2 (* 0 (/ 0.5 (sqrt -1)))))) (* 2 (sqrt -1))) into 0 0.067 * [backup-simplify]: Simplify 0 into 0 0.068 * [backup-simplify]: Simplify (+ (* 1 0) (+ (* 0 0) (+ (* 0 0) (+ (* 0 0) (* 0 1))))) into 0 0.068 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)) (* 0 (/ 0 1)) (* 0 (/ 0 1)) (* 0 (/ 0 1)))) into 0 0.068 * [backup-simplify]: Simplify (- 0) into 0 0.069 * [backup-simplify]: Simplify (+ 0 0) into 0 0.072 * [backup-simplify]: Simplify (/ (- 0 (pow (/ 0.5 (sqrt -1)) 2) (+ (* 2 (* 0 0)))) (* 2 (sqrt -1))) into (/ -0.125 (pow (sqrt -1) 3)) 0.073 * [backup-simplify]: Simplify (/ -0.125 (pow (sqrt -1) 3)) into (/ -0.125 (pow (sqrt -1) 3)) 0.075 * [backup-simplify]: Simplify (+ (* (/ -0.125 (pow (sqrt -1) 3)) (pow (/ 1 x) 3)) (+ (* (/ 0.5 (sqrt -1)) (/ 1 x)) (* (sqrt -1) (/ 1 (/ 1 x))))) into (- (+ (* 0.5 (/ 1 (* x (sqrt -1)))) (* x (sqrt -1))) (* 0.125 (/ 1 (* (pow x 3) (pow (sqrt -1) 3))))) 0.075 * [backup-simplify]: Simplify (sqrt (- 1.0 (* (/ 1 (- x)) (/ 1 (- x))))) into (sqrt (- 1.0 (/ 1 (pow x 2)))) 0.075 * [approximate]: Taking taylor expansion of (sqrt (- 1.0 (/ 1 (pow x 2)))) in (x) around 0 0.075 * [taylor]: Taking taylor expansion of (sqrt (- 1.0 (/ 1 (pow x 2)))) in x 0.075 * [taylor]: Taking taylor expansion of (- 1.0 (/ 1 (pow x 2))) in x 0.075 * [taylor]: Taking taylor expansion of 1.0 in x 0.075 * [backup-simplify]: Simplify 1.0 into 1.0 0.075 * [taylor]: Taking taylor expansion of (/ 1 (pow x 2)) in x 0.075 * [taylor]: Taking taylor expansion of (pow x 2) in x 0.075 * [taylor]: Taking taylor expansion of x in x 0.075 * [backup-simplify]: Simplify 0 into 0 0.075 * [backup-simplify]: Simplify 1 into 1 0.075 * [backup-simplify]: Simplify (* 1 1) into 1 0.076 * [backup-simplify]: Simplify (/ 1 1) into 1 0.076 * [backup-simplify]: Simplify (- 1) into -1 0.076 * [backup-simplify]: Simplify (+ 0 -1) into -1 0.076 * [backup-simplify]: Simplify (sqrt -1) into (sqrt -1) 0.077 * [backup-simplify]: Simplify (+ (* 1 0) (* 0 1)) into 0 0.077 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)))) into 0 0.077 * [backup-simplify]: Simplify (- 0) into 0 0.077 * [backup-simplify]: Simplify (+ 0 0) into 0 0.078 * [backup-simplify]: Simplify (/ 0 (* 2 (sqrt -1))) into 0 0.078 * [taylor]: Taking taylor expansion of (sqrt (- 1.0 (/ 1 (pow x 2)))) in x 0.078 * [taylor]: Taking taylor expansion of (- 1.0 (/ 1 (pow x 2))) in x 0.078 * [taylor]: Taking taylor expansion of 1.0 in x 0.078 * [backup-simplify]: Simplify 1.0 into 1.0 0.078 * [taylor]: Taking taylor expansion of (/ 1 (pow x 2)) in x 0.078 * [taylor]: Taking taylor expansion of (pow x 2) in x 0.078 * [taylor]: Taking taylor expansion of x in x 0.078 * [backup-simplify]: Simplify 0 into 0 0.078 * [backup-simplify]: Simplify 1 into 1 0.078 * [backup-simplify]: Simplify (* 1 1) into 1 0.078 * [backup-simplify]: Simplify (/ 1 1) into 1 0.079 * [backup-simplify]: Simplify (- 1) into -1 0.079 * [backup-simplify]: Simplify (+ 0 -1) into -1 0.079 * [backup-simplify]: Simplify (sqrt -1) into (sqrt -1) 0.080 * [backup-simplify]: Simplify (+ (* 1 0) (* 0 1)) into 0 0.080 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)))) into 0 0.080 * [backup-simplify]: Simplify (- 0) into 0 0.081 * [backup-simplify]: Simplify (+ 0 0) into 0 0.081 * [backup-simplify]: Simplify (/ 0 (* 2 (sqrt -1))) into 0 0.081 * [backup-simplify]: Simplify (sqrt -1) into (sqrt -1) 0.081 * [backup-simplify]: Simplify 0 into 0 0.082 * [backup-simplify]: Simplify (+ (* 1 0) (+ (* 0 0) (* 0 1))) into 0 0.082 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)) (* 0 (/ 0 1)))) into 0 0.082 * [backup-simplify]: Simplify (- 0) into 0 0.083 * [backup-simplify]: Simplify (+ 1.0 0) into 1.0 0.085 * [backup-simplify]: Simplify (/ (- 1.0 (pow 0 2) (+)) (* 2 (sqrt -1))) into (/ 0.5 (sqrt -1)) 0.085 * [backup-simplify]: Simplify (/ 0.5 (sqrt -1)) into (/ 0.5 (sqrt -1)) 0.086 * [backup-simplify]: Simplify (+ (* 1 0) (+ (* 0 0) (+ (* 0 0) (* 0 1)))) into 0 0.086 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)) (* 0 (/ 0 1)) (* 0 (/ 0 1)))) into 0 0.086 * [backup-simplify]: Simplify (- 0) into 0 0.087 * [backup-simplify]: Simplify (+ 0 0) into 0 0.087 * [backup-simplify]: Simplify (/ (- 0 (+ (* 2 (* 0 (/ 0.5 (sqrt -1)))))) (* 2 (sqrt -1))) into 0 0.087 * [backup-simplify]: Simplify 0 into 0 0.088 * [backup-simplify]: Simplify (+ (* 1 0) (+ (* 0 0) (+ (* 0 0) (+ (* 0 0) (* 0 1))))) into 0 0.089 * [backup-simplify]: Simplify (- (+ (* 1 (/ 0 1)) (* 0 (/ 0 1)) (* 0 (/ 0 1)) (* 0 (/ 0 1)))) into 0 0.089 * [backup-simplify]: Simplify (- 0) into 0 0.089 * [backup-simplify]: Simplify (+ 0 0) into 0 0.092 * [backup-simplify]: Simplify (/ (- 0 (pow (/ 0.5 (sqrt -1)) 2) (+ (* 2 (* 0 0)))) (* 2 (sqrt -1))) into (/ -0.125 (pow (sqrt -1) 3)) 0.093 * [backup-simplify]: Simplify (/ -0.125 (pow (sqrt -1) 3)) into (/ -0.125 (pow (sqrt -1) 3)) 0.095 * [backup-simplify]: Simplify (+ (* (/ -0.125 (pow (sqrt -1) 3)) (pow (/ 1 (- x)) 3)) (+ (* (/ 0.5 (sqrt -1)) (/ 1 (- x))) (* (sqrt -1) (/ 1 (/ 1 (- x)))))) into (- (* 0.125 (/ 1 (* (pow x 3) (pow (sqrt -1) 3)))) (+ (* 0.5 (/ 1 (* x (sqrt -1)))) (* x (sqrt -1)))) 0.095 * * * [progress]: simplifying candidates 0.096 * [simplify]: Simplifying: (expm1 (sqrt (- 1.0 (* x x)))) (log1p (sqrt (- 1.0 (* x x)))) (log (sqrt (- 1.0 (* x x)))) (exp (sqrt (- 1.0 (* x x)))) (* (cbrt (sqrt (- 1.0 (* x x)))) (cbrt (sqrt (- 1.0 (* x x))))) (cbrt (sqrt (- 1.0 (* x x)))) (* (* (sqrt (- 1.0 (* x x))) (sqrt (- 1.0 (* x x)))) (sqrt (- 1.0 (* x x)))) (sqrt (* (cbrt (- 1.0 (* x x))) (cbrt (- 1.0 (* x x))))) (sqrt (cbrt (- 1.0 (* x x)))) (sqrt (sqrt (- 1.0 (* x x)))) (sqrt (sqrt (- 1.0 (* x x)))) (sqrt 1) (sqrt (- 1.0 (* x x))) (sqrt (+ (sqrt 1.0) x)) (sqrt (- (sqrt 1.0) x)) (sqrt (- (pow 1.0 3) (pow (* x x) 3))) (sqrt (+ (* 1.0 1.0) (+ (* (* x x) (* x x)) (* 1.0 (* x x))))) (sqrt (- (* 1.0 1.0) (* (* x x) (* x x)))) (sqrt (+ 1.0 (* x x))) (/ 1 2) (sqrt (sqrt (- 1.0 (* x x)))) (sqrt (sqrt (- 1.0 (* x x)))) (- (sqrt 1.0) (+ (* 1/8 (/ (pow x 4) (pow (sqrt 1.0) 3))) (* 1/2 (/ (pow x 2) (sqrt 1.0))))) (- (+ (* 0.5 (/ 1 (* x (sqrt -1)))) (* x (sqrt -1))) (* 0.125 (/ 1 (* (pow x 3) (pow (sqrt -1) 3))))) (- (* 0.125 (/ 1 (* (pow x 3) (pow (sqrt -1) 3)))) (+ (* 0.5 (/ 1 (* x (sqrt -1)))) (* x (sqrt -1)))) 0.096 * [simplify]: Sending expressions to egg_math: (expm1 (sqrt (- h1 (* h0 h0)))) (log1p (sqrt (- h1 (* h0 h0)))) (log (sqrt (- h1 (* h0 h0)))) (exp (sqrt (- h1 (* h0 h0)))) (* (cbrt (sqrt (- h1 (* h0 h0)))) (cbrt (sqrt (- h1 (* h0 h0))))) (cbrt (sqrt (- h1 (* h0 h0)))) (* (* (sqrt (- h1 (* h0 h0))) (sqrt (- h1 (* h0 h0)))) (sqrt (- h1 (* h0 h0)))) (sqrt (* (cbrt (- h1 (* h0 h0))) (cbrt (- h1 (* h0 h0))))) (sqrt (cbrt (- h1 (* h0 h0)))) (sqrt (sqrt (- h1 (* h0 h0)))) (sqrt (sqrt (- h1 (* h0 h0)))) (sqrt 1) (sqrt (- h1 (* h0 h0))) (sqrt (+ (sqrt h1) h0)) (sqrt (- (sqrt h1) h0)) (sqrt (- (pow h1 3) (pow (* h0 h0) 3))) (sqrt (+ (* h1 h1) (+ (* (* h0 h0) (* h0 h0)) (* h1 (* h0 h0))))) (sqrt (- (* h1 h1) (* (* h0 h0) (* h0 h0)))) (sqrt (+ h1 (* h0 h0))) (/ 1 2) (sqrt (sqrt (- h1 (* h0 h0)))) (sqrt (sqrt (- h1 (* h0 h0)))) (- (sqrt h1) (+ (* 1/8 (/ (pow h0 4) (pow (sqrt h1) 3))) (* 1/2 (/ (pow h0 2) (sqrt h1))))) (- (+ (* h3 (/ 1 (* h0 (sqrt -1)))) (* h0 (sqrt -1))) (* h2 (/ 1 (* (pow h0 3) (pow (sqrt -1) 3))))) (- (* h2 (/ 1 (* (pow h0 3) (pow (sqrt -1) 3)))) (+ (* h3 (/ 1 (* h0 (sqrt -1)))) (* h0 (sqrt -1))))