Rust f32::acosh

Time bar (total: 2.7s)

start0.0ms (0%)

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

analyze0.0ms (0%)

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

Compiled 6 to 5 computations (16.7% saved)

sample752.0ms (27.4%)

Memory
25.9MiB live, 836.2MiB allocated; 161ms collecting garbage
Samples
516.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 298.0ms
ival-acosh: 155.0ms (52% of total)
ival->=: 130.0ms (43.6% of total)
exact: 8.0ms (2.7% of total)
ival-assert: 4.0ms (1.3% of total)
adjust: 2.0ms (0.7% of total)
Bogosity

explain136.0ms (5%)

Memory
-10.1MiB live, 179.6MiB allocated; 37ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1150-0-(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))
10-0-(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
00-0-(-.f32 (*.f32 x x) #s(literal 1 binary32))
00-0-(*.f32 x x)
00-0-#s(literal 1 binary32)
00-0-(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
sqrt.f32(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))oflow-rescue1150
(*.f32 x x)overflow115
(-.f32 (*.f32 x x) #s(literal 1 binary32))overflow115
log.f32(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))oflow-rescue10
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))overflow1
(*.f32 x x)overflow115
(-.f32 (*.f32 x x) #s(literal 1 binary32))overflow115
Confusion
Predicted +Predicted -
+1150
-0141
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+11500
-00141
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0141
1114
21
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
30.0ms512×0valid
Compiler

Compiled 79 to 25 computations (68.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 18.0ms
ival-log: 5.0ms (27.1% of total)
ival-mult: 4.0ms (21.7% of total)
ival-sub: 3.0ms (16.3% of total)
ival-sqrt: 3.0ms (16.3% of total)
ival-add: 2.0ms (10.8% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess169.0ms (6.2%)

Memory
26.3MiB live, 160.2MiB allocated; 45ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
079
0129
1229
2499
31219
43839
523359
678899
080198
Stop Event
iter limit
node limit
iter limit
saturated
Calls
Call 1
Inputs
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
Outputs
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
(log.f32 (+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x))
Compiler

Compiled 9 to 7 computations (22.2% saved)

eval0.0ms (0%)

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

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.0%
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
Compiler

Compiled 9 to 7 computations (22.2% saved)

simplify126.0ms (4.6%)

Memory
16.1MiB live, 102.5MiB allocated; 16ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))
cost-diff0
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
cost-diff0
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
cost-diff1
(-.f32 (*.f32 x x) #s(literal 1 binary32))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0733
01233
12233
24933
312133
438333
5233533
6788933
0801929
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
x
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))
(-.f32 (*.f32 x x) #s(literal 1 binary32))
(*.f32 x x)
#s(literal 1 binary32)
Outputs
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
(log.f32 (+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x))
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
(+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x)
x
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
(-.f32 (*.f32 x x) #s(literal 1 binary32))
(fma.f32 x x #s(literal -1 binary32))
(*.f32 x x)
#s(literal 1 binary32)

localize50.0ms (1.8%)

Memory
-7.2MiB live, 56.4MiB allocated; 16ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.01171875
(-.f32 (*.f32 x x) #s(literal 1 binary32))
accuracy0.0234375
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
accuracy0.12080521238049426
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
accuracy12.401233154171514
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))
Samples
44.0ms256×0valid
Compiler

Compiled 35 to 9 computations (74.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-log: 3.0ms (32.7% of total)
ival-mult: 2.0ms (21.8% of total)
ival-sqrt: 2.0ms (21.8% of total)
ival-add: 1.0ms (10.9% of total)
ival-sub: 1.0ms (10.9% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series10.0ms (0.4%)

Memory
-33.5MiB live, 11.5MiB allocated; 13ms collecting garbage
Counts
4 → 39
Calls
Call 1
Inputs
(-.f32 (*.f32 x x) #s(literal 1 binary32))
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))
Outputs
-1
(- (pow x 2) 1)
(log (sqrt -1))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(sqrt -1)
(+ x (sqrt -1))
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1))))
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))
(pow x 2)
(* (pow x 2) (- 1 (/ 1 (pow x 2))))
(+ (log 2) (* -1 (log (/ 1 x))))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(* 2 x)
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
x
(* x (- 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(+ (log -1/2) (log (/ -1 x)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(/ 1/2 x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
(* -1 x)
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))))
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))))
Calls

3 calls:

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

simplify272.0ms (9.9%)

Memory
29.1MiB live, 228.7MiB allocated; 165ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0150525
1470499
21771482
07736463
Stop Event
iter limit
iter limit
node limit
Counts
39 → 38
Calls
Call 1
Inputs
-1
(- (pow x 2) 1)
(log (sqrt -1))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(sqrt -1)
(+ x (sqrt -1))
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1))))
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))
(pow x 2)
(* (pow x 2) (- 1 (/ 1 (pow x 2))))
(+ (log 2) (* -1 (log (/ 1 x))))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(* 2 x)
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
x
(* x (- 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(+ (log -1/2) (log (/ -1 x)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(/ 1/2 x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
(* -1 x)
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))))
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))))
Outputs
-1
#s(literal -1 binary32)
(- (pow x 2) 1)
(fma.f32 x x #s(literal -1 binary32))
(log (sqrt -1))
(log.f32 (sqrt.f32 #s(literal -1 binary32)))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32))))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(fma.f32 (/.f32 (fma.f32 #s(literal 1/6 binary32) (*.f32 x x) #s(literal 1 binary32)) (sqrt.f32 #s(literal -1 binary32))) x (log.f32 (sqrt.f32 #s(literal -1 binary32))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(fma.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (*.f32 #s(literal 3/40 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/6 binary32) (sqrt.f32 #s(literal -1 binary32)))) (+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32)))))
(sqrt -1)
(sqrt.f32 #s(literal -1 binary32))
(+ x (sqrt -1))
(+.f32 (sqrt.f32 #s(literal -1 binary32)) x)
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(fma.f32 (fma.f32 #s(literal 1/2 binary32) (/.f32 x (sqrt.f32 #s(literal -1 binary32))) #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(fma.f32 (fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) x #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1))))
(fma.f32 (*.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) x) #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))
(fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) (*.f32 x x) (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))
(fma.f32 (pow.f32 x #s(literal 4 binary32)) (fma.f32 (*.f32 #s(literal 1/16 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/8 binary32) (sqrt.f32 #s(literal -1 binary32)))) (fma.f32 (*.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) x) #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32))))
(pow x 2)
(*.f32 x x)
(* (pow x 2) (- 1 (/ 1 (pow x 2))))
(*.f32 (*.f32 (-.f32 #s(literal 1 binary32) (/.f32 #s(literal 1 binary32) (*.f32 x x))) x) x)
(+ (log 2) (* -1 (log (/ 1 x))))
(+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32)))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 (-.f32 (/.f32 #s(literal 5/96 binary32) (*.f32 x x)) #s(literal -3/32 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(* 2 x)
(*.f32 #s(literal 2 binary32) x)
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x)
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(*.f32 (-.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x)
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(*.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal 2 binary32))) x)
x
(* x (- 1 (* 1/2 (/ 1 (pow x 2)))))
(fma.f32 (/.f32 #s(literal -1/2 binary32) (*.f32 x x)) x x)
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(fma.f32 (/.f32 x x) (/.f32 (-.f32 (/.f32 #s(literal -1/8 binary32) (*.f32 x x)) #s(literal 1/2 binary32)) x) x)
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(fma.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x x)
(+ (log -1/2) (log (/ -1 x)))
(+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x)))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(-.f32 (-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal -5/96 binary32) (pow.f32 x #s(literal 6 binary32))))
(/ 1/2 x)
(/.f32 #s(literal 1/2 binary32) x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(/.f32 (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32)) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(/.f32 (+.f32 (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) x) x) #s(literal 1/2 binary32)) x)
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
(/.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -5/128 binary32) (*.f32 x x)) #s(literal 1/16 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32))) (neg.f32 x))
(* -1 x)
(neg.f32 x)
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2))))))
(*.f32 (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32)) x)
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))))
(*.f32 (-.f32 (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32)) (/.f32 #s(literal -1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) x)
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))))
(*.f32 (+.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32))) x)

rewrite130.0ms (4.7%)

Memory
-11.2MiB live, 182.2MiB allocated; 21ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0728
01215
15315
040014
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
4 → 64
Calls
Call 1
Inputs
(-.f32 (*.f32 x x) #s(literal 1 binary32))
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))
Outputs
(expm1.f32 (*.f32 (log.f32 x) #s(literal 2 binary32)))
(*.f32 (+.f32 (neg.f32 x) #s(literal 1 binary32)) (-.f32 (neg.f32 x) #s(literal 1 binary32)))
(*.f32 (+.f32 (fabs.f32 x) #s(literal 1 binary32)) (-.f32 (fabs.f32 x) #s(literal 1 binary32)))
(*.f32 (neg.f32 (sinh.f32 (acosh.f32 x))) (neg.f32 (sinh.f32 (acosh.f32 x))))
(*.f32 (fabs.f32 (sinh.f32 (acosh.f32 x))) (fabs.f32 (sinh.f32 (acosh.f32 x))))
(*.f32 (-.f32 x #s(literal 1 binary32)) (-.f32 x #s(literal -1 binary32)))
(*.f32 (-.f32 x #s(literal -1 binary32)) (-.f32 x #s(literal 1 binary32)))
(*.f32 (sinh.f32 (acosh.f32 x)) (sinh.f32 (acosh.f32 x)))
(sqrt.f32 (*.f32 (fma.f32 x x #s(literal -1 binary32)) (fma.f32 x x #s(literal -1 binary32))))
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32))) (neg.f32 (fma.f32 x x #s(literal 1 binary32))))
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (neg.f32 (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))))
(/.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32)) (fma.f32 x x #s(literal 1 binary32)))
(/.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32)) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32))))
(-.f32 (/.f32 (pow.f32 x #s(literal 4 binary32)) (fma.f32 x x #s(literal 1 binary32))) (/.f32 #s(literal 1 binary32) (fma.f32 x x #s(literal 1 binary32))))
(-.f32 (/.f32 (pow.f32 x #s(literal 6 binary32)) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1 binary32) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))))
(-.f32 (*.f32 x x) #s(literal 1 binary32))
(fma.f32 (*.f32 (neg.f32 x) #s(literal 1 binary32)) (*.f32 (neg.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (*.f32 (fabs.f32 x) #s(literal 1 binary32)) (*.f32 (fabs.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (pow.f32 x #s(literal 1 binary32)) (pow.f32 x #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (*.f32 x #s(literal 1 binary32)) (*.f32 x #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (neg.f32 (neg.f32 x)) (neg.f32 (neg.f32 x)) #s(literal -1 binary32))
(fma.f32 (neg.f32 (fabs.f32 x)) (neg.f32 (fabs.f32 x)) #s(literal -1 binary32))
(fma.f32 (fabs.f32 (fabs.f32 x)) (fabs.f32 (fabs.f32 x)) #s(literal -1 binary32))
(fma.f32 (neg.f32 x) (*.f32 (neg.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (neg.f32 x) (neg.f32 x) #s(literal -1 binary32))
(fma.f32 (fabs.f32 x) (*.f32 (fabs.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (fabs.f32 x) (fabs.f32 x) #s(literal -1 binary32))
(fma.f32 #s(literal 1 binary32) (*.f32 x x) #s(literal -1 binary32))
(fma.f32 (*.f32 x x) #s(literal 1 binary32) #s(literal -1 binary32))
(fma.f32 x (*.f32 x #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 x x #s(literal -1 binary32))
(pow.f32 (*.f32 (fma.f32 x x #s(literal -1 binary32)) (fma.f32 x x #s(literal -1 binary32))) #s(literal 1/2 binary32))
(pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 2 binary32))
(pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1 binary32))
(+.f32 (*.f32 x x) #s(literal -1 binary32))
(acosh.f32 x)
(log.f32 (+.f32 (sinh.f32 (acosh.f32 x)) x))
(-.f32 (log.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (log.f32 (-.f32 x (sinh.f32 (acosh.f32 x)))))
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))))
(/.f32 (-.f32 (fma.f32 x x #s(literal -1 binary32)) (*.f32 x x)) (-.f32 (sinh.f32 (acosh.f32 x)) x))
(/.f32 (neg.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (neg.f32 (-.f32 x (sinh.f32 (acosh.f32 x)))))
(/.f32 (neg.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (neg.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))))
(/.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32))) (-.f32 x (sinh.f32 (acosh.f32 x))))
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (+.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 (*.f32 x x) (*.f32 (sinh.f32 (acosh.f32 x)) x))))
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))
(-.f32 (/.f32 (*.f32 x x) (-.f32 x (sinh.f32 (acosh.f32 x)))) (/.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 x (sinh.f32 (acosh.f32 x)))))
(fma.f32 (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) x)
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)
(fma.f32 (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/2 binary32)) (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/2 binary32)) x)
(+.f32 (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))) (/.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))))
(+.f32 (sinh.f32 (acosh.f32 x)) x)
(+.f32 x (sinh.f32 (acosh.f32 x)))
(*.f32 (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)))
(*.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))))
(*.f32 (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/2 binary32)) (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/2 binary32)))
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32))) (sqrt.f32 (fma.f32 x x #s(literal 1 binary32))))
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (sqrt.f32 (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))))
(/.f32 (-.f32 (exp.f32 (acosh.f32 x)) (exp.f32 (neg.f32 (acosh.f32 x)))) #s(literal 2 binary32))
(pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/2 binary32))
(exp.f32 (*.f32 (log.f32 (fma.f32 x x #s(literal -1 binary32))) #s(literal 1/2 binary32)))
(sinh.f32 (acosh.f32 (neg.f32 x)))
(sinh.f32 (acosh.f32 (fabs.f32 x)))
(sinh.f32 (acosh.f32 x))

eval19.0ms (0.7%)

Memory
-7.7MiB live, 38.4MiB allocated; 2ms collecting garbage
Compiler

Compiled 1 699 to 485 computations (71.5% saved)

prune3.0ms (0.1%)

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

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New993102
Fresh000
Picked101
Done000
Total1003103
Accuracy
100.0%
Counts
103 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.0%
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
97.7%
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
99.4%
(acosh.f32 x)
Compiler

Compiled 23 to 18 computations (21.7% saved)

simplify131.0ms (4.8%)

Memory
6.6MiB live, 149.2MiB allocated; 13ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(fma.f32 x x #s(literal -1 binary32))
cost-diff0
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
cost-diff0
(+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))))
cost-diff0
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
cost-diff0
(*.f32 #s(literal 2 binary32) x)
cost-diff0
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
cost-diff0
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
cost-diff0
(acosh.f32 x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01659
02357
13957
27557
317257
458457
5402257
0810757
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(acosh.f32 x)
x
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
(*.f32 #s(literal 2 binary32) x)
#s(literal 2 binary32)
x
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
(+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))))
x
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
(fma.f32 x x #s(literal -1 binary32))
#s(literal -1 binary32)
Outputs
(acosh.f32 x)
x
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
(*.f32 #s(literal 2 binary32) x)
#s(literal 2 binary32)
x
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
(log.f32 (+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x))
(+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))))
(+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x)
x
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
(fma.f32 x x #s(literal -1 binary32))
#s(literal -1 binary32)

localize36.0ms (1.3%)

Memory
5.3MiB live, 52.0MiB allocated; 2ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(fma.f32 x x #s(literal -1 binary32))
accuracy0.0234375
(+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))))
accuracy0.12080521238049426
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
accuracy12.401233154171514
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
accuracy0.0
(*.f32 #s(literal 2 binary32) x)
accuracy0.12080521238049426
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
accuracy0.7787850084354992
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
accuracy0.1953125
(acosh.f32 x)
Samples
28.0ms256×0valid
Compiler

Compiled 57 to 17 computations (70.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 20.0ms
ival-log: 5.0ms (24.4% of total)
ival-add: 4.0ms (19.5% of total)
ival-mult: 3.0ms (14.7% of total)
ival-sqrt: 3.0ms (14.7% of total)
ival-acosh: 3.0ms (14.7% of total)
ival-sub: 1.0ms (4.9% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series3.0ms (0.1%)

Memory
4.7MiB live, 4.7MiB allocated; 0ms collecting garbage
Counts
8 → 39
Calls
Call 1
Inputs
(acosh.f32 x)
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
(*.f32 #s(literal 2 binary32) x)
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
(+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))))
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
(fma.f32 x x #s(literal -1 binary32))
Outputs
(log (sqrt -1))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(sqrt -1)
(+ x (sqrt -1))
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(* 2 x)
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1))))
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))
-1
(- (pow x 2) 1)
(+ (log 2) (* -1 (log (/ 1 x))))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
x
(* x (- 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(pow x 2)
(* (pow x 2) (- 1 (/ 1 (pow x 2))))
(+ (log -1/2) (log (/ -1 x)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(/ 1/2 x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
(* -1 x)
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))))
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))))
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x) (log (+ x (sqrt (+ (* x x) -1)))) (+ x (sqrt (+ (* x x) -1))) (sqrt (+ (* x x) -1)) (+ (* x x) -1))
1.0ms
x
@inf
((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x) (log (+ x (sqrt (+ (* x x) -1)))) (+ x (sqrt (+ (* x x) -1))) (sqrt (+ (* x x) -1)) (+ (* x x) -1))
1.0ms
x
@0
((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x) (log (+ x (sqrt (+ (* x x) -1)))) (+ x (sqrt (+ (* x x) -1))) (sqrt (+ (* x x) -1)) (+ (* x x) -1))

simplify182.0ms (6.6%)

Memory
-2.1MiB live, 173.2MiB allocated; 52ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0150525
1470499
21777482
07732463
Stop Event
iter limit
iter limit
node limit
Counts
39 → 38
Calls
Call 1
Inputs
(log (sqrt -1))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(sqrt -1)
(+ x (sqrt -1))
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(* 2 x)
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1))))
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))
-1
(- (pow x 2) 1)
(+ (log 2) (* -1 (log (/ 1 x))))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
x
(* x (- 1 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(pow x 2)
(* (pow x 2) (- 1 (/ 1 (pow x 2))))
(+ (log -1/2) (log (/ -1 x)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(/ 1/2 x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
(* -1 x)
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2))))))
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))))
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))))
Outputs
(log (sqrt -1))
(log.f32 (sqrt.f32 #s(literal -1 binary32)))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32))))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(fma.f32 (/.f32 (fma.f32 #s(literal 1/6 binary32) (*.f32 x x) #s(literal 1 binary32)) (sqrt.f32 #s(literal -1 binary32))) x (log.f32 (sqrt.f32 #s(literal -1 binary32))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(fma.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (*.f32 #s(literal 3/40 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/6 binary32) (sqrt.f32 #s(literal -1 binary32)))) (+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32)))))
(sqrt -1)
(sqrt.f32 #s(literal -1 binary32))
(+ x (sqrt -1))
(+.f32 (sqrt.f32 #s(literal -1 binary32)) x)
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(fma.f32 (fma.f32 #s(literal 1/2 binary32) (/.f32 x (sqrt.f32 #s(literal -1 binary32))) #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(fma.f32 (fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) x #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32)))
(* 2 x)
(*.f32 #s(literal 2 binary32) x)
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1))))
(fma.f32 (*.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) x) #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))
(fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) (*.f32 x x) (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))
(fma.f32 (pow.f32 x #s(literal 4 binary32)) (fma.f32 (*.f32 #s(literal 1/16 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/8 binary32) (sqrt.f32 #s(literal -1 binary32)))) (fma.f32 (*.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) x) #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32))))
-1
#s(literal -1 binary32)
(- (pow x 2) 1)
(fma.f32 x x #s(literal -1 binary32))
(+ (log 2) (* -1 (log (/ 1 x))))
(+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32)))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 (-.f32 (/.f32 #s(literal 5/96 binary32) (*.f32 x x)) #s(literal -3/32 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x)
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(*.f32 (-.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x)
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(*.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal 2 binary32))) x)
x
(* x (- 1 (* 1/2 (/ 1 (pow x 2)))))
(fma.f32 (/.f32 #s(literal -1/2 binary32) (*.f32 x x)) x x)
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(fma.f32 (/.f32 x x) (/.f32 (-.f32 (/.f32 #s(literal -1/8 binary32) (*.f32 x x)) #s(literal 1/2 binary32)) x) x)
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(fma.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x x)
(pow x 2)
(*.f32 x x)
(* (pow x 2) (- 1 (/ 1 (pow x 2))))
(*.f32 (*.f32 (-.f32 #s(literal 1 binary32) (/.f32 (/.f32 #s(literal 1 binary32) x) x)) x) x)
(+ (log -1/2) (log (/ -1 x)))
(+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x)))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(-.f32 (-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal -5/96 binary32) (pow.f32 x #s(literal 6 binary32))))
(/ 1/2 x)
(/.f32 #s(literal 1/2 binary32) x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(/.f32 (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32)) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(/.f32 (+.f32 (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) x) x) #s(literal 1/2 binary32)) x)
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
(/.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -5/128 binary32) (*.f32 x x)) #s(literal 1/16 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32))) (neg.f32 x))
(* -1 x)
(neg.f32 x)
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2))))))
(*.f32 (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32)) x)
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))))
(*.f32 (-.f32 (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32)) (/.f32 #s(literal -1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) x)
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))))
(*.f32 (+.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32))) x)

rewrite50.0ms (1.8%)

Memory
2.8MiB live, 47.2MiB allocated; 8ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01654
02338
19238
055538
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
8 → 97
Calls
Call 1
Inputs
(acosh.f32 x)
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
(*.f32 #s(literal 2 binary32) x)
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
(+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))))
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
(fma.f32 x x #s(literal -1 binary32))
Outputs
(acosh.f32 x)
(log.f32 (+.f32 (sinh.f32 (acosh.f32 x)) x))
(-.f32 (log.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (log.f32 (-.f32 x (sinh.f32 (acosh.f32 x)))))
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))))
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
(*.f32 #s(literal 2 binary32) x)
(*.f32 x #s(literal 2 binary32))
(/.f32 (-.f32 (*.f32 x x) (*.f32 x x)) (-.f32 x x))
(/.f32 (+.f32 (pow.f32 x #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (fma.f32 x x (-.f32 (*.f32 x x) (*.f32 x x))))
(fma.f32 #s(literal 1 binary32) x (*.f32 #s(literal 1 binary32) x))
(fma.f32 x #s(literal 1 binary32) (*.f32 x #s(literal 1 binary32)))
(+.f32 (*.f32 #s(literal 1 binary32) x) (*.f32 #s(literal 1 binary32) x))
(+.f32 (*.f32 x #s(literal 1 binary32)) (*.f32 x #s(literal 1 binary32)))
(+.f32 x x)
(acosh.f32 x)
(log.f32 (+.f32 (sinh.f32 (acosh.f32 x)) x))
(-.f32 (log.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (log.f32 (-.f32 x (sinh.f32 (acosh.f32 x)))))
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))))
(/.f32 (-.f32 (fma.f32 x x #s(literal -1 binary32)) (*.f32 x x)) (-.f32 (sinh.f32 (acosh.f32 x)) x))
(/.f32 (neg.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (neg.f32 (-.f32 x (sinh.f32 (acosh.f32 x)))))
(/.f32 (neg.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (neg.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))))
(/.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32))) (-.f32 x (sinh.f32 (acosh.f32 x))))
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (+.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 (*.f32 x x) (*.f32 (sinh.f32 (acosh.f32 x)) x))))
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))
(-.f32 (/.f32 (*.f32 x x) (-.f32 x (sinh.f32 (acosh.f32 x)))) (/.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 x (sinh.f32 (acosh.f32 x)))))
(fma.f32 (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) x)
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)
(fma.f32 (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/2 binary32)) (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/2 binary32)) x)
(+.f32 (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))) (/.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))))
(+.f32 (sinh.f32 (acosh.f32 x)) x)
(+.f32 x (sinh.f32 (acosh.f32 x)))
(*.f32 (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)))
(*.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))))
(*.f32 (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/2 binary32)) (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/2 binary32)))
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32))) (sqrt.f32 (fma.f32 x x #s(literal 1 binary32))))
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (sqrt.f32 (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))))
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (sqrt.f32 (fma.f32 #s(literal -1 binary32) (-.f32 #s(literal -1 binary32) (*.f32 x x)) (pow.f32 x #s(literal 4 binary32)))))
(/.f32 (-.f32 (exp.f32 (acosh.f32 x)) (exp.f32 (neg.f32 (acosh.f32 x)))) #s(literal 2 binary32))
(pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/2 binary32))
(exp.f32 (*.f32 (log.f32 (fma.f32 x x #s(literal -1 binary32))) #s(literal 1/2 binary32)))
(sinh.f32 (acosh.f32 (neg.f32 x)))
(sinh.f32 (acosh.f32 (fabs.f32 x)))
(sinh.f32 (acosh.f32 x))
(expm1.f32 (*.f32 (log.f32 x) #s(literal 2 binary32)))
(*.f32 (+.f32 (neg.f32 x) #s(literal -1 binary32)) (-.f32 (neg.f32 x) #s(literal -1 binary32)))
(*.f32 (+.f32 (neg.f32 x) #s(literal 1 binary32)) (-.f32 (neg.f32 x) #s(literal 1 binary32)))
(*.f32 (+.f32 (fabs.f32 x) #s(literal -1 binary32)) (-.f32 (fabs.f32 x) #s(literal -1 binary32)))
(*.f32 (+.f32 (fabs.f32 x) #s(literal 1 binary32)) (-.f32 (fabs.f32 x) #s(literal 1 binary32)))
(*.f32 (neg.f32 (sinh.f32 (acosh.f32 x))) (neg.f32 (sinh.f32 (acosh.f32 x))))
(*.f32 (fabs.f32 (sinh.f32 (acosh.f32 x))) (fabs.f32 (sinh.f32 (acosh.f32 x))))
(*.f32 (-.f32 x #s(literal 1 binary32)) (-.f32 x #s(literal -1 binary32)))
(*.f32 (-.f32 x #s(literal -1 binary32)) (-.f32 x #s(literal 1 binary32)))
(*.f32 (sinh.f32 (acosh.f32 x)) (sinh.f32 (acosh.f32 x)))
(sqrt.f32 (*.f32 (fma.f32 x x #s(literal -1 binary32)) (fma.f32 x x #s(literal -1 binary32))))
(/.f32 (-.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 4 binary32))) (-.f32 #s(literal -1 binary32) (*.f32 x x)))
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32))) (neg.f32 (fma.f32 x x #s(literal 1 binary32))))
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (neg.f32 (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))))
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (neg.f32 (fma.f32 #s(literal -1 binary32) (-.f32 #s(literal -1 binary32) (*.f32 x x)) (pow.f32 x #s(literal 4 binary32)))))
(/.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32)) (fma.f32 x x #s(literal 1 binary32)))
(/.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32)) (+.f32 #s(literal 1 binary32) (-.f32 (pow.f32 x #s(literal 4 binary32)) (*.f32 #s(literal -1 binary32) (*.f32 x x)))))
(/.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32)) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32))))
(/.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32)) (fma.f32 #s(literal -1 binary32) (-.f32 #s(literal -1 binary32) (*.f32 x x)) (pow.f32 x #s(literal 4 binary32))))
(-.f32 (/.f32 (pow.f32 x #s(literal 4 binary32)) (fma.f32 x x #s(literal 1 binary32))) (/.f32 #s(literal 1 binary32) (fma.f32 x x #s(literal 1 binary32))))
(-.f32 (/.f32 (pow.f32 x #s(literal 6 binary32)) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1 binary32) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))))
(-.f32 #s(literal -1 binary32) (*.f32 (neg.f32 (neg.f32 x)) (neg.f32 x)))
(-.f32 #s(literal -1 binary32) (*.f32 (neg.f32 (fabs.f32 x)) (fabs.f32 x)))
(-.f32 #s(literal -1 binary32) (*.f32 (neg.f32 x) x))
(-.f32 #s(literal -1 binary32) (*.f32 x (neg.f32 x)))
(-.f32 (*.f32 x x) #s(literal 1 binary32))
(fma.f32 (*.f32 (neg.f32 x) #s(literal -1 binary32)) (*.f32 (neg.f32 x) #s(literal -1 binary32)) #s(literal -1 binary32))
(fma.f32 (*.f32 (neg.f32 x) #s(literal 1 binary32)) (*.f32 (neg.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (*.f32 (fabs.f32 x) #s(literal -1 binary32)) (*.f32 (fabs.f32 x) #s(literal -1 binary32)) #s(literal -1 binary32))
(fma.f32 (*.f32 (fabs.f32 x) #s(literal 1 binary32)) (*.f32 (fabs.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (*.f32 x #s(literal -1 binary32)) (*.f32 x #s(literal -1 binary32)) #s(literal -1 binary32))
(fma.f32 (*.f32 x #s(literal 1 binary32)) (*.f32 x #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (neg.f32 (neg.f32 x)) (neg.f32 (neg.f32 x)) #s(literal -1 binary32))
(fma.f32 (neg.f32 (fabs.f32 x)) (neg.f32 (fabs.f32 x)) #s(literal -1 binary32))
(fma.f32 (fabs.f32 (fabs.f32 x)) (fabs.f32 (fabs.f32 x)) #s(literal -1 binary32))
(fma.f32 (pow.f32 x #s(literal 1 binary32)) (pow.f32 x #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (pow.f32 x #s(literal 1 binary32)) x #s(literal -1 binary32))
(fma.f32 (*.f32 #s(literal -1 binary32) (*.f32 x x)) #s(literal -1 binary32) #s(literal -1 binary32))
(fma.f32 (neg.f32 x) (*.f32 (neg.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (neg.f32 x) (neg.f32 x) #s(literal -1 binary32))
(fma.f32 (fabs.f32 x) (*.f32 (fabs.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 (fabs.f32 x) (fabs.f32 x) #s(literal -1 binary32))
(fma.f32 #s(literal 1 binary32) (*.f32 x x) #s(literal -1 binary32))
(fma.f32 (*.f32 x x) #s(literal 1 binary32) #s(literal -1 binary32))
(fma.f32 x (*.f32 x #s(literal 1 binary32)) #s(literal -1 binary32))
(fma.f32 x x #s(literal -1 binary32))
(pow.f32 (*.f32 (fma.f32 x x #s(literal -1 binary32)) (fma.f32 x x #s(literal -1 binary32))) #s(literal 1/2 binary32))
(pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 2 binary32))
(pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1 binary32))
(+.f32 (/.f32 (pow.f32 x #s(literal 6 binary32)) (fma.f32 #s(literal -1 binary32) (-.f32 #s(literal -1 binary32) (*.f32 x x)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal -1 binary32) (fma.f32 #s(literal -1 binary32) (-.f32 #s(literal -1 binary32) (*.f32 x x)) (pow.f32 x #s(literal 4 binary32)))))
(+.f32 #s(literal -1 binary32) (*.f32 x x))
(+.f32 (*.f32 x x) #s(literal -1 binary32))

eval12.0ms (0.4%)

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

Compiled 2 070 to 615 computations (70.3% saved)

prune33.0ms (1.2%)

Memory
-52.4MiB live, 12.0MiB allocated; 28ms collecting garbage
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1301131
Fresh000
Picked123
Done000
Total1313134
Accuracy
100.0%
Counts
134 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.0%
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
97.7%
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
99.4%
(acosh.f32 x)
Compiler

Compiled 23 to 17 computations (26.1% saved)

simplify174.0ms (6.4%)

Memory
32.7MiB live, 119.3MiB allocated; 24ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f32 x x)
cost-diff0
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))
cost-diff0
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0929
01129
12329
25229
313029
443129
5267729
6690229
0819327
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))
(+.f32 x x)
x
Outputs
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
(+.f32 x x)
(*.f32 #s(literal 2 binary32) x)
x

localize25.0ms (0.9%)

Memory
-1.0MiB live, 41.8MiB allocated; 10ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f32 x x)
accuracy0.12080521238049426
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
accuracy0.7787850084354992
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))
Samples
20.0ms256×0valid
Compiler

Compiled 23 to 10 computations (56.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
ival-log: 3.0ms (28.4% of total)
ival-add: 2.0ms (18.9% of total)
ival-mult: 2.0ms (18.9% of total)
ival-sqrt: 2.0ms (18.9% of total)
ival-sub: 1.0ms (9.5% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series2.0ms (0.1%)

Memory
4.1MiB live, 4.1MiB allocated; 0ms collecting garbage
Counts
3 → 24
Calls
Call 1
Inputs
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))
(+.f32 x x)
Outputs
(log (sqrt -1))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(sqrt -1)
(+ x (sqrt -1))
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(* 2 x)
(+ (log 2) (* -1 (log (/ 1 x))))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(+ (log -1/2) (log (/ -1 x)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(/ 1/2 x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
Calls

3 calls:

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

simplify328.0ms (12%)

Memory
-17.8MiB live, 314.5MiB allocated; 47ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0124339
1386321
21414310
07718301
Stop Event
iter limit
iter limit
node limit
Counts
24 → 24
Calls
Call 1
Inputs
(log (sqrt -1))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(sqrt -1)
(+ x (sqrt -1))
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(* 2 x)
(+ (log 2) (* -1 (log (/ 1 x))))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(+ (log -1/2) (log (/ -1 x)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(/ 1/2 x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
Outputs
(log (sqrt -1))
(log.f32 (sqrt.f32 #s(literal -1 binary32)))
(+ (log (sqrt -1)) (/ x (sqrt -1)))
(+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32))))
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1)))))
(fma.f32 (/.f32 (fma.f32 #s(literal 1/6 binary32) (*.f32 x x) #s(literal 1 binary32)) (sqrt.f32 #s(literal -1 binary32))) x (log.f32 (sqrt.f32 #s(literal -1 binary32))))
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1)))))
(fma.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (*.f32 #s(literal 3/40 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/6 binary32) (sqrt.f32 #s(literal -1 binary32)))) (+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32)))))
(sqrt -1)
(sqrt.f32 #s(literal -1 binary32))
(+ x (sqrt -1))
(+.f32 (sqrt.f32 #s(literal -1 binary32)) x)
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1))))))
(fma.f32 (fma.f32 #s(literal 1/2 binary32) (/.f32 x (sqrt.f32 #s(literal -1 binary32))) #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32)))
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
(fma.f32 (fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) x #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32)))
(* 2 x)
(*.f32 #s(literal 2 binary32) x)
(+ (log 2) (* -1 (log (/ 1 x))))
(+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32)))
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2))))
(-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2)))))
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2))))
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 (-.f32 (/.f32 #s(literal 5/96 binary32) (*.f32 x x)) #s(literal -3/32 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x)))
(* x (- 2 (* 1/2 (/ 1 (pow x 2)))))
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x)
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))
(*.f32 (-.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x)
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))
(*.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal 2 binary32))) x)
(+ (log -1/2) (log (/ -1 x)))
(+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32)))
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2)))))
(-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x)))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2))))))
(-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32))))
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6)))))))
(-.f32 (-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal -5/96 binary32) (pow.f32 x #s(literal 6 binary32))))
(/ 1/2 x)
(/.f32 #s(literal 1/2 binary32) x)
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x)
(/.f32 (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32)) x)
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x))
(/.f32 (+.f32 (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) x) x) #s(literal 1/2 binary32)) x)
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x))
(/.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -5/128 binary32) (*.f32 x x)) #s(literal 1/16 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32))) (neg.f32 x))

rewrite53.0ms (1.9%)

Memory
4.1MiB live, 103.0MiB allocated; 15ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0928
01122
15922
048922
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
3 → 10
Calls
Call 1
Inputs
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))
(+.f32 x x)
Outputs
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))
(*.f32 #s(literal 2 binary32) x)
(*.f32 x #s(literal 2 binary32))
(/.f32 (neg.f32 (*.f32 #s(literal 2 binary32) (pow.f32 x #s(literal 3 binary32)))) (neg.f32 (fma.f32 x x #s(literal 0 binary32))))
(/.f32 (*.f32 #s(literal 2 binary32) (pow.f32 x #s(literal 3 binary32))) (fma.f32 x x #s(literal 0 binary32)))
(/.f32 #s(literal 0 binary32) #s(literal 0 binary32))
(-.f32 (/.f32 (*.f32 x x) #s(literal 0 binary32)) (/.f32 (*.f32 x x) #s(literal 0 binary32)))
(+.f32 (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 x x #s(literal 0 binary32))) (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 x x #s(literal 0 binary32))))
(+.f32 x x)

eval3.0ms (0.1%)

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

Compiled 713 to 174 computations (75.6% saved)

prune2.0ms (0.1%)

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

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New34034
Fresh000
Picked011
Done022
Total34337
Accuracy
100.0%
Counts
37 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.0%
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
97.7%
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
99.4%
(acosh.f32 x)
Compiler

Compiled 68 to 42 computations (38.2% saved)

regimes9.0ms (0.3%)

Memory
-23.3MiB live, 21.6MiB allocated; 7ms collecting garbage
Accuracy

Total -13.9b remaining (-7133%)

Threshold costs -13.9b (-7133%)

Counts
5 → 1
Calls
Call 1
Inputs
(acosh.f32 x)
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)))
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)))
(log.f32 (+.f32 x (sqrt.f32 (fma.f32 x x #s(literal -1 binary32)))))
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
Outputs
(acosh.f32 x)
Calls

3 calls:

5.0ms
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
2.0ms
x
2.0ms
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
Results
AccuracySegmentsBranch
99.4%1(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))
99.4%1(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))))
99.4%1x
Compiler

Compiled 18 to 14 computations (22.2% saved)

simplify9.0ms (0.3%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
022
Stop Event
saturated
Calls
Call 1
Inputs
(acosh.f32 x)
Outputs
(acosh.f32 x)

derivations3.0ms (0.1%)

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

Compiled 2 to 2 computations (0% saved)

preprocess16.0ms (0.6%)

Memory
-2.7MiB live, 40.7MiB allocated; 9ms collecting garbage
Compiler

Compiled 46 to 36 computations (21.7% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...