Rust f64::asinh

Time bar (total: 5.4s)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated; 0ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 4 to 4 computations (0% saved)

sample944.0ms (17.4%)

Memory
7.9MiB live, 949.1MiB allocated; 209ms collecting garbage
Samples
724.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 298.0ms
ival-asinh: 287.0ms (96.2% of total)
ival-true: 5.0ms (1.7% of total)
ival-assert: 3.0ms (1% of total)
adjust: 2.0ms (0.7% of total)
Bogosity

explain426.0ms (7.9%)

Memory
-13.5MiB live, 455.9MiB allocated; 138ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1240-0-(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))
740-0-(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))
00-0-#s(literal 1 binary64)
00-0-(fabs.f64 x)
00-0-(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
00-0-(*.f64 x x)
00-0-(+.f64 (*.f64 x x) #s(literal 1 binary64))
00-0-(+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
log.f64(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))sensitivity1240
sqrt.f64(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))oflow-rescue740
(*.f64 x x)overflow74
(+.f64 (*.f64 x x) #s(literal 1 binary64))overflow74
Confusion
Predicted +Predicted -
+1980
-058
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+19800
-0058
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
058
1198
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
207.0ms122×2valid
73.0ms126×1valid
25.0ms264×0valid
Compiler

Compiled 114 to 31 computations (72.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 284.0ms
ival-hypot: 140.0ms (49.4% of total)
ival-log: 66.0ms (23.3% of total)
ival-fabs: 43.0ms (15.2% of total)
adjust: 11.0ms (3.9% of total)
ival-add: 10.0ms (3.5% of total)
ival-copysign: 7.0ms (2.5% of total)
ival-mult: 4.0ms (1.4% of total)
ival-true: 1.0ms (0.4% of total)
ival-assert: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess466.0ms (8.6%)

Memory
-10.0MiB live, 455.8MiB allocated; 88ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
0912
01612
12412
24512
38512
414412
535112
6240112
7591612
081739
Stop Event
iter limit
node limit
iter limit
saturated
Calls
Call 1
Inputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
Outputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
(copysign.f64 (log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x))) x)
Compiler

Compiled 12 to 9 computations (25% saved)

eval0.0ms (0%)

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

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
1.4MiB live, 1.4MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
26.9%
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
Compiler

Compiled 12 to 9 computations (25% saved)

simplify636.0ms (11.7%)

Memory
23.0MiB live, 594.6MiB allocated; 116ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))
cost-diff0
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
cost-diff1
(+.f64 (*.f64 x x) #s(literal 1 binary64))
cost-diff2
(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0949
01649
12449
24549
38549
414449
535149
6240149
7591649
0817336
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))
(+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))
(fabs.f64 x)
x
(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))
(+.f64 (*.f64 x x) #s(literal 1 binary64))
(*.f64 x x)
#s(literal 1 binary64)
Outputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
(copysign.f64 (log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x))) x)
(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))
(log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x)))
(+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))
(+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x))
(fabs.f64 x)
x
(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))
(hypot.f64 #s(literal -1 binary64) x)
(+.f64 (*.f64 x x) #s(literal 1 binary64))
(fma.f64 x x #s(literal 1 binary64))
(*.f64 x x)
#s(literal 1 binary64)

localize96.0ms (1.8%)

Memory
-1.6MiB live, 146.4MiB allocated; 28ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x x)
accuracy0.0
(fabs.f64 x)
accuracy17.194049659108188
(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))
accuracy28.845661152317806
(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))
Samples
51.0ms61×2valid
20.0ms63×1valid
15.0ms132×0valid
Compiler

Compiled 51 to 11 computations (78.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 73.0ms
ival-hypot: 30.0ms (41.3% of total)
ival-log: 21.0ms (28.9% of total)
adjust: 11.0ms (15.1% of total)
ival-copysign: 4.0ms (5.5% of total)
ival-add: 4.0ms (5.5% of total)
ival-fabs: 2.0ms (2.8% of total)
ival-mult: 2.0ms (2.8% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series5.0ms (0.1%)

Memory
7.9MiB live, 7.9MiB allocated; 0ms collecting garbage
Counts
6 → 29
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))
(+.f64 (*.f64 x x) #s(literal 1 binary64))
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))
(fabs.f64 x)
(*.f64 x x)
Outputs
1
(+ 1 (* 1/2 (pow x 2)))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(+ 1 (pow x 2))
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(log (+ 1 (fabs x)))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fabs x)
(pow x 2)
x
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(* (pow x 2) (+ 1 (/ 1 (pow x 2))))
(* -1 (log (/ 1 x)))
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
(* -1 (log (/ -1 x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@0
((sqrt (+ (* x x) 1)) (+ (* x x) 1) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (fabs x) (* x x))
1.0ms
x
@-inf
((sqrt (+ (* x x) 1)) (+ (* x x) 1) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (fabs x) (* x x))
1.0ms
x
@inf
((sqrt (+ (* x x) 1)) (+ (* x x) 1) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (fabs x) (* x x))

simplify169.0ms (3.1%)

Memory
-1.0MiB live, 226.2MiB allocated; 45ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0133447
1432413
21835406
08586372
Stop Event
iter limit
node limit
Counts
29 → 28
Calls
Call 1
Inputs
1
(+ 1 (* 1/2 (pow x 2)))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(+ 1 (pow x 2))
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(log (+ 1 (fabs x)))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fabs x)
(pow x 2)
x
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(* (pow x 2) (+ 1 (/ 1 (pow x 2))))
(* -1 (log (/ 1 x)))
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
(* -1 (log (/ -1 x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
Outputs
1
#s(literal 1 binary64)
(+ 1 (* 1/2 (pow x 2)))
(fma.f64 (*.f64 x x) #s(literal 1/2 binary64) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(fma.f64 (fma.f64 #s(literal -1/8 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(fma.f64 (fma.f64 (-.f64 (*.f64 #s(literal 1/16 binary64) (*.f64 x x)) #s(literal 1/8 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (pow x 2))
(fma.f64 x x #s(literal 1 binary64))
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(copysign.f64 (log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x))) x)
(log (+ 1 (fabs x)))
(log1p.f64 (fabs.f64 x))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) x) x (log1p.f64 (fabs.f64 x)))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/24 binary64) (*.f64 x x)) (/.f64 (+.f64 (/.f64 #s(literal 3 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 3 binary64)) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 x x) (log1p.f64 (fabs.f64 x)))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/720 binary64) (*.f64 x x)) (-.f64 (/.f64 (+.f64 (/.f64 #s(literal 30 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 45 binary64)) (pow.f64 (-.f64 (fabs.f64 x) #s(literal -1 binary64)) #s(literal 2 binary64))) (/.f64 #s(literal -45 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 (/.f64 (+.f64 (/.f64 #s(literal 3 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 3 binary64)) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal -1/24 binary64))) (*.f64 x x) (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 x x) (log1p.f64 (fabs.f64 x)))
(fabs x)
(fabs.f64 x)
(pow x 2)
(*.f64 x x)
x
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(fma.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(fma.f64 (-.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal -1/2 binary64) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* (pow x 2) (+ 1 (/ 1 (pow x 2))))
(fma.f64 x x #s(literal 1 binary64))
(* -1 (log (/ 1 x)))
(log.f64 x)
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+.f64 (/.f64 (fabs.f64 x) x) (log.f64 x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+.f64 (+.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 1/2 binary64)) (/.f64 (fabs.f64 x) x)) (log.f64 x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
(-.f64 (+.f64 (log.f64 x) (/.f64 (fma.f64 #s(literal 1/6 binary64) (fma.f64 (fabs.f64 x) #s(literal 2 binary64) (/.f64 (*.f64 #s(literal -3 binary64) (/.f64 (fabs.f64 x) x)) x)) (fabs.f64 x)) x)) (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal 1/2 binary64)))
(* -1 x)
(neg.f64 x)
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(*.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) x)
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(neg.f64 (fma.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x))
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
(neg.f64 (fma.f64 (-.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal -1/2 binary64) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x))
(* -1 (log (/ -1 x)))
(neg.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(-.f64 (/.f64 (fabs.f64 x) (neg.f64 x)) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(fma.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (/.f64 (fabs.f64 x) x)) #s(literal -1 binary64) (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 1/2 binary64)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
(-.f64 (/.f64 (-.f64 (/.f64 (fma.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal -1/2 binary64) (*.f64 (/.f64 (*.f64 (fabs.f64 x) (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -3 binary64))) x) #s(literal -1/6 binary64))) x) (fabs.f64 x)) x) (log.f64 (/.f64 #s(literal -1 binary64) x)))

rewrite137.0ms (2.5%)

Memory
-25.5MiB live, 196.7MiB allocated; 15ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0938
01629
15621
040120
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
6 → 136
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))
(+.f64 (*.f64 x x) #s(literal 1 binary64))
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
(log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64)))))
(fabs.f64 x)
(*.f64 x x)
Outputs
(*.f64 (pow.f64 (fma.f64 x x #s(literal 1 binary64)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 x x #s(literal 1 binary64)) #s(literal 1/4 binary64)))
(pow.f64 (fma.f64 x x #s(literal 1 binary64)) #s(literal 1/2 binary64))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64))) (sqrt.f64 (fma.f64 x x #s(literal -1 binary64))))
(/.f64 (hypot.f64 #s(literal -1 binary64) (pow.f64 x #s(literal 3 binary64))) (sqrt.f64 (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64)) (*.f64 x x))))
(/.f64 (+.f64 (exp.f64 (asinh.f64 x)) (exp.f64 (neg.f64 (asinh.f64 x)))) #s(literal 2 binary64))
(cosh.f64 (neg.f64 (asinh.f64 x)))
(cosh.f64 (asinh.f64 (neg.f64 x)))
(cosh.f64 (asinh.f64 x))
(cosh.f64 (asinh.f64 (fabs.f64 x)))
(sqrt.f64 (fma.f64 x x #s(literal 1 binary64)))
(hypot.f64 (*.f64 (neg.f64 x) #s(literal 1 binary64)) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 (*.f64 (neg.f64 x) #s(literal 1 binary64)) #s(literal -1 binary64))
(hypot.f64 (*.f64 (neg.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))
(hypot.f64 (*.f64 (fabs.f64 x) #s(literal 1 binary64)) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 (*.f64 (fabs.f64 x) #s(literal 1 binary64)) #s(literal -1 binary64))
(hypot.f64 (*.f64 (fabs.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))
(hypot.f64 (*.f64 x #s(literal 1 binary64)) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 (*.f64 x #s(literal 1 binary64)) #s(literal -1 binary64))
(hypot.f64 (*.f64 x #s(literal 1 binary64)) #s(literal 1 binary64))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (*.f64 (neg.f64 x) #s(literal 1 binary64)))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (*.f64 (fabs.f64 x) #s(literal 1 binary64)))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (*.f64 x #s(literal 1 binary64)))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (neg.f64 (neg.f64 x)))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (fabs.f64 x))
(hypot.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) x)
(hypot.f64 (neg.f64 (fabs.f64 x)) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 (neg.f64 (fabs.f64 x)) #s(literal -1 binary64))
(hypot.f64 (neg.f64 (fabs.f64 x)) #s(literal 1 binary64))
(hypot.f64 #s(literal -1 binary64) (*.f64 (neg.f64 x) #s(literal 1 binary64)))
(hypot.f64 #s(literal -1 binary64) (*.f64 (fabs.f64 x) #s(literal 1 binary64)))
(hypot.f64 #s(literal -1 binary64) (*.f64 x #s(literal 1 binary64)))
(hypot.f64 #s(literal -1 binary64) (neg.f64 (fabs.f64 x)))
(hypot.f64 #s(literal -1 binary64) (neg.f64 (neg.f64 x)))
(hypot.f64 #s(literal -1 binary64) (neg.f64 x))
(hypot.f64 #s(literal -1 binary64) (fabs.f64 x))
(hypot.f64 #s(literal -1 binary64) x)
(hypot.f64 (neg.f64 (neg.f64 x)) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 (neg.f64 (neg.f64 x)) #s(literal -1 binary64))
(hypot.f64 (neg.f64 (neg.f64 x)) #s(literal 1 binary64))
(hypot.f64 (neg.f64 x) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 (neg.f64 x) #s(literal -1 binary64))
(hypot.f64 (neg.f64 x) #s(literal 1 binary64))
(hypot.f64 (fabs.f64 x) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 (fabs.f64 x) #s(literal -1 binary64))
(hypot.f64 (fabs.f64 x) #s(literal 1 binary64))
(hypot.f64 #s(literal 1 binary64) (*.f64 (neg.f64 x) #s(literal 1 binary64)))
(hypot.f64 #s(literal 1 binary64) (*.f64 (fabs.f64 x) #s(literal 1 binary64)))
(hypot.f64 #s(literal 1 binary64) (*.f64 x #s(literal 1 binary64)))
(hypot.f64 #s(literal 1 binary64) (neg.f64 (fabs.f64 x)))
(hypot.f64 #s(literal 1 binary64) (neg.f64 (neg.f64 x)))
(hypot.f64 #s(literal 1 binary64) (neg.f64 x))
(hypot.f64 #s(literal 1 binary64) (fabs.f64 x))
(hypot.f64 #s(literal 1 binary64) x)
(hypot.f64 x (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)))
(hypot.f64 x #s(literal -1 binary64))
(hypot.f64 x #s(literal 1 binary64))
(exp.f64 (*.f64 (log1p.f64 (*.f64 x x)) #s(literal 1/2 binary64)))
(*.f64 (neg.f64 (hypot.f64 #s(literal -1 binary64) x)) (neg.f64 (hypot.f64 #s(literal -1 binary64) x)))
(*.f64 (fabs.f64 (hypot.f64 #s(literal -1 binary64) x)) (fabs.f64 (hypot.f64 #s(literal -1 binary64) x)))
(*.f64 (hypot.f64 #s(literal -1 binary64) x) (hypot.f64 #s(literal -1 binary64) x))
(pow.f64 (*.f64 (fma.f64 x x #s(literal 1 binary64)) (fma.f64 x x #s(literal 1 binary64))) #s(literal 1/2 binary64))
(pow.f64 (hypot.f64 #s(literal -1 binary64) x) #s(literal 2 binary64))
(pow.f64 (fma.f64 x x #s(literal 1 binary64)) #s(literal 1 binary64))
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 4 binary64))) (-.f64 #s(literal 1 binary64) (*.f64 x x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64))) (neg.f64 (fma.f64 x x #s(literal -1 binary64))))
(/.f64 (neg.f64 (+.f64 (pow.f64 x #s(literal 6 binary64)) #s(literal 1 binary64))) (neg.f64 (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64)) (*.f64 x x))))
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64)) (fma.f64 x x #s(literal -1 binary64)))
(/.f64 (+.f64 (pow.f64 x #s(literal 6 binary64)) #s(literal 1 binary64)) (+.f64 #s(literal 1 binary64) (-.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 x x))))
(/.f64 (+.f64 (pow.f64 x #s(literal 6 binary64)) #s(literal 1 binary64)) (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64)) (*.f64 x x)))
(fma.f64 (*.f64 (neg.f64 x) #s(literal 1 binary64)) (*.f64 (neg.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))
(fma.f64 (*.f64 (fabs.f64 x) #s(literal 1 binary64)) (*.f64 (fabs.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))
(fma.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x #s(literal 1 binary64)) #s(literal 1 binary64))
(fma.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (*.f64 x x))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) #s(literal 1 binary64))
(fma.f64 #s(literal -1 binary64) #s(literal -1 binary64) (*.f64 x x))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) #s(literal 1 binary64))
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))
(fma.f64 (neg.f64 x) (neg.f64 x) #s(literal 1 binary64))
(fma.f64 #s(literal 2 binary64) #s(literal 1/2 binary64) (*.f64 x x))
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))
(fma.f64 (fabs.f64 x) (fabs.f64 x) #s(literal 1 binary64))
(fma.f64 #s(literal 1 binary64) #s(literal 1 binary64) (*.f64 x x))
(fma.f64 #s(literal 1 binary64) (*.f64 x x) #s(literal 1 binary64))
(fma.f64 (*.f64 x x) #s(literal 1 binary64) #s(literal 1 binary64))
(fma.f64 x (*.f64 x #s(literal 1 binary64)) #s(literal 1 binary64))
(fma.f64 x x #s(literal 1 binary64))
(sqrt.f64 (*.f64 (fma.f64 x x #s(literal 1 binary64)) (fma.f64 x x #s(literal 1 binary64))))
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 x x #s(literal -1 binary64))) (/.f64 #s(literal 1 binary64) (fma.f64 x x #s(literal -1 binary64))))
(-.f64 #s(literal 1 binary64) (*.f64 (neg.f64 (neg.f64 x)) (neg.f64 x)))
(-.f64 #s(literal 1 binary64) (*.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x)))
(-.f64 #s(literal 1 binary64) (*.f64 (neg.f64 x) x))
(-.f64 #s(literal 1 binary64) (*.f64 x (neg.f64 x)))
(-.f64 (*.f64 x x) #s(literal -1 binary64))
(+.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64)) (*.f64 x x))) (/.f64 #s(literal 1 binary64) (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64)) (*.f64 x x))))
(+.f64 #s(literal 1 binary64) (*.f64 x x))
(+.f64 (*.f64 x x) #s(literal 1 binary64))
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(asinh.f64 (fabs.f64 x))
(-.f64 (log.f64 (-.f64 (*.f64 x x) (fma.f64 x x #s(literal 1 binary64)))) (log.f64 (-.f64 (fabs.f64 x) (hypot.f64 #s(literal -1 binary64) x))))
(-.f64 (log.f64 (+.f64 (pow.f64 (hypot.f64 #s(literal -1 binary64) x) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (log.f64 (fma.f64 (hypot.f64 #s(literal -1 binary64) x) (-.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x)) (*.f64 x x))))
(log.f64 (+.f64 (fabs.f64 x) (hypot.f64 #s(literal -1 binary64) x)))
(*.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x)))
(*.f64 (sqrt.f64 (fabs.f64 x)) (sqrt.f64 (fabs.f64 x)))
(*.f64 (sqrt.f64 x) (sqrt.f64 x))
(pow.f64 (*.f64 x x) #s(literal 1/2 binary64))
(pow.f64 x #s(literal 1 binary64))
(sqrt.f64 (*.f64 x x))
(fabs.f64 (neg.f64 (neg.f64 x)))
(fabs.f64 (neg.f64 x))
(fabs.f64 (fabs.f64 x))
(fabs.f64 x)
(*.f64 (*.f64 (neg.f64 x) #s(literal 1 binary64)) (*.f64 (neg.f64 x) #s(literal 1 binary64)))
(*.f64 (*.f64 (fabs.f64 x) #s(literal 1 binary64)) (*.f64 (fabs.f64 x) #s(literal 1 binary64)))
(*.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 1 binary64)))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 1 binary64)))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 #s(literal 1 binary64) (*.f64 x x))
(*.f64 (*.f64 x x) #s(literal 1 binary64))
(*.f64 x (*.f64 x #s(literal 1 binary64)))
(*.f64 x x)
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(neg.f64 (*.f64 x (neg.f64 x)))
(sqrt.f64 (pow.f64 x #s(literal 4 binary64)))
(fabs.f64 (*.f64 (neg.f64 x) x))
(fabs.f64 (*.f64 x (neg.f64 x)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))

eval41.0ms (0.8%)

Memory
5.1MiB live, 51.8MiB allocated; 3ms collecting garbage
Compiler

Compiled 2 572 to 855 computations (66.8% saved)

prune4.0ms (0.1%)

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

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1594163
Fresh000
Picked101
Done000
Total1604164
Accuracy
100.0%
Counts
164 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
25.3%
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) x)
30.6%
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
99.8%
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
8.6%
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
Compiler

Compiled 56 to 40 computations (28.6% saved)

simplify457.0ms (8.4%)

Memory
26.9MiB live, 288.8MiB allocated; 78ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 14 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
cost-diff0
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))))
cost-diff0
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) x)
cost-diff3
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
cost-diff0
(fabs.f64 x)
cost-diff0
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
cost-diff0
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))))
cost-diff0
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
cost-diff0
(fabs.f64 x)
cost-diff0
(asinh.f64 (fabs.f64 x))
cost-diff0
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
cost-diff0
(log.f64 x)
cost-diff0
#s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x))
cost-diff0
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
027189
043189
160189
2112174
3256174
4875174
54933174
08815144
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
#s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x))
(log.f64 x)
x
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(asinh.f64 (fabs.f64 x))
(fabs.f64 x)
x
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(fabs.f64 x)
x
#s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))
(neg.f64 x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
(fabs.f64 x)
x
#s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(/.f64 #s(literal 1/2 binary64) (*.f64 x x))
#s(literal 1/2 binary64)
(*.f64 x x)
Outputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
#s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x))
(log.f64 x)
x
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(asinh.f64 (fabs.f64 x))
(fabs.f64 x)
x
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
(copysign.f64 (log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))))
(log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(+.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x))
(fabs.f64 x)
x
#s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))
(neg.f64 x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) x)
(copysign.f64 (log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))) (fabs.f64 x))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))))
(log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))) (fabs.f64 x)))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
(+.f64 #s(approx (sqrt (+ (* x x) 1)) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))) (fabs.f64 x))
(fabs.f64 x)
x
#s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))
#s(approx (sqrt (+ (* x x) 1)) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(-.f64 x (/.f64 #s(literal -1/2 binary64) x))
(/.f64 #s(literal 1/2 binary64) (*.f64 x x))
#s(literal 1/2 binary64)
(*.f64 x x)

localize116.0ms (2.1%)

Memory
-34.1MiB live, 118.3MiB allocated; 24ms collecting garbage
Localize:

Found 14 expressions of interest:

NewMetricScoreProgram
accuracy0.18375934436379113
(/.f64 #s(literal 1/2 binary64) (*.f64 x x))
accuracy6.308581012680917
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
accuracy14.481152307837027
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))))
accuracy14.70836579695391
#s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))
accuracy0.0
(neg.f64 x)
accuracy0.0
(fabs.f64 x)
accuracy14.481152307837027
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))))
accuracy30.053164296643505
#s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))
accuracy0.0
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
accuracy0.0
(fabs.f64 x)
accuracy0.05078125
(asinh.f64 (fabs.f64 x))
accuracy0.0
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
accuracy0.0
(log.f64 x)
accuracy25.402643417575142
#s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x))
Samples
35.0ms37×1valid
28.0ms134×0invalid
16.0ms25×2valid
9.0ms60×0valid
Compiler

Compiled 138 to 18 computations (87% saved)

Precisions
Click to see histograms. Total time spent on operations: 50.0ms
ival-log: 14.0ms (27.9% of total)
ival-neg: 8.0ms (15.9% of total)
ival-hypot: 7.0ms (13.9% of total)
ival-copysign: 5.0ms (10% of total)
ival-mult: 4.0ms (8% of total)
adjust: 3.0ms (6% of total)
ival-add: 3.0ms (6% of total)
ival-div: 2.0ms (4% of total)
ival-asinh: 2.0ms (4% of total)
ival-fabs: 2.0ms (4% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series290.0ms (5.3%)

Memory
-18.9MiB live, 228.8MiB allocated; 57ms collecting garbage
Counts
17 → 43
Calls
Call 1
Inputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
#s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x))
(log.f64 x)
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(asinh.f64 (fabs.f64 x))
(fabs.f64 x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
#s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))
(neg.f64 x)
#s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))
(/.f64 #s(literal 1/2 binary64) (*.f64 x x))
Outputs
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(log (+ 1 (fabs x)))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(log x)
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow (fabs x) 2))))) x)
(log (+ (fabs x) (sqrt (+ 1 (pow (fabs x) 2)))))
(fabs x)
(+ 1 (fabs x))
(+ 1 (+ (fabs x) (* 1/2 (pow x 2))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))))
(/ 1/2 x)
(/ (+ 1/2 (pow x 2)) x)
1
(+ 1 (* 1/2 (pow x 2)))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(* -1 x)
(/ 1/2 (pow x 2))
(* -1 (log (/ 1 x)))
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
x
(* x (+ 1 (/ (fabs x) x)))
(* x (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))))
(* x (- (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))) (* 1/8 (/ 1 (pow x 4)))))
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(* -1 (log (/ -1 x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
(+ (log -1) (* -1 (log (/ -1 x))))
(* -1 (* x (+ 1 (* -1 (/ (fabs x) x)))))
(* -1 (* x (+ 1 (* -1 (/ (- (fabs x) (* 1/2 (/ 1 x))) x)))))
(* -1 (* x (+ 1 (* -1 (/ (+ (fabs x) (* -1 (/ (- 1/2 (* 1/8 (/ 1 (pow x 2)))) x))) x)))))
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
Calls

3 calls:

TimeVariablePointExpression
194.0ms
x
@-inf
((copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log x) (copysign (asinh (fabs x)) x) (asinh (fabs x)) (fabs x) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (+ (* (/ 1/2 (* x x)) x) x) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1)) (neg x) (sqrt (+ (* x x) 1)) (/ 1/2 (* x x)))
68.0ms
x
@0
((copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log x) (copysign (asinh (fabs x)) x) (asinh (fabs x)) (fabs x) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (+ (* (/ 1/2 (* x x)) x) x) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1)) (neg x) (sqrt (+ (* x x) 1)) (/ 1/2 (* x x)))
26.0ms
x
@inf
((copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log x) (copysign (asinh (fabs x)) x) (asinh (fabs x)) (fabs x) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (+ (* (/ 1/2 (* x x)) x) x) (copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1)) (neg x) (sqrt (+ (* x x) 1)) (/ 1/2 (* x x)))

simplify203.0ms (3.7%)

Memory
13.1MiB live, 247.3MiB allocated; 17ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0178619
1576591
22397558
08245512
Stop Event
iter limit
node limit
Counts
43 → 42
Calls
Call 1
Inputs
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(log (+ 1 (fabs x)))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(log x)
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow (fabs x) 2))))) x)
(log (+ (fabs x) (sqrt (+ 1 (pow (fabs x) 2)))))
(fabs x)
(+ 1 (fabs x))
(+ 1 (+ (fabs x) (* 1/2 (pow x 2))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))))
(/ 1/2 x)
(/ (+ 1/2 (pow x 2)) x)
1
(+ 1 (* 1/2 (pow x 2)))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(* -1 x)
(/ 1/2 (pow x 2))
(* -1 (log (/ 1 x)))
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
x
(* x (+ 1 (/ (fabs x) x)))
(* x (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))))
(* x (- (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))) (* 1/8 (/ 1 (pow x 4)))))
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(* -1 (log (/ -1 x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
(+ (log -1) (* -1 (log (/ -1 x))))
(* -1 (* x (+ 1 (* -1 (/ (fabs x) x)))))
(* -1 (* x (+ 1 (* -1 (/ (- (fabs x) (* 1/2 (/ 1 x))) x)))))
(* -1 (* x (+ 1 (* -1 (/ (+ (fabs x) (* -1 (/ (- 1/2 (* 1/8 (/ 1 (pow x 2)))) x))) x)))))
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
Outputs
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(copysign.f64 (log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x))) x)
(log (+ 1 (fabs x)))
(log1p.f64 (fabs.f64 x))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) x) x (log1p.f64 (fabs.f64 x)))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/24 binary64) (*.f64 x x)) (/.f64 (+.f64 (/.f64 #s(literal 3 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 3 binary64)) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 x x) (log1p.f64 (fabs.f64 x)))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/720 binary64) (*.f64 x x)) (+.f64 (/.f64 (+.f64 (/.f64 #s(literal 30 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 45 binary64)) (pow.f64 (-.f64 (fabs.f64 x) #s(literal -1 binary64)) #s(literal 2 binary64))) (/.f64 #s(literal 45 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 (/.f64 (+.f64 (/.f64 #s(literal 3 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 3 binary64)) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal -1/24 binary64))) (*.f64 x x) (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 x x) (log1p.f64 (fabs.f64 x)))
(log x)
(log.f64 x)
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow (fabs x) 2))))) x)
(copysign.f64 (log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x))) x)
(log (+ (fabs x) (sqrt (+ 1 (pow (fabs x) 2)))))
(log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x)))
(fabs x)
(fabs.f64 x)
(+ 1 (fabs x))
(-.f64 (fabs.f64 x) #s(literal -1 binary64))
(+ 1 (+ (fabs x) (* 1/2 (pow x 2))))
(fma.f64 #s(literal 1/2 binary64) (*.f64 x x) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))))
(fma.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal -1/8 binary64) (fma.f64 #s(literal 1/2 binary64) (*.f64 x x) (-.f64 (fabs.f64 x) #s(literal -1 binary64))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))))
(fma.f64 (*.f64 (fma.f64 (fma.f64 #s(literal 1/16 binary64) (*.f64 x x) #s(literal -1/8 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x) x (-.f64 (fabs.f64 x) #s(literal -1 binary64)))
(/ 1/2 x)
(/.f64 #s(literal 1/2 binary64) x)
(/ (+ 1/2 (pow x 2)) x)
(-.f64 x (/.f64 #s(literal -1/2 binary64) x))
1
#s(literal 1 binary64)
(+ 1 (* 1/2 (pow x 2)))
(fma.f64 #s(literal 1/2 binary64) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(fma.f64 (fma.f64 #s(literal -1/8 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/16 binary64) (*.f64 x x) #s(literal -1/8 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(* -1 x)
(neg.f64 x)
(/ 1/2 (pow x 2))
(/.f64 #s(literal 1/2 binary64) (*.f64 x x))
(* -1 (log (/ 1 x)))
(log.f64 x)
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+.f64 (/.f64 (fabs.f64 x) x) (log.f64 x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+.f64 (+.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) #s(literal -1/2 binary64)) (log.f64 x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
(+.f64 (fma.f64 (/.f64 (*.f64 (fabs.f64 x) (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -3 binary64))) (pow.f64 x #s(literal 3 binary64))) #s(literal 1/6 binary64) (log.f64 x)) (+.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) #s(literal -1/2 binary64)))
x
(* x (+ 1 (/ (fabs x) x)))
(fma.f64 (/.f64 (fabs.f64 x) x) x x)
(* x (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))))
(fma.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) x x)
(* x (- (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))) (* 1/8 (/ 1 (pow x 4)))))
(fma.f64 (-.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(fma.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(fma.f64 (-.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal -1/2 binary64) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* -1 (log (/ -1 x)))
(neg.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(-.f64 (/.f64 (fabs.f64 x) (neg.f64 x)) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(-.f64 (/.f64 (-.f64 (fma.f64 #s(literal -1/2 binary64) x (/.f64 #s(literal 1/2 binary64) x)) (fabs.f64 x)) x) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
(-.f64 (/.f64 (-.f64 (/.f64 (fma.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal -1/2 binary64) (*.f64 (/.f64 (*.f64 (fabs.f64 x) (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -3 binary64))) x) #s(literal -1/6 binary64))) x) (fabs.f64 x)) x) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (log -1) (* -1 (log (/ -1 x))))
(-.f64 (log.f64 #s(literal -1 binary64)) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(* -1 (* x (+ 1 (* -1 (/ (fabs x) x)))))
(*.f64 (+.f64 (/.f64 (fabs.f64 x) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (* -1 (/ (- (fabs x) (* 1/2 (/ 1 x))) x)))))
(*.f64 (+.f64 (/.f64 (-.f64 (fabs.f64 x) (/.f64 #s(literal 1/2 binary64) x)) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (* -1 (/ (+ (fabs x) (* -1 (/ (- 1/2 (* 1/8 (/ 1 (pow x 2)))) x))) x)))))
(*.f64 (+.f64 (/.f64 (-.f64 (fabs.f64 x) (/.f64 (-.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1/8 binary64) (*.f64 x x))) x)) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(*.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) x)
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(*.f64 (+.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x)
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
(*.f64 (+.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) (-.f64 (/.f64 #s(literal -1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))))) x)

rewrite157.0ms (2.9%)

Memory
22.2MiB live, 67.0MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
027177
043139
1131139
0849139
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
17 → 83
Calls
Call 1
Inputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
#s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x))
(log.f64 x)
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(asinh.f64 (fabs.f64 x))
(fabs.f64 x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
#s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))
(neg.f64 x)
#s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))
(/.f64 #s(literal 1/2 binary64) (*.f64 x x))
Outputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
#s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x))
(log.f64 x)
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(asinh.f64 (fabs.f64 x))
(-.f64 (log.f64 (-.f64 (*.f64 x x) (fma.f64 x x #s(literal 1 binary64)))) (log.f64 (-.f64 (fabs.f64 x) (hypot.f64 #s(literal -1 binary64) x))))
(-.f64 (log.f64 (+.f64 (pow.f64 (hypot.f64 #s(literal -1 binary64) x) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (log.f64 (fma.f64 (hypot.f64 #s(literal -1 binary64) x) (-.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x)) (*.f64 x x))))
(log.f64 (+.f64 (fabs.f64 x) (hypot.f64 #s(literal -1 binary64) x)))
(*.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x)))
(*.f64 (sqrt.f64 (fabs.f64 x)) (sqrt.f64 (fabs.f64 x)))
(*.f64 (sqrt.f64 x) (sqrt.f64 x))
(pow.f64 (*.f64 x x) #s(literal 1/2 binary64))
(pow.f64 x #s(literal 1 binary64))
(sqrt.f64 (*.f64 x x))
(fabs.f64 (neg.f64 (neg.f64 x)))
(fabs.f64 (neg.f64 x))
(fabs.f64 (fabs.f64 x))
(fabs.f64 x)
(copysign.f64 (log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x))) x)
(-.f64 (log.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 2 binary64)))) (log.f64 (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))))
(-.f64 (log.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (log.f64 (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)) (*.f64 x x))))
(log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)))
(/.f64 (-.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 2 binary64)) (*.f64 x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)))
(/.f64 (neg.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 2 binary64)))) (neg.f64 (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))))
(/.f64 (neg.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)) (*.f64 x x))))
(/.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 2 binary64))) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))))
(/.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64))) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (-.f64 (*.f64 x x) (*.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)))))
(/.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64))) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)) (*.f64 x x)))
(fma.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x)) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(fma.f64 (sqrt.f64 (fabs.f64 x)) (sqrt.f64 (fabs.f64 x)) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(-.f64 (/.f64 (*.f64 x x) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) (/.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 2 binary64)) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))))
(+.f64 (/.f64 (pow.f64 (fabs.f64 x) #s(literal 3 binary64)) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)) (*.f64 x x))) (/.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) #s(literal 3 binary64)) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x)) (*.f64 x x))))
(+.f64 #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)) (fabs.f64 x))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) x)
(*.f64 x (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)))
(/.f64 (-.f64 (*.f64 x x) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64))) (-.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64)) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) x)))
(/.f64 (neg.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 x (-.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x)) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64)) (*.f64 x x)) (-.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) x))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 3 binary64))) (fma.f64 x x (-.f64 (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64)) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) x))))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 3 binary64))) (fma.f64 x (-.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x)) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64))))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (neg.f64 x)) (/.f64 x (neg.f64 x)) x)
(fma.f64 (/.f64 #s(literal 1/2 binary64) (fabs.f64 x)) (/.f64 x (fabs.f64 x)) x)
(fma.f64 (/.f64 #s(literal 1/2 binary64) x) (/.f64 x x) x)
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(fma.f64 #s(literal 1/2 binary64) (/.f64 x (*.f64 x x)) x)
(fma.f64 x (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x)
(-.f64 (/.f64 (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64)) (-.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) x)))
(-.f64 x (*.f64 (neg.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x))
(-.f64 x (*.f64 (neg.f64 x) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))))
(+.f64 (/.f64 (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x)) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64)))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x)) (pow.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) #s(literal 2 binary64)))))
(+.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x) x)
(+.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x))
(copysign.f64 (log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x))) x)
(-.f64 (log.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 2 binary64)))) (log.f64 (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))))
(-.f64 (log.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (log.f64 (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)) (*.f64 x x))))
(log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)))
(/.f64 (-.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 2 binary64)) (*.f64 x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)))
(/.f64 (neg.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 2 binary64)))) (neg.f64 (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))))
(/.f64 (neg.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)) (*.f64 x x))))
(/.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 2 binary64))) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))))
(/.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64))) (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 2 binary64)) (-.f64 (*.f64 x x) (*.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)))))
(/.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64))) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)) (*.f64 x x)))
(fma.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x)) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
(fma.f64 (sqrt.f64 (fabs.f64 x)) (sqrt.f64 (fabs.f64 x)) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
(-.f64 (/.f64 (*.f64 x x) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) (/.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 2 binary64)) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))))
(+.f64 (/.f64 (pow.f64 (fabs.f64 x) #s(literal 3 binary64)) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)) (*.f64 x x))) (/.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) #s(literal 3 binary64)) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x)) (*.f64 x x))))
(+.f64 #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)) (fabs.f64 x))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))
#s(approx (sqrt (+ (* x x) 1)) (neg.f64 x))
(neg.f64 x)
#s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x))
(/.f64 (/.f64 #s(literal 1/2 binary64) (neg.f64 x)) (neg.f64 x))
(/.f64 (/.f64 #s(literal 1/2 binary64) (fabs.f64 x)) (fabs.f64 x))
(/.f64 (neg.f64 (/.f64 #s(literal 1/2 binary64) x)) (neg.f64 x))
(/.f64 (/.f64 #s(literal 1/2 binary64) x) x)
(/.f64 #s(literal -1/2 binary64) (*.f64 (neg.f64 x) x))
(/.f64 #s(literal 1/2 binary64) (*.f64 x x))
(neg.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)))
(neg.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 x) x)))

eval33.0ms (0.6%)

Memory
-9.3MiB live, 43.8MiB allocated; 10ms collecting garbage
Compiler

Compiled 3 866 to 693 computations (82.1% saved)

prune5.0ms (0.1%)

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

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New1451146
Fresh000
Picked134
Done000
Total1464150
Accuracy
100.0%
Counts
150 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
30.6%
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
25.5%
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
99.8%
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
8.6%
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
Compiler

Compiled 63 to 44 computations (30.2% saved)

simplify498.0ms (9.2%)

Memory
-27.6MiB live, 395.6MiB allocated; 166ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(fabs.f64 x)
cost-diff0
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
cost-diff0
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))))
cost-diff0
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
018128
024128
140128
292108
3235108
4854108
54895108
0878496
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(fabs.f64 x)
x
#s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))
#s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))
(-.f64 x (/.f64 #s(literal -1/2 binary64) x))
(/.f64 #s(literal -1/2 binary64) x)
#s(literal -1/2 binary64)
Outputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
(copysign.f64 (log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))))
(log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(+.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x))
(fabs.f64 x)
x
#s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))
#s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))
(-.f64 x (/.f64 #s(literal -1/2 binary64) x))
(/.f64 #s(literal -1/2 binary64) x)
#s(literal -1/2 binary64)

localize152.0ms (2.8%)

Memory
23.0MiB live, 167.4MiB allocated; 25ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(fabs.f64 x)
accuracy0.0
#s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))
accuracy28.845661152317806
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))))
accuracy47.93844509656609
#s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))
Samples
54.0ms132×0valid
48.0ms63×1valid
38.0ms61×2valid
Compiler

Compiled 60 to 17 computations (71.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 126.0ms
ival-div: 43.0ms (34.3% of total)
adjust: 33.0ms (26.3% of total)
ival-log: 21.0ms (16.7% of total)
ival-hypot: 10.0ms (8% of total)
ival-mult: 5.0ms (4% of total)
ival-copysign: 4.0ms (3.2% of total)
ival-add: 4.0ms (3.2% of total)
ival-sub: 2.0ms (1.6% of total)
ival-fabs: 2.0ms (1.6% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series2.0ms (0%)

Memory
6.5MiB live, 6.5MiB allocated; 0ms collecting garbage
Counts
6 → 38
Calls
Call 1
Inputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(fabs.f64 x)
#s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))
#s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))
Outputs
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(log (+ 1 (fabs x)))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ 1 (fabs x))
(+ 1 (+ (fabs x) (* 1/2 (pow x 2))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))))
(fabs x)
1
(+ 1 (* 1/2 (pow x 2)))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(/ 1/2 x)
(/ (+ 1/2 (pow x 2)) x)
(* -1 (log (/ 1 x)))
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
x
(* x (+ 1 (/ (fabs x) x)))
(* x (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))))
(* x (- (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))) (* 1/8 (/ 1 (pow x 4)))))
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(* -1 (log (/ -1 x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
(* -1 x)
(* -1 (* x (+ 1 (* -1 (/ (fabs x) x)))))
(* -1 (* x (+ 1 (* -1 (/ (- (fabs x) (* 1/2 (/ 1 x))) x)))))
(* -1 (* x (+ 1 (* -1 (/ (+ (fabs x) (* -1 (/ (- 1/2 (* 1/8 (/ 1 (pow x 2)))) x))) x)))))
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
((copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (fabs x) (sqrt (+ (* x x) 1)) (+ (* (/ 1/2 (* x x)) x) x))
0.0ms
x
@-inf
((copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (fabs x) (sqrt (+ (* x x) 1)) (+ (* (/ 1/2 (* x x)) x) x))
0.0ms
x
@inf
((copysign (log (+ (fabs x) (sqrt (+ (* x x) 1)))) x) (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (+ (fabs x) (sqrt (+ (* x x) 1))) (fabs x) (sqrt (+ (* x x) 1)) (+ (* (/ 1/2 (* x x)) x) x))

simplify156.0ms (2.9%)

Memory
20.3MiB live, 209.5MiB allocated; 17ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0170583
1564555
22374522
08337482
Stop Event
iter limit
node limit
Counts
38 → 37
Calls
Call 1
Inputs
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(log (+ 1 (fabs x)))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(+ 1 (fabs x))
(+ 1 (+ (fabs x) (* 1/2 (pow x 2))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))))
(fabs x)
1
(+ 1 (* 1/2 (pow x 2)))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(/ 1/2 x)
(/ (+ 1/2 (pow x 2)) x)
(* -1 (log (/ 1 x)))
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
x
(* x (+ 1 (/ (fabs x) x)))
(* x (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))))
(* x (- (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))) (* 1/8 (/ 1 (pow x 4)))))
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(* -1 (log (/ -1 x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
(* -1 x)
(* -1 (* x (+ 1 (* -1 (/ (fabs x) x)))))
(* -1 (* x (+ 1 (* -1 (/ (- (fabs x) (* 1/2 (/ 1 x))) x)))))
(* -1 (* x (+ 1 (* -1 (/ (+ (fabs x) (* -1 (/ (- 1/2 (* 1/8 (/ 1 (pow x 2)))) x))) x)))))
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
Outputs
(copysign (log (+ (fabs x) (sqrt (+ 1 (pow x 2))))) x)
(copysign.f64 (log.f64 (+.f64 (hypot.f64 #s(literal -1 binary64) x) (fabs.f64 x))) x)
(log (+ 1 (fabs x)))
(log1p.f64 (fabs.f64 x))
(+ (log (+ 1 (fabs x))) (* 1/2 (/ (pow x 2) (+ 1 (fabs x)))))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) x) x (log1p.f64 (fabs.f64 x)))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* -1/24 (* (pow x 2) (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2)))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/24 binary64) (*.f64 x x)) (/.f64 (+.f64 (/.f64 #s(literal 3 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 3 binary64)) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 x x) (log1p.f64 (fabs.f64 x)))
(+ (log (+ 1 (fabs x))) (* (pow x 2) (+ (* (pow x 2) (+ (* -1/24 (+ (* 3 (/ 1 (+ 1 (fabs x)))) (* 3 (/ 1 (pow (+ 1 (fabs x)) 2))))) (* 1/720 (* (pow x 2) (+ (* 45 (/ 1 (+ 1 (fabs x)))) (+ (* 45 (/ 1 (pow (+ 1 (fabs x)) 2))) (* 30 (/ 1 (pow (+ 1 (fabs x)) 3))))))))) (* 1/2 (/ 1 (+ 1 (fabs x)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/720 binary64) (*.f64 x x)) (+.f64 (/.f64 (+.f64 (/.f64 #s(literal 30 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 45 binary64)) (pow.f64 (-.f64 (fabs.f64 x) #s(literal -1 binary64)) #s(literal 2 binary64))) (/.f64 #s(literal 45 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 (/.f64 (+.f64 (/.f64 #s(literal 3 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal 3 binary64)) (-.f64 (fabs.f64 x) #s(literal -1 binary64))) #s(literal -1/24 binary64))) (*.f64 x x) (/.f64 #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))) (*.f64 x x) (log1p.f64 (fabs.f64 x)))
(+ 1 (fabs x))
(-.f64 (fabs.f64 x) #s(literal -1 binary64))
(+ 1 (+ (fabs x) (* 1/2 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 1/2 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64)))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))))
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) x (fma.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal -1/8 binary64) (-.f64 (fabs.f64 x) #s(literal -1 binary64))))
(+ 1 (+ (fabs x) (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))))
(fma.f64 (*.f64 (fma.f64 (fma.f64 #s(literal 1/16 binary64) (*.f64 x x) #s(literal -1/8 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x) x (-.f64 (fabs.f64 x) #s(literal -1 binary64)))
(fabs x)
(fabs.f64 x)
1
#s(literal 1 binary64)
(+ 1 (* 1/2 (pow x 2)))
(fma.f64 (*.f64 x x) #s(literal 1/2 binary64) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2)))))
(fma.f64 (fma.f64 #s(literal -1/8 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8)))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/16 binary64) (*.f64 x x) #s(literal -1/8 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(/ 1/2 x)
(/.f64 #s(literal 1/2 binary64) x)
(/ (+ 1/2 (pow x 2)) x)
(-.f64 x (/.f64 #s(literal -1/2 binary64) x))
(* -1 (log (/ 1 x)))
(log.f64 x)
(+ (* -1 (log (/ 1 x))) (/ (fabs x) x))
(+.f64 (/.f64 (fabs.f64 x) x) (log.f64 x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x)))
(+.f64 (+.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) #s(literal -1/2 binary64)) (log.f64 x))
(+ (* -1 (log (/ 1 x))) (+ (* 1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) (pow x 3))) (+ (* 1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) (pow x 2))) (/ (fabs x) x))))
(+.f64 (fma.f64 (/.f64 (*.f64 (fabs.f64 x) (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -3 binary64))) (pow.f64 x #s(literal 3 binary64))) #s(literal 1/6 binary64) (log.f64 x)) (+.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) #s(literal -1/2 binary64)))
x
(* x (+ 1 (/ (fabs x) x)))
(fma.f64 (/.f64 (fabs.f64 x) x) x x)
(* x (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))))
(fma.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) x x)
(* x (- (+ 1 (+ (/ 1/2 (pow x 2)) (/ (fabs x) x))) (* 1/8 (/ 1 (pow x 4)))))
(fma.f64 (-.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) (fabs.f64 x)) x) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))
(fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))
(fma.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))
(fma.f64 (-.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal -1/2 binary64) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x x)
(* -1 (log (/ -1 x)))
(neg.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (fabs x) x)))
(-.f64 (/.f64 (fabs.f64 x) (neg.f64 x)) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1/2 (/ (+ 1 (* -1 (pow (fabs x) 2))) x))) x)))
(-.f64 (/.f64 (-.f64 (fma.f64 #s(literal -1/2 binary64) x (/.f64 #s(literal 1/2 binary64) x)) (fabs.f64 x)) x) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(+ (* -1 (log (/ -1 x))) (* -1 (/ (+ (fabs x) (* -1 (/ (+ (* -1/6 (/ (+ (* -3 (fabs x)) (* 2 (pow (fabs x) 3))) x)) (* 1/2 (+ 1 (* -1 (pow (fabs x) 2))))) x))) x)))
(-.f64 (/.f64 (-.f64 (/.f64 (fma.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal -1/2 binary64) (*.f64 (/.f64 (*.f64 (fabs.f64 x) (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -3 binary64))) x) #s(literal -1/6 binary64))) x) (fabs.f64 x)) x) (log.f64 (/.f64 #s(literal -1 binary64) x)))
(* -1 x)
(neg.f64 x)
(* -1 (* x (+ 1 (* -1 (/ (fabs x) x)))))
(*.f64 (+.f64 (/.f64 (fabs.f64 x) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (* -1 (/ (- (fabs x) (* 1/2 (/ 1 x))) x)))))
(*.f64 (+.f64 (/.f64 (-.f64 (fabs.f64 x) (/.f64 #s(literal 1/2 binary64) x)) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (* -1 (/ (+ (fabs x) (* -1 (/ (- 1/2 (* 1/8 (/ 1 (pow x 2)))) x))) x)))))
(*.f64 (+.f64 (/.f64 (-.f64 (fabs.f64 x) (/.f64 (-.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1/8 binary64) (*.f64 x x))) x)) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2))))))
(*.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) x)
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))))
(*.f64 (+.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x)
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))))
(*.f64 (+.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) (-.f64 (/.f64 #s(literal -1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))))) x)

rewrite65.0ms (1.2%)

Memory
-4.8MiB live, 88.3MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
018118
024106
197106
0722101
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
6 → 29
Calls
Call 1
Inputs
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
(log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(fabs.f64 x)
#s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))
#s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))
Outputs
(copysign.f64 (log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x))) x)
(-.f64 (log.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 2 binary64)))) (log.f64 (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))))
(-.f64 (log.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (log.f64 (fma.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (-.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)) (*.f64 x x))))
(log.f64 (+.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)))
(/.f64 (-.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 2 binary64)) (*.f64 x x)) (-.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)))
(/.f64 (neg.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 2 binary64)))) (neg.f64 (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))))
(/.f64 (neg.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (-.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)) (*.f64 x x))))
(/.f64 (-.f64 (*.f64 x x) (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 2 binary64))) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))))
(/.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64))) (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 2 binary64)) (-.f64 (*.f64 x x) (*.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)))))
(/.f64 (+.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 3 binary64)) (pow.f64 (fabs.f64 x) #s(literal 3 binary64))) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (-.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)) (*.f64 x x)))
(fma.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x)) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(fma.f64 (sqrt.f64 (fabs.f64 x)) (sqrt.f64 (fabs.f64 x)) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(-.f64 (/.f64 (*.f64 x x) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) (/.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 2 binary64)) (-.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))))
(+.f64 (/.f64 (pow.f64 (fabs.f64 x) #s(literal 3 binary64)) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (-.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)) (*.f64 x x))) (/.f64 (pow.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) #s(literal 3 binary64)) (fma.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (-.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x)) (*.f64 x x))))
(+.f64 #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))) (fabs.f64 x))
(+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))
(*.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x)))
(*.f64 (sqrt.f64 (fabs.f64 x)) (sqrt.f64 (fabs.f64 x)))
(*.f64 (sqrt.f64 x) (sqrt.f64 x))
(pow.f64 (*.f64 x x) #s(literal 1/2 binary64))
(pow.f64 x #s(literal 1 binary64))
(sqrt.f64 (*.f64 x x))
(fabs.f64 (neg.f64 (neg.f64 x)))
(fabs.f64 (neg.f64 x))
(fabs.f64 (fabs.f64 x))
(fabs.f64 x)
#s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x))))
#s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))

eval11.0ms (0.2%)

Memory
-22.9MiB live, 24.0MiB allocated; 2ms collecting garbage
Compiler

Compiled 2 327 to 360 computations (84.5% saved)

prune4.0ms (0.1%)

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

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New65065
Fresh000
Picked011
Done033
Total65469
Accuracy
100.0%
Counts
69 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
30.6%
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
25.5%
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
99.8%
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
8.6%
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
Compiler

Compiled 159 to 89 computations (44% saved)

regimes5.0ms (0.1%)

Memory
12.4MiB live, 12.4MiB allocated; 0ms collecting garbage
Counts
6 → 1
Calls
Call 1
Inputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (neg.f64 x)))) x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) #s(approx (+ (* (/ 1/2 (* x x)) x) x) (-.f64 x (/.f64 #s(literal -1/2 binary64) x)))))) x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) #s(approx (sqrt (+ (* x x) 1)) (fma.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) x x)))) x)
Outputs
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
Calls

2 calls:

2.0ms
x
2.0ms
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
Results
AccuracySegmentsBranch
99.8%1(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
99.8%1x
Compiler

Compiled 13 to 10 computations (23.1% saved)

regimes2.0ms (0%)

Memory
6.8MiB live, 6.8MiB allocated; 0ms collecting garbage
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

Counts
1 → 1
Calls
Call 1
Inputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
Outputs
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
Calls

2 calls:

1.0ms
x
1.0ms
(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
Results
AccuracySegmentsBranch
8.6%1(copysign.f64 (log.f64 (+.f64 (fabs.f64 x) (sqrt.f64 (+.f64 (*.f64 x x) #s(literal 1 binary64))))) x)
8.6%1x
Compiler

Compiled 13 to 10 computations (23.1% saved)

simplify54.0ms (1%)

Memory
-30.0MiB live, 67.1MiB allocated; 7ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01420
12420
25120
38620
415520
540120
6310120
7741320
Stop Event
node limit
Calls
Call 1
Inputs
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)
Outputs
(copysign.f64 (asinh.f64 (fabs.f64 x)) x)
(copysign.f64 #s(approx (log (+ (fabs x) (sqrt (+ (* x x) 1)))) (log.f64 x)) x)

derivations257.0ms (4.7%)

Memory
9.2MiB live, 202.7MiB allocated; 67ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0133447
1432413
21835406
08586372
0938
01629
15621
040120
Stop Event
done
iter limit
iter limit
iter limit
unsound
iter limit
iter limit
node limit
Compiler

Compiled 20 to 14 computations (30% saved)

preprocess36.0ms (0.7%)

Memory
2.9MiB live, 50.4MiB allocated; 2ms collecting garbage
Compiler

Compiled 104 to 66 computations (36.5% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...