exp neg sub

Time bar (total: 2.5s)

analyze0.0ms (0%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 9 to 7 computations (22.2% saved)

sample1.9s (77.2%)

Results
1.0s4113×body256infinite
873.0ms4143×body256valid
Bogosity

preprocess154.0ms (6.1%)

Algorithm
egg-herbie
Rules
1996×fma-def
1492×div-sub
1302×times-frac
666×associate-*r/
518×fma-neg
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01463
13851
27951
315739
429139
562439
6204639
7573139
Stop Event
node limit
Calls
Call 1
Inputs
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 (neg.f64 x) (neg.f64 x)))))
Outputs
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(exp.f64 (+.f64 -1 (*.f64 x x)))
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(exp.f64 (+.f64 -1 (*.f64 x x)))
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 (neg.f64 x) (neg.f64 x)))))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(exp.f64 (+.f64 -1 (*.f64 x x)))
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (fma.f64 x x -1))
Symmetry

(abs x)

Compiler

Compiled 8 to 6 computations (25% saved)

eval1.0ms (0%)

Compiler

Compiled 18 to 11 computations (38.9% saved)

prune2.0ms (0.1%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
Compiler

Compiled 14 to 10 computations (28.6% saved)

localize41.0ms (1.6%)

Localize:

Found 1 expressions with local error:

NewAccuracyProgram
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
Compiler

Compiled 18 to 9 computations (50% saved)

series1.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
(exp.f64 (+.f64 (*.f64 x x) -1))
0.0ms
x
@inf
(exp.f64 (+.f64 (*.f64 x x) -1))
0.0ms
x
@-inf
(exp.f64 (+.f64 (*.f64 x x) -1))

rewrite75.0ms (3%)

Algorithm
batch-egg-rewrite
Rules
1590×pow1
1468×add-exp-log
1468×log1p-expm1-u
1468×expm1-log1p-u
1440×add-log-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0813
116913
2203013
Stop Event
node limit
Counts
1 → 22
Calls
Call 1
Inputs
(exp.f64 (+.f64 (*.f64 x x) -1))
Outputs
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(-.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)
(*.f64 (exp.f64 (fma.f64 x x -1)) 1)
(*.f64 1 (exp.f64 (fma.f64 x x -1)))
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1))
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x))
(*.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))
(*.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))
(*.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))
(pow.f64 (exp.f64 (fma.f64 x x -1)) 1)
(pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)
(pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)
(pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))
(pow.f64 (exp.f64 (+.f64 x 1)) (+.f64 x -1))
(pow.f64 (exp.f64 1) (fma.f64 x x -1))
(pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))
(sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))
(log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))
(cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))
(expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))
(log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1))))

simplify77.0ms (3%)

Algorithm
egg-herbie
Rules
1408×fma-def
1110×times-frac
624×associate-*r*
590×*-commutative
546×associate-*l*
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
075598
1164578
2482556
32520552
46296552
Stop Event
node limit
Counts
34 → 39
Calls
Call 1
Inputs
(exp.f64 -1)
(+.f64 (exp.f64 -1) (*.f64 (pow.f64 x 2) (exp.f64 -1)))
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 x 4) (exp.f64 -1))) (*.f64 (pow.f64 x 2) (exp.f64 -1))))
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (pow.f64 x 6) (exp.f64 -1))) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 x 4) (exp.f64 -1))) (*.f64 (pow.f64 x 2) (exp.f64 -1)))))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(-.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)
(*.f64 (exp.f64 (fma.f64 x x -1)) 1)
(*.f64 1 (exp.f64 (fma.f64 x x -1)))
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1))
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x))
(*.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))
(*.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))
(*.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))
(pow.f64 (exp.f64 (fma.f64 x x -1)) 1)
(pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)
(pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)
(pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))
(pow.f64 (exp.f64 (+.f64 x 1)) (+.f64 x -1))
(pow.f64 (exp.f64 1) (fma.f64 x x -1))
(pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))
(sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))
(log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))
(cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))
(expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))
(log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1))))
Outputs
(exp.f64 -1)
(+.f64 (exp.f64 -1) (*.f64 (pow.f64 x 2) (exp.f64 -1)))
(*.f64 (+.f64 (*.f64 x x) 1) (exp.f64 -1))
(*.f64 (exp.f64 -1) (fma.f64 x x 1))
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 x 4) (exp.f64 -1))) (*.f64 (pow.f64 x 2) (exp.f64 -1))))
(+.f64 (exp.f64 -1) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x))))
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (+.f64 (*.f64 x x) (*.f64 1/2 (pow.f64 x 4)))))
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (*.f64 1/2 (pow.f64 x 4))))
(*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1)))
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (pow.f64 x 6) (exp.f64 -1))) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 x 4) (exp.f64 -1))) (*.f64 (pow.f64 x 2) (exp.f64 -1)))))
(+.f64 (exp.f64 -1) (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x)))))
(+.f64 (*.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (pow.f64 x 6)) (*.f64 1/2 (pow.f64 x 4)))) (*.f64 (exp.f64 -1) (fma.f64 x x 1)))
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 1/6 (pow.f64 x 6) (*.f64 1/2 (pow.f64 x 4))) (fma.f64 x x 1)))
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (fma.f64 1/6 (pow.f64 x 6) (*.f64 1/2 (pow.f64 x 4)))))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(exp.f64 (fma.f64 x x -1))
(-.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)
(exp.f64 (fma.f64 x x -1))
(*.f64 (exp.f64 (fma.f64 x x -1)) 1)
(exp.f64 (fma.f64 x x -1))
(*.f64 1 (exp.f64 (fma.f64 x x -1)))
(exp.f64 (fma.f64 x x -1))
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1))
(exp.f64 (fma.f64 x x -1))
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x))
(exp.f64 (fma.f64 x x -1))
(*.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))
(exp.f64 (fma.f64 x x -1))
(*.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(*.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(pow.f64 (exp.f64 (fma.f64 x x -1)) 1)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))
(pow.f64 (exp.f64 (+.f64 x 1)) (+.f64 x -1))
(exp.f64 (fma.f64 x x -1))
(pow.f64 (exp.f64 1) (fma.f64 x x -1))
(pow.f64 (E.f64) (fma.f64 x x -1))
(pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))
(sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))
(exp.f64 (fma.f64 x x -1))
(log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))
(exp.f64 (fma.f64 x x -1))
(expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))

eval11.0ms (0.4%)

Compiler

Compiled 426 to 324 computations (23.9% saved)

prune7.0ms (0.3%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New38139
Fresh000
Picked011
Done000
Total38240
Accuracy
100.0%
Counts
40 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
51.6%
(exp.f64 -1)
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
51.6%
(exp.f64 -1)
Compiler

Compiled 20 to 16 computations (20% saved)

localize15.0ms (0.6%)

Compiler

Compiled 5 to 5 computations (0% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune2.0ms (0.1%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done011
Total022
Accuracy
100.0%
Counts
2 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
51.6%
(exp.f64 -1)
Compiler

Compiled 26 to 19 computations (26.9% saved)

regimes15.0ms (0.6%)

Counts
3 → 1
Calls
Call 1
Inputs
(exp.f64 -1)
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
Outputs
(exp.f64 (+.f64 (*.f64 x x) -1))
Calls

5 calls:

3.0ms
x
3.0ms
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
3.0ms
(*.f64 x x)
2.0ms
(-.f64 1 (*.f64 x x))
2.0ms
(neg.f64 (-.f64 1 (*.f64 x x)))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
100.0%1(neg.f64 (-.f64 1 (*.f64 x x)))
100.0%1(-.f64 1 (*.f64 x x))
100.0%1(*.f64 x x)
Compiler

Compiled 43 to 29 computations (32.6% saved)

regimes7.0ms (0.3%)

Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
(exp.f64 -1)
Outputs
(exp.f64 -1)
Calls

1 calls:

6.0ms
x
Results
AccuracySegmentsBranch
51.6%1x
Compiler

Compiled 5 to 4 computations (20% saved)

simplify4.0ms (0.2%)

Algorithm
egg-herbie
Rules
+-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0922
11022
Stop Event
done
saturated
Calls
Call 1
Inputs
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 -1)
Outputs
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 -1)
Compiler

Compiled 10 to 8 computations (20% saved)

soundness133.0ms (5.3%)

Rules
1996×fma-def
1492×div-sub
1302×times-frac
666×associate-*r/
518×fma-neg
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01463
13851
27951
315739
429139
562439
6204639
7573139
Stop Event
node limit
Compiler

Compiled 58 to 32 computations (44.8% saved)

end0.0ms (0%)

preprocess28.0ms (1.1%)

Remove

(abs x)

Compiler

Compiled 48 to 36 computations (25% saved)

Profiling

Loading profile data...