math.square on complex, real part

Time bar (total: 1.3s)

start0.0ms (0%)

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

analyze0.0ms (0%)

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

Compiled 9 to 7 computations (22.2% saved)

sample844.0ms (65.3%)

Memory
61.5MiB live, 659.5MiB allocated; 644ms collecting garbage
Samples
624.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 442.0ms
ival-mult: 399.0ms (90.3% of total)
ival-sub: 37.0ms (8.4% of total)
ival-assert: 3.0ms (0.7% of total)
adjust: 2.0ms (0.5% of total)
Bogosity

explain68.0ms (5.3%)

Memory
-20.5MiB live, 80.4MiB allocated; 18ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
140-0-(-.f64 (*.f64 re re) (*.f64 im im))
00-0-(*.f64 re re)
00-0-re
00-0-(*.f64 im im)
00-0-im
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (*.f64 re re) (*.f64 im im))nan-rescue140
(*.f64 re re)overflow55
(*.f64 im im)overflow59
Confusion
Predicted +Predicted -
+140
-0242
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+1400
-00242
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0242
114
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
29.0ms512×0valid
Compiler

Compiled 41 to 19 computations (53.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 16.0ms
ival-sub: 8.0ms (50.8% of total)
ival-mult: 7.0ms (44.4% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess118.0ms (9.1%)

Memory
-5.9MiB live, 85.9MiB allocated; 8ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01445
15142
222342
338642
495042
5195542
6295942
7329942
8337742
9337742
10357042
057
087
1217
2817
32237
44037
58367
613857
720697
828987
932087
1032707
1132707
1233487
033487
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(-.f64 (*.f64 re re) (*.f64 im im))
Outputs
(-.f64 (*.f64 re re) (*.f64 im im))
(*.f64 (-.f64 re im) (+.f64 im re))
Symmetry

(abs re)

(abs im)

Compiler

Compiled 7 to 5 computations (28.6% saved)

eval0.0ms (0%)

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

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
94.5%
(-.f64 (*.f64 re re) (*.f64 im im))
Compiler

Compiled 7 to 5 computations (28.6% saved)

series4.0ms (0.3%)

Memory
6.0MiB live, 6.0MiB allocated; 0ms collecting garbage
Counts
5 → 10
Calls
Call 1
Inputs
(-.f64 (*.f64 re re) (*.f64 im im))
(*.f64 re re)
re
(*.f64 im im)
im
Outputs
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (- (pow re 2) (pow im 2))))
#s(approx (* re re) #s(hole binary64 (pow re 2)))
#s(approx re #s(hole binary64 re))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (pow re 2)))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow re 2) (+ 1 (* -1 (/ (pow im 2) (pow re 2)))))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (+ (* -1 (pow im 2)) (pow re 2))))
#s(approx (* im im) #s(hole binary64 (pow im 2)))
#s(approx im #s(hole binary64 im))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow im 2) (- (/ (pow re 2) (pow im 2)) 1))))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
re
@inf
((- (* re re) (* im im)) (* re re) re (* im im) im)
1.0ms
re
@-inf
((- (* re re) (* im im)) (* re re) re (* im im) im)
1.0ms
im
@inf
((- (* re re) (* im im)) (* re re) re (* im im) im)
1.0ms
im
@-inf
((- (* re re) (* im im)) (* re re) re (* im im) im)
1.0ms
re
@0
((- (* re re) (* im im)) (* re re) re (* im im) im)

rewrite62.0ms (4.8%)

Memory
-0.6MiB live, 45.2MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
033135
036131
1136130
01191130
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
15 → 94
Calls
Call 1
Inputs
(-.f64 (*.f64 re re) (*.f64 im im))
(*.f64 re re)
re
(*.f64 im im)
im
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (- (pow re 2) (pow im 2))))
#s(approx (* re re) #s(hole binary64 (pow re 2)))
#s(approx re #s(hole binary64 re))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (pow re 2)))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow re 2) (+ 1 (* -1 (/ (pow im 2) (pow re 2)))))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (+ (* -1 (pow im 2)) (pow re 2))))
#s(approx (* im im) #s(hole binary64 (pow im 2)))
#s(approx im #s(hole binary64 im))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow im 2) (- (/ (pow re 2) (pow im 2)) 1))))
Outputs
(*.f64 (+.f64 (neg.f64 re) (neg.f64 im)) (-.f64 (neg.f64 re) (neg.f64 im)))
(*.f64 (+.f64 (neg.f64 re) (fabs.f64 im)) (-.f64 (neg.f64 re) (fabs.f64 im)))
(*.f64 (+.f64 (neg.f64 re) im) (-.f64 (neg.f64 re) im))
(*.f64 (+.f64 (fabs.f64 re) (neg.f64 im)) (-.f64 (fabs.f64 re) (neg.f64 im)))
(*.f64 (+.f64 (fabs.f64 re) (fabs.f64 im)) (-.f64 (fabs.f64 re) (fabs.f64 im)))
(*.f64 (+.f64 (fabs.f64 re) im) (-.f64 (fabs.f64 re) im))
(*.f64 (+.f64 re (neg.f64 im)) (-.f64 re (neg.f64 im)))
(*.f64 (+.f64 re (fabs.f64 im)) (-.f64 re (fabs.f64 im)))
(*.f64 (-.f64 re im) (+.f64 im re))
(*.f64 (+.f64 im re) (-.f64 re im))
(/.f64 (neg.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64)))) (neg.f64 (-.f64 (*.f64 (neg.f64 im) im) (*.f64 re re))))
(/.f64 (neg.f64 (+.f64 (pow.f64 re #s(literal 6 binary64)) (neg.f64 (pow.f64 im #s(literal 6 binary64))))) (neg.f64 (+.f64 (pow.f64 im #s(literal 4 binary64)) (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))))
(/.f64 (neg.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (neg.f64 (+.f64 (*.f64 re re) (*.f64 im im))))
(/.f64 (neg.f64 (-.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 6 binary64)))) (neg.f64 (+.f64 (+.f64 (pow.f64 (*.f64 re im) #s(literal 2 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 re #s(literal 4 binary64)))))
(/.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (+.f64 (*.f64 re re) (*.f64 im im)))
(/.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) (-.f64 (*.f64 (neg.f64 im) im) (*.f64 re re)))
(/.f64 (-.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 6 binary64))) (+.f64 (+.f64 (pow.f64 (*.f64 re im) #s(literal 2 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 re #s(literal 4 binary64))))
(/.f64 (+.f64 (pow.f64 re #s(literal 6 binary64)) (neg.f64 (pow.f64 im #s(literal 6 binary64)))) (+.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (pow.f64 im #s(literal 4 binary64)) (neg.f64 (pow.f64 (*.f64 re im) #s(literal 2 binary64))))))
(/.f64 (+.f64 (pow.f64 re #s(literal 6 binary64)) (neg.f64 (pow.f64 im #s(literal 6 binary64)))) (+.f64 (pow.f64 im #s(literal 4 binary64)) (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64)))))
(-.f64 (/.f64 (pow.f64 im #s(literal 4 binary64)) (-.f64 (*.f64 (neg.f64 im) im) (*.f64 re re))) (/.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (*.f64 (neg.f64 im) im) (*.f64 re re))))
(-.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (+.f64 (*.f64 re re) (*.f64 im im))) (/.f64 (pow.f64 im #s(literal 4 binary64)) (+.f64 (*.f64 re re) (*.f64 im im))))
(-.f64 (/.f64 (pow.f64 re #s(literal 6 binary64)) (+.f64 (+.f64 (pow.f64 (*.f64 re im) #s(literal 2 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 re #s(literal 4 binary64)))) (/.f64 (pow.f64 im #s(literal 6 binary64)) (+.f64 (+.f64 (pow.f64 (*.f64 re im) #s(literal 2 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 re #s(literal 4 binary64)))))
(-.f64 (*.f64 re re) (*.f64 (neg.f64 (neg.f64 im)) im))
(-.f64 (*.f64 re re) (*.f64 (*.f64 (neg.f64 im) im) #s(literal -1 binary64)))
(-.f64 (*.f64 re re) (*.f64 #s(literal 1 binary64) (*.f64 im im)))
(-.f64 (*.f64 re re) (*.f64 im im))
(-.f64 (*.f64 (neg.f64 im) im) (*.f64 (neg.f64 re) re))
(+.f64 (/.f64 (neg.f64 (pow.f64 im #s(literal 6 binary64))) (+.f64 (pow.f64 im #s(literal 4 binary64)) (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))) (/.f64 (pow.f64 re #s(literal 6 binary64)) (+.f64 (pow.f64 im #s(literal 4 binary64)) (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))))
(+.f64 (*.f64 re re) (*.f64 (neg.f64 im) im))
(+.f64 (*.f64 (neg.f64 im) im) (*.f64 re re))
(*.f64 (*.f64 (neg.f64 re) #s(literal 1 binary64)) (*.f64 (neg.f64 re) #s(literal 1 binary64)))
(*.f64 (*.f64 (fabs.f64 re) #s(literal 1 binary64)) (*.f64 (fabs.f64 re) #s(literal 1 binary64)))
(*.f64 (*.f64 re #s(literal 1 binary64)) (*.f64 re #s(literal 1 binary64)))
(*.f64 (*.f64 #s(literal 1 binary64) (neg.f64 re)) (*.f64 #s(literal 1 binary64) (neg.f64 re)))
(*.f64 (*.f64 #s(literal 1 binary64) (neg.f64 re)) (neg.f64 re))
(*.f64 (*.f64 #s(literal 1 binary64) (fabs.f64 re)) (*.f64 #s(literal 1 binary64) (fabs.f64 re)))
(*.f64 (*.f64 #s(literal 1 binary64) (fabs.f64 re)) (fabs.f64 re))
(*.f64 (*.f64 #s(literal 1 binary64) re) (*.f64 #s(literal 1 binary64) re))
(*.f64 (*.f64 #s(literal 1 binary64) re) re)
(*.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re)))
(*.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re)))
(*.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re)))
(*.f64 (exp.f64 (log.f64 re)) (exp.f64 (log.f64 re)))
(*.f64 (neg.f64 re) (*.f64 (neg.f64 re) #s(literal 1 binary64)))
(*.f64 (neg.f64 re) (neg.f64 re))
(*.f64 (fabs.f64 re) (*.f64 (fabs.f64 re) #s(literal 1 binary64)))
(*.f64 (fabs.f64 re) (fabs.f64 re))
(*.f64 #s(literal 1 binary64) (*.f64 re re))
(*.f64 (*.f64 re re) #s(literal 1 binary64))
(*.f64 re (*.f64 re #s(literal 1 binary64)))
(*.f64 re re)
(pow.f64 (exp.f64 (log.f64 re)) #s(literal 2 binary64))
(pow.f64 (neg.f64 re) #s(literal 2 binary64))
(pow.f64 (fabs.f64 re) #s(literal 2 binary64))
(pow.f64 (*.f64 re re) #s(literal 1 binary64))
(pow.f64 re #s(literal 2 binary64))
(/.f64 (*.f64 #s(literal 2 binary64) (*.f64 re re)) #s(literal 2 binary64))
(/.f64 (*.f64 (*.f64 re re) #s(literal 2 binary64)) #s(literal 2 binary64))
(neg.f64 (*.f64 (*.f64 re re) #s(literal -1 binary64)))
(neg.f64 (*.f64 #s(literal -1 binary64) (*.f64 re re)))
(neg.f64 (*.f64 (neg.f64 re) re))
(fabs.f64 (*.f64 re re))
(exp.f64 (+.f64 (*.f64 (log.f64 re) #s(literal 2 binary64)) #s(literal 0 binary64)))
(exp.f64 (+.f64 #s(literal 0 binary64) (*.f64 (log.f64 re) #s(literal 2 binary64))))
(exp.f64 (*.f64 (log.f64 re) #s(literal 2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 re) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 re) #s(literal 2 binary64))))
re
(*.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 im)))
(*.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 im)))
(*.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 im)))
(*.f64 (exp.f64 (log.f64 im)) (exp.f64 (log.f64 im)))
(*.f64 (neg.f64 im) (neg.f64 im))
(*.f64 (fabs.f64 im) (fabs.f64 im))
(*.f64 im im)
(pow.f64 (exp.f64 (log.f64 im)) #s(literal 2 binary64))
(pow.f64 (neg.f64 im) #s(literal 2 binary64))
(pow.f64 (fabs.f64 im) #s(literal 2 binary64))
(pow.f64 (*.f64 im im) #s(literal 1 binary64))
(pow.f64 im #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 im) im))
(fabs.f64 (*.f64 im im))
(exp.f64 (*.f64 (log.f64 im) #s(literal 2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 im) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 im) #s(literal 2 binary64))))
im
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
#s(approx (- (* re re) (* im im)) (*.f64 (-.f64 re im) (+.f64 im re)))
#s(approx (* re re) (*.f64 re re))
#s(approx re re)
#s(approx (- (* re re) (* im im)) (*.f64 re re))
#s(approx (- (* re re) (* im im)) (*.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 im re) (/.f64 im re))) (*.f64 re re)))
#s(approx (- (* re re) (* im im)) (*.f64 (-.f64 re im) (+.f64 im re)))
#s(approx (* im im) (*.f64 im im))
#s(approx im im)
#s(approx (- (* re re) (* im im)) (*.f64 (-.f64 (*.f64 (/.f64 re im) (/.f64 re im)) #s(literal 1 binary64)) (*.f64 im im)))

eval9.0ms (0.7%)

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

Compiled 1 138 to 261 computations (77.1% saved)

prune3.0ms (0.2%)

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

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New94397
Fresh000
Picked101
Done000
Total95398
Accuracy
100.0%
Counts
98 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 re im) (+.f64 im re))
56.6%
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
51.7%
#s(approx (- (* re re) (* im im)) (*.f64 re re))
Compiler

Compiled 30 to 20 computations (33.3% saved)

series15.0ms (1.2%)

Memory
-33.3MiB live, 14.0MiB allocated; 8ms collecting garbage
Counts
10 → 39
Calls
Call 1
Inputs
#s(approx (- (* re re) (* im im)) (*.f64 re re))
(*.f64 re re)
re
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
(*.f64 (neg.f64 im) im)
(neg.f64 im)
im
(*.f64 (-.f64 re im) (+.f64 im re))
(-.f64 re im)
(+.f64 im re)
Outputs
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (- (pow re 2) (pow im 2))))
#s(approx (* re re) #s(hole binary64 (pow re 2)))
#s(approx re #s(hole binary64 re))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* -1 (pow im 2)) (* re (+ im (* -1 im))))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* -1 (pow im 2)) (* re (+ im (+ re (* -1 im)))))))
#s(approx (- re im) #s(hole binary64 (* -1 im)))
#s(approx (- re im) #s(hole binary64 (- re im)))
#s(approx (+ im re) #s(hole binary64 im))
#s(approx (+ im re) #s(hole binary64 (+ im re)))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (pow re 2)))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow re 2) (+ 1 (* -1 (/ (pow im 2) (pow re 2)))))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (pow re 2)))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow re 2) (+ 1 (+ (* -1 (/ im re)) (/ im re))))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow re 2) (+ 1 (+ (* -1 (/ im re)) (+ (* -1 (/ (pow im 2) (pow re 2))) (/ im re)))))))
#s(approx (- re im) #s(hole binary64 re))
#s(approx (- re im) #s(hole binary64 (* re (+ 1 (* -1 (/ im re))))))
#s(approx (+ im re) #s(hole binary64 re))
#s(approx (+ im re) #s(hole binary64 (* re (+ 1 (/ im re)))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow re 2) (+ 1 (* -1 (/ (+ (* -1 (+ im (* -1 im))) (/ (pow im 2) re)) re))))))
#s(approx (- re im) #s(hole binary64 (* -1 (* re (- (/ im re) 1)))))
#s(approx (+ im re) #s(hole binary64 (* -1 (* re (- (* -1 (/ im re)) 1)))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (+ (* -1 (pow im 2)) (pow re 2))))
#s(approx (* (neg im) im) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (neg im) #s(hole binary64 (* -1 im)))
#s(approx im #s(hole binary64 im))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* im (+ re (* -1 re))) (pow re 2))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* im (+ re (+ (* -1 im) (* -1 re)))) (pow re 2))))
#s(approx (- re im) #s(hole binary64 (+ re (* -1 im))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow im 2) (- (/ (pow re 2) (pow im 2)) 1))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (+ (* -1 (/ re im)) (/ re im)) 1))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (+ (* -1 (/ re im)) (+ (/ re im) (/ (pow re 2) (pow im 2)))) 1))))
#s(approx (- re im) #s(hole binary64 (* im (- (/ re im) 1))))
#s(approx (+ im re) #s(hole binary64 (* im (+ 1 (/ re im)))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (* -1 (/ (+ re (* -1 re)) im)) 1))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (* -1 (/ (+ re (+ (* -1 re) (* -1 (/ (pow re 2) im)))) im)) 1))))
#s(approx (- re im) #s(hole binary64 (* -1 (* im (+ 1 (* -1 (/ re im)))))))
#s(approx (+ im re) #s(hole binary64 (* -1 (* im (- (* -1 (/ re im)) 1)))))
Calls

6 calls:

TimeVariablePointExpression
6.0ms
re
@-inf
((- (* re re) (* im im)) (* re re) re (- (* re re) (* im im)) (* (neg im) im) (neg im) im (* (- re im) (+ im re)) (- re im) (+ im re))
4.0ms
re
@inf
((- (* re re) (* im im)) (* re re) re (- (* re re) (* im im)) (* (neg im) im) (neg im) im (* (- re im) (+ im re)) (- re im) (+ im re))
2.0ms
im
@-inf
((- (* re re) (* im im)) (* re re) re (- (* re re) (* im im)) (* (neg im) im) (neg im) im (* (- re im) (+ im re)) (- re im) (+ im re))
1.0ms
im
@inf
((- (* re re) (* im im)) (* re re) re (- (* re re) (* im im)) (* (neg im) im) (neg im) im (* (- re im) (+ im re)) (- re im) (+ im re))
1.0ms
re
@0
((- (* re re) (* im im)) (* re re) re (- (* re re) (* im im)) (* (neg im) im) (neg im) im (* (- re im) (+ im re)) (- re im) (+ im re))

rewrite49.0ms (3.8%)

Memory
2.4MiB live, 48.2MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0145630
0149579
0813579
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
49 → 75
Calls
Call 1
Inputs
#s(approx (- (* re re) (* im im)) (*.f64 re re))
(*.f64 re re)
re
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
(*.f64 (neg.f64 im) im)
(neg.f64 im)
im
(*.f64 (-.f64 re im) (+.f64 im re))
(-.f64 re im)
(+.f64 im re)
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (- (pow re 2) (pow im 2))))
#s(approx (* re re) #s(hole binary64 (pow re 2)))
#s(approx re #s(hole binary64 re))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* -1 (pow im 2)) (* re (+ im (* -1 im))))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* -1 (pow im 2)) (* re (+ im (+ re (* -1 im)))))))
#s(approx (- re im) #s(hole binary64 (* -1 im)))
#s(approx (- re im) #s(hole binary64 (- re im)))
#s(approx (+ im re) #s(hole binary64 im))
#s(approx (+ im re) #s(hole binary64 (+ im re)))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (pow re 2)))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow re 2) (+ 1 (* -1 (/ (pow im 2) (pow re 2)))))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (pow re 2)))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow re 2) (+ 1 (+ (* -1 (/ im re)) (/ im re))))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow re 2) (+ 1 (+ (* -1 (/ im re)) (+ (* -1 (/ (pow im 2) (pow re 2))) (/ im re)))))))
#s(approx (- re im) #s(hole binary64 re))
#s(approx (- re im) #s(hole binary64 (* re (+ 1 (* -1 (/ im re))))))
#s(approx (+ im re) #s(hole binary64 re))
#s(approx (+ im re) #s(hole binary64 (* re (+ 1 (/ im re)))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow re 2) (+ 1 (* -1 (/ (+ (* -1 (+ im (* -1 im))) (/ (pow im 2) re)) re))))))
#s(approx (- re im) #s(hole binary64 (* -1 (* re (- (/ im re) 1)))))
#s(approx (+ im re) #s(hole binary64 (* -1 (* re (- (* -1 (/ im re)) 1)))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (+ (* -1 (pow im 2)) (pow re 2))))
#s(approx (* (neg im) im) #s(hole binary64 (* -1 (pow im 2))))
#s(approx (neg im) #s(hole binary64 (* -1 im)))
#s(approx im #s(hole binary64 im))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* im (+ re (* -1 re))) (pow re 2))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (+ (* im (+ re (+ (* -1 im) (* -1 re)))) (pow re 2))))
#s(approx (- re im) #s(hole binary64 (+ re (* -1 im))))
#s(approx (- (* re re) (* im im)) #s(hole binary64 (* (pow im 2) (- (/ (pow re 2) (pow im 2)) 1))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (+ (* -1 (/ re im)) (/ re im)) 1))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (+ (* -1 (/ re im)) (+ (/ re im) (/ (pow re 2) (pow im 2)))) 1))))
#s(approx (- re im) #s(hole binary64 (* im (- (/ re im) 1))))
#s(approx (+ im re) #s(hole binary64 (* im (+ 1 (/ re im)))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (* -1 (/ (+ re (* -1 re)) im)) 1))))
#s(approx (* (- re im) (+ im re)) #s(hole binary64 (* (pow im 2) (- (* -1 (/ (+ re (+ (* -1 re) (* -1 (/ (pow re 2) im)))) im)) 1))))
#s(approx (- re im) #s(hole binary64 (* -1 (* im (+ 1 (* -1 (/ re im)))))))
#s(approx (+ im re) #s(hole binary64 (* -1 (* im (- (* -1 (/ re im)) 1)))))
Outputs
#s(approx (* (- re im) (+ im re)) (*.f64 re re))
(*.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64)))
(*.f64 (fabs.f64 re) (fabs.f64 re))
(*.f64 (neg.f64 re) (neg.f64 re))
(*.f64 re re)
(pow.f64 re #s(literal 2 binary64))
(exp.f64 (*.f64 (log.f64 re) #s(literal 2 binary64)))
re
#s(approx (* (- re im) (+ im re)) (*.f64 (neg.f64 im) im))
(*.f64 (neg.f64 im) im)
(*.f64 (*.f64 im im) #s(literal -1 binary64))
(*.f64 #s(literal -1 binary64) (*.f64 im im))
(*.f64 im (neg.f64 im))
(neg.f64 (*.f64 im im))
(*.f64 #s(literal -1 binary64) im)
(*.f64 im #s(literal -1 binary64))
(neg.f64 im)
im
(*.f64 (+.f64 im re) (-.f64 re im))
(*.f64 (-.f64 re im) (+.f64 im re))
(/.f64 (-.f64 (*.f64 (*.f64 re re) (*.f64 re re)) (*.f64 (*.f64 im im) (*.f64 im im))) (+.f64 (*.f64 re re) (*.f64 im im)))
(/.f64 (-.f64 (*.f64 (*.f64 (neg.f64 im) im) (*.f64 (neg.f64 im) im)) (*.f64 (*.f64 re re) (*.f64 re re))) (-.f64 (*.f64 (neg.f64 im) im) (*.f64 re re)))
(/.f64 (-.f64 (pow.f64 (*.f64 re re) #s(literal 3 binary64)) (pow.f64 (*.f64 im im) #s(literal 3 binary64))) (+.f64 (*.f64 (*.f64 re re) (*.f64 re re)) (+.f64 (*.f64 (*.f64 im im) (*.f64 im im)) (*.f64 (*.f64 re re) (*.f64 im im)))))
(/.f64 (+.f64 (pow.f64 (*.f64 (neg.f64 im) im) #s(literal 3 binary64)) (pow.f64 (*.f64 re re) #s(literal 3 binary64))) (+.f64 (*.f64 (*.f64 (neg.f64 im) im) (*.f64 (neg.f64 im) im)) (-.f64 (*.f64 (*.f64 re re) (*.f64 re re)) (*.f64 (*.f64 (neg.f64 im) im) (*.f64 re re)))))
(-.f64 (*.f64 re re) (*.f64 im im))
(+.f64 (*.f64 im (-.f64 re im)) (*.f64 re (-.f64 re im)))
(+.f64 (*.f64 (-.f64 re im) im) (*.f64 (-.f64 re im) re))
(+.f64 (*.f64 re re) (*.f64 (neg.f64 im) im))
(+.f64 (*.f64 (neg.f64 im) im) (*.f64 re re))
(/.f64 (-.f64 (pow.f64 re #s(literal 3 binary64)) (pow.f64 im #s(literal 3 binary64))) (+.f64 (*.f64 re re) (+.f64 (*.f64 im im) (*.f64 re im))))
(/.f64 (*.f64 (+.f64 im re) (-.f64 re im)) (+.f64 im re))
(-.f64 re im)
(/.f64 (-.f64 (*.f64 im im) (*.f64 re re)) (-.f64 im re))
(/.f64 (+.f64 (pow.f64 im #s(literal 3 binary64)) (pow.f64 re #s(literal 3 binary64))) (+.f64 (*.f64 im im) (-.f64 (*.f64 re re) (*.f64 im re))))
(+.f64 im re)
(+.f64 re im)
#s(approx (* (- re im) (+ im re)) (*.f64 (neg.f64 im) im))
#s(approx (* (- re im) (+ im re)) (*.f64 (+.f64 im re) (-.f64 re im)))
#s(approx (* re re) (*.f64 re re))
#s(approx re re)
#s(approx (* (- re im) (+ im re)) (*.f64 (neg.f64 im) im))
#s(approx (* (- re im) (+ im re)) (+.f64 (*.f64 (*.f64 #s(literal 0 binary64) im) re) (*.f64 (neg.f64 im) im)))
#s(approx (* (- re im) (+ im re)) (+.f64 (*.f64 (+.f64 (+.f64 (neg.f64 im) re) im) re) (*.f64 (neg.f64 im) im)))
#s(approx (- re im) (neg.f64 im))
#s(approx (- re im) (-.f64 re im))
#s(approx (+ im re) im)
#s(approx (+ im re) (+.f64 im re))
#s(approx (* (- re im) (+ im re)) (*.f64 re re))
#s(approx (* (- re im) (+ im re)) (*.f64 (+.f64 (/.f64 (*.f64 (neg.f64 im) im) (*.f64 re re)) #s(literal 1 binary64)) (*.f64 re re)))
#s(approx (* (- re im) (+ im re)) (*.f64 re re))
#s(approx (* (- re im) (+ im re)) (*.f64 (+.f64 (*.f64 #s(literal 0 binary64) (/.f64 im re)) #s(literal 1 binary64)) (*.f64 re re)))
#s(approx (* (- re im) (+ im re)) (*.f64 (+.f64 (+.f64 (/.f64 (neg.f64 im) re) #s(literal 1 binary64)) (+.f64 (/.f64 im re) (/.f64 (*.f64 (neg.f64 im) im) (*.f64 re re)))) (*.f64 re re)))
#s(approx (- re im) re)
#s(approx (- re im) (*.f64 (+.f64 (/.f64 (neg.f64 im) re) #s(literal 1 binary64)) re))
#s(approx (+ im re) re)
#s(approx (+ im re) (*.f64 (+.f64 (/.f64 im re) #s(literal 1 binary64)) re))
#s(approx (* (- re im) (+ im re)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 (*.f64 im im) re) (neg.f64 (*.f64 #s(literal 0 binary64) im))) re)) #s(literal 1 binary64)) (*.f64 re re)))
#s(approx (- re im) (*.f64 (neg.f64 re) (-.f64 (/.f64 im re) #s(literal 1 binary64))))
#s(approx (+ im re) (*.f64 (neg.f64 re) (-.f64 (/.f64 (neg.f64 im) re) #s(literal 1 binary64))))
#s(approx (* (- re im) (+ im re)) (*.f64 (+.f64 im re) (-.f64 re im)))
#s(approx (* (neg im) im) (*.f64 (neg.f64 im) im))
#s(approx (neg im) (neg.f64 im))
#s(approx im im)
#s(approx (* (- re im) (+ im re)) (+.f64 (*.f64 (*.f64 #s(literal 0 binary64) re) im) (*.f64 re re)))
#s(approx (* (- re im) (+ im re)) (+.f64 (*.f64 (+.f64 (*.f64 #s(literal -1 binary64) (+.f64 im re)) re) im) (*.f64 re re)))
#s(approx (- re im) (+.f64 (neg.f64 im) re))
#s(approx (* (- re im) (+ im re)) (*.f64 (-.f64 (/.f64 (*.f64 re re) (*.f64 im im)) #s(literal 1 binary64)) (*.f64 im im)))
#s(approx (* (- re im) (+ im re)) (*.f64 (-.f64 (*.f64 #s(literal 0 binary64) (/.f64 re im)) #s(literal 1 binary64)) (*.f64 im im)))
#s(approx (* (- re im) (+ im re)) (*.f64 (-.f64 (+.f64 (*.f64 #s(literal 0 binary64) (/.f64 re im)) (/.f64 (*.f64 re re) (*.f64 im im))) #s(literal 1 binary64)) (*.f64 im im)))
#s(approx (- re im) (*.f64 (-.f64 (/.f64 re im) #s(literal 1 binary64)) im))
#s(approx (+ im re) (*.f64 (+.f64 (/.f64 re im) #s(literal 1 binary64)) im))
#s(approx (* (- re im) (+ im re)) (*.f64 (-.f64 (neg.f64 (*.f64 #s(literal 0 binary64) (/.f64 re im))) #s(literal 1 binary64)) (*.f64 im im)))
#s(approx (* (- re im) (+ im re)) (*.f64 (-.f64 (neg.f64 (/.f64 (+.f64 (*.f64 #s(literal 0 binary64) re) (neg.f64 (/.f64 (*.f64 re re) im))) im)) #s(literal 1 binary64)) (*.f64 im im)))
#s(approx (- re im) (*.f64 (neg.f64 im) (+.f64 (/.f64 (neg.f64 re) im) #s(literal 1 binary64))))
#s(approx (+ im re) (*.f64 (neg.f64 im) (-.f64 (/.f64 (neg.f64 re) im) #s(literal 1 binary64))))

eval7.0ms (0.6%)

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

Compiled 1 193 to 248 computations (79.2% saved)

prune5.0ms (0.4%)

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

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New82082
Fresh000
Picked033
Done000
Total82385
Accuracy
100.0%
Counts
85 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 re im) (+.f64 im re))
56.6%
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
51.7%
#s(approx (- (* re re) (* im im)) (*.f64 re re))
Compiler

Compiled 67 to 35 computations (47.8% saved)

regimes10.0ms (0.8%)

Memory
-30.1MiB live, 16.3MiB allocated; 2ms collecting garbage
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (- (* re re) (* im im)) (*.f64 re re))
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
(*.f64 (-.f64 re im) (+.f64 im re))
(-.f64 (*.f64 re re) (*.f64 im im))
Outputs
(*.f64 (-.f64 re im) (+.f64 im re))
Calls

5 calls:

3.0ms
(*.f64 im im)
2.0ms
im
2.0ms
re
2.0ms
(-.f64 (*.f64 re re) (*.f64 im im))
1.0ms
(*.f64 re re)
Results
AccuracySegmentsBranch
100.0%1(*.f64 im im)
100.0%1(*.f64 re re)
100.0%1(-.f64 (*.f64 re re) (*.f64 im im))
100.0%1re
100.0%1im
Compiler

Compiled 15 to 15 computations (0% saved)

regimes6.0ms (0.5%)

Memory
16.1MiB live, 16.1MiB allocated; 0ms collecting garbage
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (* re re) (* im im)) (*.f64 re re))
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
Outputs
#s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im))
#s(approx (- (* re re) (* im im)) (*.f64 re re))
Calls

5 calls:

1.0ms
im
1.0ms
re
1.0ms
(-.f64 (*.f64 re re) (*.f64 im im))
1.0ms
(*.f64 im im)
1.0ms
(*.f64 re re)
Results
AccuracySegmentsBranch
78.8%2(*.f64 im im)
81.2%2(*.f64 re re)
97.6%2(-.f64 (*.f64 re re) (*.f64 im im))
81.2%2re
78.8%2im
Compiler

Compiled 15 to 15 computations (0% saved)

regimes5.0ms (0.4%)

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

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (* re re) (* im im)) (*.f64 re re))
Outputs
#s(approx (- (* re re) (* im im)) (*.f64 re re))
Calls

5 calls:

1.0ms
im
1.0ms
re
1.0ms
(-.f64 (*.f64 re re) (*.f64 im im))
1.0ms
(*.f64 im im)
1.0ms
(*.f64 re re)
Results
AccuracySegmentsBranch
51.7%1(*.f64 im im)
51.7%1im
51.7%1(*.f64 re re)
51.7%1re
51.7%1(-.f64 (*.f64 re re) (*.f64 im im))
Compiler

Compiled 15 to 15 computations (0% saved)

bsearch0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated; 0ms collecting garbage
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
-7.184701574344e-311
0.0
Compiler

Compiled 10 to 10 computations (0% saved)

simplify61.0ms (4.7%)

Memory
-21.3MiB live, 23.4MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01851
13951
210451
324751
442551
586051
6140951
7209351
8292451
9323451
10329651
11329651
12337451
Stop Event
saturated
Calls
Call 1
Inputs
(*.f64 (-.f64 re im) (+.f64 im re))
(if (<=.f64 (-.f64 (*.f64 re re) (*.f64 im im)) #s(literal -5060056332683/101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 binary64)) #s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im)) #s(approx (- (* re re) (* im im)) (*.f64 re re)))
#s(approx (- (* re re) (* im im)) (*.f64 re re))
Outputs
(*.f64 (-.f64 re im) (+.f64 im re))
(if (<=.f64 (-.f64 (*.f64 re re) (*.f64 im im)) #s(literal -5060056332683/101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 binary64)) #s(approx (- (* re re) (* im im)) (*.f64 (neg.f64 im) im)) #s(approx (- (* re re) (* im im)) (*.f64 re re)))
#s(approx (- (* re re) (* im im)) (*.f64 re re))

derivations9.0ms (0.7%)

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

Compiled 51 to 18 computations (64.7% saved)

preprocess15.0ms (1.2%)

Memory
28.4MiB live, 28.4MiB allocated; 0ms collecting garbage
Remove

(abs im)

(abs re)

Compiler

Compiled 144 to 66 computations (54.2% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...