Hyperbolic secant

Time bar (total: 1.3s)

analyze0.0ms (0%)

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

Compiled 10 to 8 computations (20% saved)

sample699.0ms (52.2%)

Results
687.0ms8256×body256valid
Bogosity

preprocess83.0ms (6.2%)

Algorithm
egg-herbie
Rules
1688×fma-def
864×swap-sqr
832×fabs-mul
708×sqr-pow
586×*-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01450
12550
24550
37650
414750
531050
682650
7240450
8361450
9468150
10635350
Stop Event
node limit
Calls
Call 1
Inputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 (neg.f64 x)))))
Outputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 (neg.f64 x)))))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Symmetry

(abs x)

Compiler

Compiled 10 to 8 computations (20% saved)

simplify78.0ms (5.8%)

Algorithm
egg-herbie
Rules
1992×fma-def
868×unswap-sqr
716×fabs-mul
616×exp-prod
544×*-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01025
11725
22325
33025
45025
59025
618725
743125
8116125
9295125
10413925
11531125
12699425
Stop Event
node limit
Counts
1 → 1
Calls
Call 1
Inputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Outputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))

eval0.0ms (0%)

Compiler

Compiled 9 to 7 computations (22.2% saved)

prune1.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Accurracy
100.0%
Counts
2 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 18 to 14 computations (22.2% saved)

localize28.0ms (2.1%)

Local Accuracy

Found 1 expressions with local accuracy:

NewAccuracyProgram
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 25 to 9 computations (64% saved)

series2.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.0ms
x
@inf
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
0.0ms
x
@0
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))

rewrite37.0ms (2.8%)

Algorithm
batch-egg-rewrite
Rules
222×add-sqr-sqrt
210×add-exp-log
210×pow1
210×*-un-lft-identity
208×add-log-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01017
121617
2334017
Stop Event
unsound
Counts
1 → 18
Calls
Call 1
Inputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Outputs
-8
-4
-2
-1
-1/2
0
1/2
1
3/2
2
3
4
8
9
16
27
64
512
x

simplify74.0ms (5.5%)

Algorithm
egg-herbie
Rules
1444×fma-def
798×distribute-lft-out
694×distribute-lft-in
652×*-commutative
572×unswap-sqr
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
046318
180314
2144310
3365306
41267306
53171306
64352306
77244306
Stop Event
node limit
Counts
30 → 33
Calls
Call 1
Inputs
1
(+.f64 1 (*.f64 -1/2 (pow.f64 x 2)))
(+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (*.f64 5/24 (pow.f64 x 4))))
(+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 -61/720 (pow.f64 x 6)) (*.f64 5/24 (pow.f64 x 4)))))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
-8
-4
-2
-1
-1/2
0
1/2
1
3/2
2
3
4
8
9
16
27
64
512
Outputs
1
(+.f64 1 (*.f64 -1/2 (pow.f64 x 2)))
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
(fma.f64 -1/2 (*.f64 x x) 1)
(+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (*.f64 5/24 (pow.f64 x 4))))
(+.f64 1 (fma.f64 -1/2 (*.f64 x x) (*.f64 5/24 (pow.f64 x 4))))
(fma.f64 -1/2 (*.f64 x x) (fma.f64 5/24 (pow.f64 x 4) 1))
(+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 -61/720 (pow.f64 x 6)) (*.f64 5/24 (pow.f64 x 4)))))
(+.f64 1 (fma.f64 -1/2 (*.f64 x x) (fma.f64 -61/720 (pow.f64 x 6) (*.f64 5/24 (pow.f64 x 4)))))
(+.f64 1 (fma.f64 -1/2 (*.f64 x x) (fma.f64 5/24 (pow.f64 x 4) (*.f64 -61/720 (pow.f64 x 6)))))
(+.f64 (fma.f64 -1/2 (*.f64 x x) 1) (fma.f64 -61/720 (pow.f64 x 6) (*.f64 5/24 (pow.f64 x 4))))
(fma.f64 -1/2 (*.f64 x x) (fma.f64 5/24 (pow.f64 x 4) (fma.f64 -61/720 (pow.f64 x 6) 1)))
(fma.f64 x (*.f64 x (fma.f64 (pow.f64 x 4) -61/720 -1/2)) (fma.f64 5/24 (pow.f64 x 4) 1))
(fma.f64 x (*.f64 x (fma.f64 x (*.f64 x 5/24) -1/2)) (fma.f64 -61/720 (pow.f64 x 6) 1))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 2 (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
-8
-4
-2
-1
-1/2
0
1/2
1
3/2
2
3
4
8
9
16
27
64
512

eval6.0ms (0.4%)

Compiler

Compiled 210 to 157 computations (25.2% saved)

prune10.0ms (0.7%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New29433
Fresh000
Picked011
Done000
Total29534
Accurracy
100.0%
Counts
34 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
52.8%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
53.2%
1
11.3%
1/2
49.3%
0
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
52.8%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
53.2%
1
11.3%
1/2
49.3%
0
Compiler

Compiled 46 to 38 computations (17.4% saved)

localize26.0ms (1.9%)

Compiler

Compiled 20 to 11 computations (45% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune3.0ms (0.3%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New000
Fresh033
Picked011
Done011
Total055
Accurracy
100.0%
Counts
5 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
52.8%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
53.2%
1
11.3%
1/2
49.3%
0
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
52.8%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
53.2%
1
11.3%
1/2
49.3%
0
Compiler

Compiled 46 to 38 computations (17.4% saved)

localize0.0ms (0%)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune8.0ms (0.6%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New000
Fresh033
Picked000
Done022
Total055
Accurracy
100.0%
Counts
5 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
52.8%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
53.2%
1
11.3%
1/2
49.3%
0
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
52.8%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
53.2%
1
11.3%
1/2
49.3%
0
Compiler

Compiled 46 to 38 computations (17.4% saved)

localize0.0ms (0%)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune3.0ms (0.2%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New000
Fresh033
Picked000
Done022
Total055
Accurracy
100.0%
Counts
5 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
52.8%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
53.2%
1
11.3%
1/2
49.3%
0
Compiler

Compiled 42 to 34 computations (19% saved)

regimes9.0ms (0.7%)

Counts
5 → 1
Calls
Call 1
Inputs
0
1/2
1
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Outputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Calls

3 calls:

4.0ms
x
2.0ms
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
2.0ms
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
100.0%1(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
Compiler

Compiled 37 to 28 computations (24.3% saved)

regimes10.0ms (0.7%)

Counts
4 → 2
Calls
Call 1
Inputs
0
1/2
1
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
Outputs
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
0
Calls

1 calls:

9.0ms
x
Results
AccuracySegmentsBranch
99.6%2x
Compiler

Compiled 13 to 10 computations (23.1% saved)

regimes7.0ms (0.5%)

Counts
3 → 2
Calls
Call 1
Inputs
0
1/2
1
Outputs
1
0
Calls

1 calls:

6.0ms
x
Results
AccuracySegmentsBranch
99.4%2x
Compiler

Compiled 6 to 5 computations (16.7% saved)

regimes8.0ms (0.6%)

Counts
2 → 2
Calls
Call 1
Inputs
0
1/2
Outputs
1/2
0
Calls

1 calls:

5.0ms
x
Results
AccuracySegmentsBranch
57.4%2x
Compiler

Compiled 5 to 4 computations (20% saved)

regimes3.0ms (0.2%)

Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
0
Outputs
0
Calls

1 calls:

2.0ms
x
Results
AccuracySegmentsBranch
49.3%1x
Compiler

Compiled 4 to 3 computations (25% saved)

bsearch18.0ms (1.3%)

Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
18.0ms
2.629863797830166e-5
297.7880906243367
Results
16.0ms144×body256valid
Compiler

Compiled 121 to 100 computations (17.4% saved)

bsearch14.0ms (1%)

Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
14.0ms
297.7880906243367
794.5948051694836
Results
13.0ms80×body256valid
Compiler

Compiled 43 to 40 computations (7% saved)

bsearch9.0ms (0.7%)

Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
9.0ms
297.7880906243367
794.5948051694836
Results
8.0ms80×body256valid
Compiler

Compiled 43 to 40 computations (7% saved)

simplify6.0ms (0.5%)

Algorithm
egg-herbie
Rules
+-commutative
*-commutative
sub-neg
1-exp
neg-mul-1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02777
13477
23677
33777
Stop Event
fuel
saturated
Calls
Call 1
Inputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(if (<=.f64 x 3152519739159347/2251799813685248) (+.f64 1 (*.f64 -1/2 (*.f64 x x))) 0)
(if (<=.f64 x 360) 1 0)
(if (<=.f64 x 360) 1/2 0)
0
Outputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(if (<=.f64 x 3152519739159347/2251799813685248) (+.f64 1 (*.f64 -1/2 (*.f64 x x))) 0)
(if (<=.f64 x 360) 1 0)
(if (<=.f64 x 360) 1/2 0)
0
Compiler

Compiled 38 to 31 computations (18.4% saved)

soundness156.0ms (11.7%)

Rules
1444×fma-def
798×distribute-lft-out
694×distribute-lft-in
652×*-commutative
572×unswap-sqr
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01017
121617
2334017
01017
121617
2334017
046318
180314
2144310
3365306
41267306
53171306
64352306
77244306
Stop Event
node limit
unsound
unsound
Compiler

Compiled 15 to 12 computations (20% saved)

end0.0ms (0%)

preprocess43.0ms (3.2%)

Remove

(abs x)

Compiler

Compiled 104 to 82 computations (21.2% saved)

Profiling

Loading profile data...