Hyperbolic secant

Details

Time bar (total: 1.4s)

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)

sample736.0ms (52.1%)

Results
724.0ms8256×body256valid
Bogosity

preprocess92.0ms (6.5%)

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
011
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Outputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 10 to 8 computations (20% saved)

simplify88.0ms (6.3%)

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)

localize29.0ms (2%)

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))))

rewrite33.0ms (2.3%)

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

simplify80.0ms (5.7%)

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)

prune6.0ms (0.5%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New30333
Fresh000
Picked101
Done000
Total31334
Accurracy
100.0%
Counts
34 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
46.4%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
47.0%
1
56.1%
0
46.4%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
47.0%
1
56.1%
0
Compiler

Compiled 24 to 20 computations (16.7% saved)

localize25.0ms (1.7%)

Compiler

Compiled 20 to 11 computations (45% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune2.0ms (0.1%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New000
Fresh022
Picked011
Done000
Total033
Accurracy
100.0%
Counts
3 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
46.4%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
47.0%
1
56.1%
0
46.4%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
47.0%
1
56.1%
0
Compiler

Compiled 24 to 20 computations (16.7% saved)

localize0.0ms (0%)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune2.0ms (0.2%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New000
Fresh022
Picked000
Done011
Total033
Accurracy
100.0%
Counts
3 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
46.4%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
47.0%
1
56.1%
0
46.4%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
47.0%
1
56.1%
0
Compiler

Compiled 24 to 20 computations (16.7% saved)

localize0.0ms (0%)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune2.0ms (0.1%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New000
Fresh022
Picked000
Done011
Total033
Accurracy
100.0%
Counts
3 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
46.4%
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
47.0%
1
56.1%
0
Compiler

Compiled 30 to 24 computations (20% saved)

regimes9.0ms (0.7%)

Counts
4 → 1
Calls
Call 1
Inputs
0
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
3.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 36 to 27 computations (25% saved)

regimes10.0ms (0.7%)

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

1 calls:

9.0ms
x
Results
AccuracySegmentsBranch
100.0%3x
Compiler

Compiled 12 to 9 computations (25% saved)

regimes13.0ms (1%)

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

1 calls:

8.0ms
x
Results
AccuracySegmentsBranch
99.9%3x
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:

3.0ms
x
Results
AccuracySegmentsBranch
56.1%1x
Compiler

Compiled 4 to 3 computations (25% saved)

bsearch42.0ms (2.9%)

Algorithm
binary-search
Stop Event
narrow-enough
narrow-enough
Steps
TimeLeftRight
19.0ms
5.355723616382093e-8
28132.758667205435
22.0ms
-1717864514900317.8
-8.642590458815954e-8
Results
38.0ms336×body256valid
Compiler

Compiled 265 to 220 computations (17% saved)

bsearch42.0ms (2.9%)

Algorithm
binary-search
Stop Event
narrow-enough
narrow-enough
Steps
TimeLeftRight
19.0ms
5.355723616382093e-8
28132.758667205435
22.0ms
-1717864514900317.8
-8.642590458815954e-8
Results
38.0ms336×body256valid
Compiler

Compiled 139 to 136 computations (2.2% saved)

simplify6.0ms (0.4%)

Algorithm
egg-herbie
Rules
+-commutative
if-if-or-not
*-commutative
sub-neg
1-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03186
14686
24886
34986
Stop Event
fuel
saturated
Calls
Call 1
Inputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(if (<=.f64 x -3152519739159347/2251799813685248) 0 (if (<=.f64 x 3152519739159347/2251799813685248) (+.f64 1 (*.f64 -1/2 (*.f64 x x))) 0))
(if (<=.f64 x -350) 0 (if (<=.f64 x 360) 1 0))
0
Outputs
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(if (<=.f64 x -3152519739159347/2251799813685248) 0 (if (<=.f64 x 3152519739159347/2251799813685248) (+.f64 1 (*.f64 -1/2 (*.f64 x x))) 0))
(if (<=.f64 x -350) 0 (if (<=.f64 x 360) 1 0))
0
Compiler

Compiled 41 to 33 computations (19.5% saved)

soundness140.0ms (9.9%)

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
046318
180314
2144310
3365306
41267306
53171306
64352306
77244306
Stop Event
node limit
unsound
Compiler

Compiled 15 to 12 computations (20% saved)

end42.0ms (3%)

Compiler

Compiled 94 to 74 computations (21.3% saved)

Profiling

Loading profile data...