Logistic regression 2

Time bar (total: 3.9s)

start0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated; 0ms collecting garbage

analyze124.0ms (3.2%)

Memory
21.4MiB live, 169.1MiB allocated; 61ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
50%50%50%0.1%0%0%0%2
50%50%50%0.1%0%0%0%3
75%74.9%25%0.1%0%0%0%4
75%74.9%25%0.1%0%0%0%5
75%74.9%25%0.1%0%0%0%6
75%74.9%25%0.1%0%0%0%7
75%74.9%25%0.1%0%0%0%8
75%74.9%25%0.1%0%0%0%9
75%74.9%25%0.1%0%0%0%10
75%74.9%25%0.1%0%0%0%11
75%74.9%25%0.1%0%0%0%12
Compiler

Compiled 11 to 8 computations (27.3% saved)

sample2.5s (64.6%)

Memory
31.3MiB live, 3 713.6MiB allocated; 215ms collecting garbage
Samples
1.5s2 655×5exit
579.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 1.5s
ival-log1p: 844.0ms (54.5% of total)
adjust: 295.0ms (19.1% of total)
ival-exp: 159.0ms (10.3% of total)
ival-sub: 125.0ms (8.1% of total)
ival-mult: 121.0ms (7.8% of total)
ival-assert: 4.0ms (0.3% of total)
Bogosity

explain102.0ms (2.7%)

Memory
-8.2MiB live, 143.6MiB allocated; 8ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
579(-1.646438027544341e+36 2.497247936358956e+263)0-(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
00-0-(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
00-0-(+.f64 #s(literal 1 binary64) (exp.f64 x))
00-0-y
00-0-#s(literal 1 binary64)
00-0-(exp.f64 x)
00-0-(*.f64 x y)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
log.f64(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))sensitivity800
log.f64(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))oflow-rescue40
(exp.f64 x)overflow4
(+.f64 #s(literal 1 binary64) (exp.f64 x))overflow4
Confusion
Predicted +Predicted -
+50
-79172
Precision
0.05952380952380952
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+500
-790172
Precision?
0.05952380952380952
Recall?
1.0
Freqs
test
numberfreq
0172
184
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
41.0ms512×0valid
Compiler

Compiled 65 to 28 computations (56.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 25.0ms
ival-exp: 8.0ms (31.4% of total)
ival-mult: 6.0ms (23.5% of total)
ival-log1p: 5.0ms (19.6% of total)
ival-add: 3.0ms (11.8% of total)
ival-sub: 2.0ms (7.8% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess352.0ms (9.1%)

Memory
-6.1MiB live, 413.6MiB allocated; 42ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02460
15458
213058
329458
4117858
5570558
089
0139
1239
2469
3979
43169
529159
081067
Stop Event
iter limit
node limit
iter limit
node limit
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
Compiler

Compiled 9 to 8 computations (11.1% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated; 0ms collecting garbage
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune1.0ms (0%)

Memory
1.6MiB live, 1.6MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.2%
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 9 to 8 computations (11.1% saved)

series62.0ms (1.6%)

Memory
6.9MiB live, 99.2MiB allocated; 6ms collecting garbage
Counts
8 → 29
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
(*.f64 x y)
y
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log 2)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- 1/2 y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log 2)))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* 1/2 x))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* 1/8 x))))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))))
#s(approx (+ 1 (exp x)) #s(hole binary64 2))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 2 x)))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 2 (* x (+ 1 (* 1/2 x))))))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))))
#s(approx (exp x) #s(hole binary64 1))
#s(approx (exp x) #s(hole binary64 (+ 1 x)))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* 1/2 x))))))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))))
#s(approx x #s(hole binary64 x))
#s(approx (* x y) #s(hole binary64 (* x y)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* x (- (/ (log (+ 1 (exp x))) x) y))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 1 (exp x))))
#s(approx (exp x) #s(hole binary64 (exp x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log (+ 1 (exp x))) (* -1 (* x y)))))
#s(approx y #s(hole binary64 y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* y (- (/ (log (+ 1 (exp x))) y) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))))
Calls

6 calls:

TimeVariablePointExpression
29.0ms
x
@inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) 1 (exp x) x (* x y) y)
23.0ms
x
@-inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) 1 (exp x) x (* x y) y)
3.0ms
y
@0
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) 1 (exp x) x (* x y) y)
2.0ms
x
@0
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) 1 (exp x) x (* x y) y)
2.0ms
y
@-inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) 1 (exp x) x (* x y) y)

rewrite140.0ms (3.6%)

Memory
-3.6MiB live, 140.2MiB allocated; 10ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0102433
0108424
1562422
04885350
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
37 → 90
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
(*.f64 x y)
y
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log 2)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- 1/2 y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log 2)))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* 1/2 x))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* 1/8 x))))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))))
#s(approx (+ 1 (exp x)) #s(hole binary64 2))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 2 x)))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 2 (* x (+ 1 (* 1/2 x))))))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))))
#s(approx (exp x) #s(hole binary64 1))
#s(approx (exp x) #s(hole binary64 (+ 1 x)))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* 1/2 x))))))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))))
#s(approx x #s(hole binary64 x))
#s(approx (* x y) #s(hole binary64 (* x y)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* x (- (/ (log (+ 1 (exp x))) x) y))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (+ 1 (exp x)) #s(hole binary64 (+ 1 (exp x))))
#s(approx (exp x) #s(hole binary64 (exp x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log (+ 1 (exp x))) (* -1 (* x y)))))
#s(approx y #s(hole binary64 y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* y (- (/ (log (+ 1 (exp x))) y) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))))
Outputs
(/.f64 (-.f64 (pow.f64 (*.f64 y x) #s(literal 2 binary64)) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64))) (-.f64 (*.f64 (neg.f64 x) y) (log1p.f64 (exp.f64 x))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (pow.f64 (*.f64 y x) #s(literal 2 binary64)))) (neg.f64 (fma.f64 y x (log1p.f64 (exp.f64 x)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (pow.f64 (*.f64 y x) #s(literal 2 binary64))) (fma.f64 y x (log1p.f64 (exp.f64 x))))
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64))) (+.f64 (pow.f64 (*.f64 y x) #s(literal 2 binary64)) (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (*.f64 (*.f64 (neg.f64 x) y) (log1p.f64 (exp.f64 x))))))
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64))) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64))))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
(fma.f64 #s(literal -1 binary64) (*.f64 y x) (log1p.f64 (exp.f64 x)))
(fma.f64 (*.f64 y x) #s(literal -1 binary64) (log1p.f64 (exp.f64 x)))
(fma.f64 y (neg.f64 x) (log1p.f64 (exp.f64 x)))
(fma.f64 x (neg.f64 y) (log1p.f64 (exp.f64 x)))
(-.f64 (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (fma.f64 y x (log1p.f64 (exp.f64 x)))) (/.f64 (pow.f64 (*.f64 y x) #s(literal 2 binary64)) (fma.f64 y x (log1p.f64 (exp.f64 x)))))
(-.f64 (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))) (/.f64 (pow.f64 (*.f64 y x) #s(literal 3 binary64)) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 (*.f64 (neg.f64 x) y) #s(literal -1 binary64)))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 y x))
(+.f64 (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))) (/.f64 (pow.f64 (*.f64 (neg.f64 x) y) #s(literal 3 binary64)) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))))
(+.f64 (*.f64 (neg.f64 x) y) (log1p.f64 (exp.f64 x)))
(+.f64 (log1p.f64 (exp.f64 x)) (*.f64 (neg.f64 x) y))
(log1p.f64 (exp.f64 x))
(-.f64 (log.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) (log.f64 (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(-.f64 (log1p.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64))) (log1p.f64 (*.f64 (exp.f64 x) (expm1.f64 x))))
(log.f64 (-.f64 (exp.f64 x) #s(literal -1 binary64)))
(/.f64 (expm1.f64 (*.f64 #s(literal 2 binary64) x)) (expm1.f64 x))
(/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) (neg.f64 (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(/.f64 (neg.f64 (+.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) #s(literal 1 binary64))) (neg.f64 (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64))))
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 x) #s(literal 2 binary64))) (-.f64 #s(literal 1 binary64) (exp.f64 x)))
(/.f64 (+.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 x) (exp.f64 x) (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(/.f64 (+.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64)))
(fma.f64 (exp.f64 x) #s(literal 1 binary64) #s(literal 1 binary64))
(fma.f64 #s(literal 1 binary64) (exp.f64 x) #s(literal 1 binary64))
(-.f64 (/.f64 #s(literal 1 binary64) (-.f64 #s(literal 1 binary64) (exp.f64 x))) (/.f64 (pow.f64 (exp.f64 x) #s(literal 2 binary64)) (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(-.f64 (exp.f64 x) #s(literal -1 binary64))
(+.f64 (+.f64 #s(literal 1 binary64) (cosh.f64 x)) (sinh.f64 x))
(+.f64 (/.f64 #s(literal 1 binary64) (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64))) (/.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64))))
(+.f64 (cosh.f64 x) (+.f64 (sinh.f64 x) #s(literal 1 binary64)))
(+.f64 (exp.f64 x) #s(literal 1 binary64))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(*.f64 (exp.f64 x) #s(literal 1 binary64))
(*.f64 #s(literal 1 binary64) (exp.f64 x))
(/.f64 (*.f64 #s(literal 2 binary64) (exp.f64 x)) #s(literal 2 binary64))
(/.f64 (-.f64 (*.f64 (cosh.f64 x) (cosh.f64 x)) (*.f64 (sinh.f64 x) (sinh.f64 x))) (-.f64 (cosh.f64 x) (sinh.f64 x)))
(/.f64 (+.f64 (pow.f64 (cosh.f64 x) #s(literal 3 binary64)) (pow.f64 (sinh.f64 x) #s(literal 3 binary64))) (fma.f64 (cosh.f64 x) (cosh.f64 x) (-.f64 (*.f64 (sinh.f64 x) (sinh.f64 x)) (*.f64 (cosh.f64 x) (sinh.f64 x)))))
(neg.f64 (*.f64 #s(literal -1 binary64) (exp.f64 x)))
(fma.f64 (cosh.f64 x) #s(literal 1 binary64) (*.f64 (sinh.f64 x) #s(literal 1 binary64)))
(fma.f64 #s(literal 1 binary64) (cosh.f64 x) (*.f64 #s(literal 1 binary64) (sinh.f64 x)))
(exp.f64 (+.f64 #s(literal 0 binary64) x))
(exp.f64 x)
(+.f64 (*.f64 (cosh.f64 x) #s(literal 1 binary64)) (*.f64 (sinh.f64 x) #s(literal 1 binary64)))
(+.f64 (*.f64 #s(literal 1 binary64) (cosh.f64 x)) (*.f64 #s(literal 1 binary64) (sinh.f64 x)))
(+.f64 (sinh.f64 x) (cosh.f64 x))
(+.f64 (cosh.f64 x) (sinh.f64 x))
x
(*.f64 (*.f64 y x) #s(literal 1 binary64))
(*.f64 y x)
(*.f64 x y)
(*.f64 #s(literal 1 binary64) (*.f64 y x))
(/.f64 (*.f64 #s(literal 2 binary64) (*.f64 y x)) #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) y))
y
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 #s(literal 2 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log.f64 #s(literal 2 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x (-.f64 #s(literal 1/2 binary64) y)) x (log.f64 #s(literal 2 binary64))))
#s(approx (log (+ 1 (exp x))) (log.f64 #s(literal 2 binary64)))
#s(approx (log (+ 1 (exp x))) (fma.f64 #s(literal 1/2 binary64) x (log.f64 #s(literal 2 binary64))))
#s(approx (log (+ 1 (exp x))) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log.f64 #s(literal 2 binary64))))
#s(approx (log (+ 1 (exp x))) (fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x #s(literal 1/2 binary64)) x (log.f64 #s(literal 2 binary64))))
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
#s(approx (+ 1 (exp x)) (+.f64 #s(literal 2 binary64) x))
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
#s(approx (exp x) #s(literal 1 binary64))
#s(approx (exp x) (-.f64 x #s(literal -1 binary64)))
#s(approx (exp x) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64)))
#s(approx (exp x) (fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 1 binary64)))
#s(approx x x)
#s(approx (* x y) (*.f64 y x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x))
#s(approx (log (+ 1 (exp x))) (log1p.f64 (exp.f64 x)))
#s(approx (+ 1 (exp x)) (-.f64 (exp.f64 x) #s(literal -1 binary64)))
#s(approx (exp x) (exp.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) (+.f64 (/.f64 (log1p.f64 (exp.f64 x)) (neg.f64 x)) y)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x))))
#s(approx y y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (+.f64 (/.f64 (log1p.f64 (exp.f64 x)) (neg.f64 y)) x) (neg.f64 y)))

eval9.0ms (0.2%)

Memory
17.6MiB live, 17.6MiB allocated; 0ms collecting garbage
Compiler

Compiled 1 389 to 326 computations (76.5% saved)

prune110.0ms (2.9%)

Memory
-26.2MiB live, 78.0MiB allocated; 14ms collecting garbage
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New90292
Fresh000
Picked101
Done000
Total91293
Accuracy
99.0%
Counts
93 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.5%
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
85.6%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
Compiler

Compiled 24 to 20 computations (16.7% saved)

series16.0ms (0.4%)

Memory
16.3MiB live, 16.3MiB allocated; 0ms collecting garbage
Counts
8 → 28
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64)))
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x
(log.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log 2)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- 1/2 y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (log 2)))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (+ (log 2) (* x (- 1/2 y)))))
#s(approx x #s(hole binary64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* x (- (/ (log (+ 1 (exp x))) x) y))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* x (- 1/2 y))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* x (- (+ 1/2 (/ (log 2) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log (+ 1 (exp x))) (* -1 (* x y)))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (+ (log 2) (* 1/2 x))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))))
#s(approx (- 1/2 y) #s(hole binary64 1/2))
#s(approx (- 1/2 y) #s(hole binary64 (+ 1/2 (* -1 y))))
#s(approx y #s(hole binary64 y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* y (- (/ (log (+ 1 (exp x))) y) x))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* -1 (* x y))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))))
#s(approx (- 1/2 y) #s(hole binary64 (* -1 y)))
#s(approx (- 1/2 y) #s(hole binary64 (* y (- (* 1/2 (/ 1 y)) 1))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))))
#s(approx (- 1/2 y) #s(hole binary64 (* -1 (* y (- 1 (* 1/2 (/ 1 y)))))))
Calls

6 calls:

TimeVariablePointExpression
3.0ms
x
@0
((- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log 2)) (- 1/2 y) 1/2 y x (log 2) 2)
3.0ms
y
@0
((- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log 2)) (- 1/2 y) 1/2 y x (log 2) 2)
3.0ms
x
@-inf
((- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log 2)) (- 1/2 y) 1/2 y x (log 2) 2)
2.0ms
y
@-inf
((- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log 2)) (- 1/2 y) 1/2 y x (log 2) 2)
2.0ms
x
@inf
((- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log 2)) (- 1/2 y) 1/2 y x (log 2) 2)

rewrite139.0ms (3.6%)

Memory
-28.4MiB live, 65.1MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0114491
0116463
1624456
05434411
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
36 → 68
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64)))
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x
(log.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log 2)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- 1/2 y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (log 2)))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (+ (log 2) (* x (- 1/2 y)))))
#s(approx x #s(hole binary64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* x (- (/ (log (+ 1 (exp x))) x) y))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* x (- 1/2 y))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* x (- (+ 1/2 (/ (log 2) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (+ (log (+ 1 (exp x))) (* -1 (* x y)))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (+ (log 2) (* 1/2 x))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))))
#s(approx (- 1/2 y) #s(hole binary64 1/2))
#s(approx (- 1/2 y) #s(hole binary64 (+ 1/2 (* -1 y))))
#s(approx y #s(hole binary64 y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* y (- (/ (log (+ 1 (exp x))) y) x))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* -1 (* x y))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))))
#s(approx (- 1/2 y) #s(hole binary64 (* -1 y)))
#s(approx (- 1/2 y) #s(hole binary64 (* y (- (* 1/2 (/ 1 y)) 1))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(hole binary64 (* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) #s(hole binary64 (* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))))
#s(approx (- 1/2 y) #s(hole binary64 (* -1 (* y (- 1 (* 1/2 (/ 1 y)))))))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
(/.f64 (-.f64 (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 3 binary64)) (pow.f64 (*.f64 (neg.f64 x) (-.f64 #s(literal 1/2 binary64) y)) #s(literal 3 binary64))) (fma.f64 (log.f64 #s(literal 1/2 binary64)) (log.f64 #s(literal 1/2 binary64)) (+.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)) (*.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (neg.f64 x) (-.f64 #s(literal 1/2 binary64) y))))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))) (neg.f64 (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)))) (neg.f64 (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))))
(/.f64 (neg.f64 (+.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 3 binary64)) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (log.f64 #s(literal 2 binary64)) (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)) (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)))))
(/.f64 (neg.f64 (+.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 3 binary64)) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64))) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64))))
(/.f64 (-.f64 (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64))) (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
(/.f64 (+.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 3 binary64)) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 3 binary64))) (fma.f64 (log.f64 #s(literal 2 binary64)) (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)) (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64))))
(/.f64 (+.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 3 binary64)) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64))) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64)))
(fma.f64 x (-.f64 #s(literal 1/2 binary64) y) (log.f64 #s(literal 2 binary64)))
(-.f64 (/.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64)))) (/.f64 (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64)))))
(-.f64 (/.f64 (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))) (/.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)) (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))))
(-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (neg.f64 x) (-.f64 #s(literal 1/2 binary64) y)))
(+.f64 (/.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 3 binary64)) (fma.f64 (log.f64 #s(literal 2 binary64)) (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)) (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)))) (/.f64 (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 3 binary64)) (fma.f64 (log.f64 #s(literal 2 binary64)) (-.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)) (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 2 binary64)))))
(+.f64 (/.f64 (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 3 binary64)) (fma.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64))) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))) (/.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 3 binary64)) (fma.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64))) (pow.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))))
(+.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log.f64 #s(literal 2 binary64)))
(+.f64 (log.f64 #s(literal 2 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
(/.f64 (-.f64 (*.f64 y y) #s(literal 1/4 binary64)) (-.f64 (neg.f64 y) #s(literal 1/2 binary64)))
(/.f64 (neg.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y))) (neg.f64 (+.f64 #s(literal 1/2 binary64) y)))
(/.f64 (neg.f64 (-.f64 #s(literal 1/8 binary64) (pow.f64 y #s(literal 3 binary64)))) (neg.f64 (fma.f64 y (+.f64 #s(literal 1/2 binary64) y) #s(literal 1/4 binary64))))
(/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y))
(/.f64 (-.f64 #s(literal 1/8 binary64) (pow.f64 y #s(literal 3 binary64))) (fma.f64 y y (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal -1/2 binary64) y))))
(/.f64 (-.f64 #s(literal 1/8 binary64) (pow.f64 y #s(literal 3 binary64))) (fma.f64 y (+.f64 #s(literal 1/2 binary64) y) #s(literal 1/4 binary64)))
(fma.f64 #s(literal -1 binary64) y #s(literal 1/2 binary64))
(fma.f64 y #s(literal -1 binary64) #s(literal 1/2 binary64))
(-.f64 (/.f64 #s(literal 1/4 binary64) (+.f64 #s(literal 1/2 binary64) y)) (/.f64 (*.f64 y y) (+.f64 #s(literal 1/2 binary64) y)))
(-.f64 (/.f64 #s(literal 1/8 binary64) (fma.f64 y (+.f64 #s(literal 1/2 binary64) y) #s(literal 1/4 binary64))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 y (+.f64 #s(literal 1/2 binary64) y) #s(literal 1/4 binary64))))
(-.f64 (neg.f64 y) #s(literal -1/2 binary64))
(-.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 y) #s(literal -1 binary64)))
(-.f64 #s(literal 1/2 binary64) y)
(+.f64 (/.f64 #s(literal 1/8 binary64) (fma.f64 y (+.f64 #s(literal 1/2 binary64) y) #s(literal 1/4 binary64))) (/.f64 (pow.f64 (neg.f64 y) #s(literal 3 binary64)) (fma.f64 y (+.f64 #s(literal 1/2 binary64) y) #s(literal 1/4 binary64))))
(+.f64 (neg.f64 y) #s(literal 1/2 binary64))
(+.f64 #s(literal 1/2 binary64) (neg.f64 y))
#s(literal 1/2 binary64)
y
x
(log.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 #s(literal 2 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log.f64 #s(literal 2 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x (-.f64 #s(literal 1/2 binary64) y)) x (log.f64 #s(literal 2 binary64))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (log.f64 #s(literal 2 binary64)))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
#s(approx x x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (*.f64 (-.f64 (-.f64 (/.f64 (log.f64 #s(literal 2 binary64)) x) #s(literal -1/2 binary64)) y) x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) (+.f64 (/.f64 (log1p.f64 (exp.f64 x)) (neg.f64 x)) y)))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (*.f64 (neg.f64 x) (neg.f64 (-.f64 (-.f64 (/.f64 (log.f64 #s(literal 2 binary64)) x) #s(literal -1/2 binary64)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (fma.f64 #s(literal 1/2 binary64) x (log.f64 #s(literal 2 binary64))))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (fma.f64 (neg.f64 y) x (fma.f64 #s(literal 1/2 binary64) x (log.f64 #s(literal 2 binary64)))))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(approx (- 1/2 y) (-.f64 #s(literal 1/2 binary64) y))
#s(approx y y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (*.f64 (neg.f64 x) y))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (*.f64 (-.f64 (/.f64 (fma.f64 #s(literal 1/2 binary64) x (log.f64 #s(literal 2 binary64))) y) x) y))
#s(approx (- 1/2 y) (neg.f64 y))
#s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (+.f64 (/.f64 (log1p.f64 (exp.f64 x)) (neg.f64 y)) x) (neg.f64 y)))
#s(approx (+ (* (- 1/2 y) x) (log 2)) (*.f64 (-.f64 x (/.f64 (fma.f64 #s(literal 1/2 binary64) x (log.f64 #s(literal 2 binary64))) y)) (neg.f64 y)))
#s(approx (- 1/2 y) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) y)) (neg.f64 y)))

eval7.0ms (0.2%)

Memory
7.4MiB live, 7.4MiB allocated; 0ms collecting garbage
Compiler

Compiled 1 705 to 256 computations (85% saved)

prune57.0ms (1.5%)

Memory
-4.6MiB live, 42.7MiB allocated; 2ms collecting garbage
Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New67067
Fresh011
Picked011
Done000
Total67269
Accuracy
99.0%
Counts
69 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.5%
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
85.6%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
Compiler

Compiled 24 to 20 computations (16.7% saved)

series19.0ms (0.5%)

Memory
21.4MiB live, 21.4MiB allocated; 0ms collecting garbage
Counts
6 → 24
Calls
Call 1
Inputs
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
(neg.f64 y)
y
x
(log1p.f64 (exp.f64 x))
(exp.f64 x)
Outputs
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (log 2)))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* -1 y))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))))
#s(approx x #s(hole binary64 x))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log 2)))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* 1/2 x))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* 1/8 x))))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))))
#s(approx (exp x) #s(hole binary64 1))
#s(approx (exp x) #s(hole binary64 (+ 1 x)))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* 1/2 x))))))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* -1 (* x y))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (exp x) #s(hole binary64 (exp x)))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log (+ 1 (exp x))) (* -1 (* x y)))))
#s(approx (neg y) #s(hole binary64 (* -1 y)))
#s(approx y #s(hole binary64 y))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))))
Calls

6 calls:

TimeVariablePointExpression
7.0ms
x
@inf
((+ (* (neg y) x) (log (+ 1 (exp x)))) (neg y) y x (log (+ 1 (exp x))) (exp x))
7.0ms
x
@-inf
((+ (* (neg y) x) (log (+ 1 (exp x)))) (neg y) y x (log (+ 1 (exp x))) (exp x))
2.0ms
y
@0
((+ (* (neg y) x) (log (+ 1 (exp x)))) (neg y) y x (log (+ 1 (exp x))) (exp x))
1.0ms
y
@-inf
((+ (* (neg y) x) (log (+ 1 (exp x)))) (neg y) y x (log (+ 1 (exp x))) (exp x))
1.0ms
y
@inf
((+ (* (neg y) x) (log (+ 1 (exp x)))) (neg y) y x (log (+ 1 (exp x))) (exp x))

rewrite136.0ms (3.5%)

Memory
7.2MiB live, 104.4MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
097327
0101314
1595307
05247290
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
30 → 71
Calls
Call 1
Inputs
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
(neg.f64 y)
y
x
(log1p.f64 (exp.f64 x))
(exp.f64 x)
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (log 2)))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* -1 y))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))))
#s(approx x #s(hole binary64 x))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log 2)))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* 1/2 x))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* 1/8 x))))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))))
#s(approx (exp x) #s(hole binary64 1))
#s(approx (exp x) #s(hole binary64 (+ 1 x)))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* 1/2 x))))))
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* -1 (* x y))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))))
#s(approx (log (+ 1 (exp x))) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (exp x) #s(hole binary64 (exp x)))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (log (+ 1 (exp x)))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (+ (log (+ 1 (exp x))) (* -1 (* x y)))))
#s(approx (neg y) #s(hole binary64 (* -1 y)))
#s(approx y #s(hole binary64 y))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) #s(hole binary64 (* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))))
Outputs
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 x y) #s(literal 3 binary64))) (+.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (fma.f64 (*.f64 y y) (*.f64 x x) (*.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))) (neg.f64 (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)))) (neg.f64 (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y))))
(/.f64 (neg.f64 (fma.f64 (pow.f64 (*.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (log1p.f64 (exp.f64 x)) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y)) (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)))))
(/.f64 (neg.f64 (fma.f64 (pow.f64 (*.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (*.f64 (neg.f64 y) x) (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64))) (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x))))
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64))) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y)))
(/.f64 (fma.f64 (pow.f64 (*.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64))) (fma.f64 (log1p.f64 (exp.f64 x)) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y)) (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64))))
(/.f64 (fma.f64 (pow.f64 (*.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64))) (fma.f64 (*.f64 (neg.f64 y) x) (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64))))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(fma.f64 (*.f64 x y) #s(literal -1 binary64) (log1p.f64 (exp.f64 x)))
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
(fma.f64 #s(literal -1 binary64) (*.f64 x y) (log1p.f64 (exp.f64 x)))
(fma.f64 x (neg.f64 y) (log1p.f64 (exp.f64 x)))
(fma.f64 y (neg.f64 x) (log1p.f64 (exp.f64 x)))
(-.f64 (/.f64 (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)) (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x)))) (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x)))))
(-.f64 (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y))) (/.f64 (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y))))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 (*.f64 (neg.f64 y) x) #s(literal -1 binary64)))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 (neg.f64 x) (neg.f64 y)))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y))
(+.f64 (/.f64 (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 3 binary64)) (fma.f64 (log1p.f64 (exp.f64 x)) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y)) (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)))) (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (fma.f64 (log1p.f64 (exp.f64 x)) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 x y)) (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 2 binary64)))))
(+.f64 (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (fma.f64 (*.f64 (neg.f64 y) x) (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))) (/.f64 (pow.f64 (*.f64 (neg.f64 y) x) #s(literal 3 binary64)) (fma.f64 (*.f64 (neg.f64 y) x) (-.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))))
(+.f64 (*.f64 (neg.f64 y) x) (log1p.f64 (exp.f64 x)))
(+.f64 (log1p.f64 (exp.f64 x)) (*.f64 (neg.f64 y) x))
(*.f64 #s(literal -1 binary64) y)
(*.f64 y #s(literal -1 binary64))
(neg.f64 y)
y
x
(log1p.f64 (exp.f64 x))
(-.f64 (log.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) (log.f64 (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(-.f64 (log1p.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64))) (log1p.f64 (*.f64 (exp.f64 x) (expm1.f64 x))))
(log.f64 (-.f64 (exp.f64 x) #s(literal -1 binary64)))
(*.f64 (exp.f64 x) #s(literal 1 binary64))
(*.f64 #s(literal 1 binary64) (exp.f64 x))
(/.f64 (*.f64 #s(literal 2 binary64) (exp.f64 x)) #s(literal 2 binary64))
(/.f64 (-.f64 (*.f64 (cosh.f64 x) (cosh.f64 x)) (*.f64 (sinh.f64 x) (sinh.f64 x))) (-.f64 (cosh.f64 x) (sinh.f64 x)))
(/.f64 (+.f64 (pow.f64 (cosh.f64 x) #s(literal 3 binary64)) (pow.f64 (sinh.f64 x) #s(literal 3 binary64))) (fma.f64 (cosh.f64 x) (cosh.f64 x) (-.f64 (*.f64 (sinh.f64 x) (sinh.f64 x)) (*.f64 (cosh.f64 x) (sinh.f64 x)))))
(neg.f64 (*.f64 #s(literal -1 binary64) (exp.f64 x)))
(fma.f64 (cosh.f64 x) #s(literal 1 binary64) (*.f64 (sinh.f64 x) #s(literal 1 binary64)))
(fma.f64 #s(literal 1 binary64) (cosh.f64 x) (*.f64 #s(literal 1 binary64) (sinh.f64 x)))
(exp.f64 (+.f64 #s(literal 0 binary64) x))
(exp.f64 x)
(+.f64 (*.f64 (cosh.f64 x) #s(literal 1 binary64)) (*.f64 (sinh.f64 x) #s(literal 1 binary64)))
(+.f64 (*.f64 #s(literal 1 binary64) (cosh.f64 x)) (*.f64 #s(literal 1 binary64) (sinh.f64 x)))
(+.f64 (sinh.f64 x) (cosh.f64 x))
(+.f64 (cosh.f64 x) (sinh.f64 x))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (log.f64 #s(literal 2 binary64)))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log.f64 #s(literal 2 binary64))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x (-.f64 #s(literal 1/2 binary64) y)) x (log.f64 #s(literal 2 binary64))))
#s(approx x x)
#s(approx (log (+ 1 (exp x))) (log.f64 #s(literal 2 binary64)))
#s(approx (log (+ 1 (exp x))) (fma.f64 #s(literal 1/2 binary64) x (log.f64 #s(literal 2 binary64))))
#s(approx (log (+ 1 (exp x))) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log.f64 #s(literal 2 binary64))))
#s(approx (log (+ 1 (exp x))) (fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x #s(literal 1/2 binary64)) x (log.f64 #s(literal 2 binary64))))
#s(approx (exp x) #s(literal 1 binary64))
#s(approx (exp x) (-.f64 x #s(literal -1 binary64)))
#s(approx (exp x) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64)))
#s(approx (exp x) (fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 1 binary64)))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (*.f64 (neg.f64 y) x))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x))
#s(approx (log (+ 1 (exp x))) (log1p.f64 (exp.f64 x)))
#s(approx (exp x) (exp.f64 x))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (*.f64 (neg.f64 x) (-.f64 y (/.f64 (log1p.f64 (exp.f64 x)) x))))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (log1p.f64 (exp.f64 x)))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x))))
#s(approx (neg y) (neg.f64 y))
#s(approx y y)
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y))
#s(approx (+ (* (neg y) x) (log (+ 1 (exp x)))) (*.f64 (-.f64 x (/.f64 (log1p.f64 (exp.f64 x)) y)) (neg.f64 y)))

eval9.0ms (0.2%)

Memory
-34.6MiB live, 12.0MiB allocated; 2ms collecting garbage
Compiler

Compiled 1 149 to 237 computations (79.4% saved)

prune35.0ms (0.9%)

Memory
42.1MiB live, 42.1MiB allocated; 0ms collecting garbage
Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New73073
Fresh000
Picked011
Done011
Total73275
Accuracy
99.0%
Counts
75 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.5%
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
85.6%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
Compiler

Compiled 57 to 43 computations (24.6% saved)

regimes6.0ms (0.2%)

Memory
-38.0MiB live, 8.6MiB allocated; 2ms collecting garbage
Accuracy

Total -8.6b remaining (-884.2%)

Threshold costs -8.6b (-884.2%)

Counts
3 → 1
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log.f64 #s(literal 2 binary64))))
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Outputs
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
Calls

3 calls:

3.0ms
y
1.0ms
x
1.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
98.5%1(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
98.5%1x
98.5%1y
Compiler

Compiled 11 to 12 computations (-9.1% saved)

simplify9.0ms (0.2%)

Memory
11.4MiB live, 11.4MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
067
1117
2127
Stop Event
saturated
Calls
Call 1
Inputs
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
Outputs
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))

derivations16.0ms (0.4%)

Memory
4.7MiB live, 4.7MiB allocated; 0ms collecting garbage
Stop Event
done
Compiler

Compiled 7 to 6 computations (14.3% saved)

preprocess19.0ms (0.5%)

Memory
17.2MiB live, 17.2MiB allocated; 0ms collecting garbage
Compiler

Compiled 84 to 64 computations (23.8% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage

Profiling

Loading profile data...