Example from Robby

Time bar (total: 5.2s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze666.0ms (12.8%)

Memory
-11.8MiB live, 745.5MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
0%0%99.9%0.1%0%0%0%2
0%0%99.9%0.1%0%0%0%3
0%0%99.9%0.1%0%0%0%4
0%0%99.9%0.1%0%0%0%5
0%0%99.9%0.1%0%0%0%6
18.8%18.7%81.1%0.1%0%0%0%7
18.8%18.7%81.1%0.1%0%0%0%8
21.9%21.8%78%0.1%0%0%0%9
32.8%32.8%67.1%0.1%0%0%0%10
32.8%32.8%67.1%0.1%0%0%0%11
35.2%35.1%64.7%0.1%0%0%0%12
Compiler

Compiled 30 to 19 computations (36.7% saved)

sample2.4s (45.8%)

Memory
69.2MiB live, 2 202.7MiB allocated
Samples
2.0s8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 1.7s
ival-sin: 604.0ms (35.1% of total)
ival-cos: 383.0ms (22.2% of total)
ival-mult: 263.0ms (15.3% of total)
ival-tan: 169.0ms (9.8% of total)
ival-div: 140.0ms (8.1% of total)
ival-add: 62.0ms (3.6% of total)
ival-atan: 47.0ms (2.7% of total)
ival-fabs: 42.0ms (2.4% of total)
ival-true: 7.0ms (0.4% of total)
ival-assert: 4.0ms (0.2% of total)
Bogosity

explain928.0ms (17.9%)

Memory
-38.5MiB live, 907.8MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1540-0-(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
130-1(-2.0181319390267826e-281 3.2358522992271576e+40 -4.25861885236374e-111)(/.f64 (/.f64 eh ew) (tan.f64 t))
00-0-t
00-0-(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
00-0-(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
00-0-(/.f64 eh ew)
00-0-(*.f64 ew (sin.f64 t))
00-0-(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
00-0-(*.f64 eh (cos.f64 t))
00-0-(sin.f64 t)
00-0-(atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))
00-0-(cos.f64 t)
00-0-(sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
00-0-ew
00-0-(tan.f64 t)
00-0-(*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
00-0-eh
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
cos.f64(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))sensitivity1540
Confusion
Predicted +Predicted -
+00
-154102
Precision
0.0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-1540102
Precision?
0.0
Recall?
0/0
Freqs
test
numberfreq
0102
1154
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-100
Precision?
0.0
Recall?
0/0
Samples
551.0ms168×2valid
102.0ms128×1valid
68.0ms216×0valid
Compiler

Compiled 422 to 72 computations (82.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 677.0ms
ival-sin: 501.0ms (74% of total)
ival-cos: 87.0ms (12.9% of total)
ival-mult: 22.0ms (3.3% of total)
ival-tan: 18.0ms (2.7% of total)
adjust: 17.0ms (2.5% of total)
ival-div: 12.0ms (1.8% of total)
ival-atan: 9.0ms (1.3% of total)
ival-fabs: 5.0ms (0.7% of total)
ival-add: 4.0ms (0.6% of total)
ival-true: 1.0ms (0.1% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.1%)

Memory
6.6MiB live, 6.6MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Outputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Compiler

Compiled 28 to 17 computations (39.3% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 3 computations (-∞% saved)

prune1.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.8%
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Compiler

Compiled 28 to 17 computations (39.3% saved)

simplify1.0ms (0%)

Memory
1.3MiB live, 1.3MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 ew (sin.f64 t))
cost-diff0
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
cost-diff0
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
cost-diff0
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Calls
Call 1
Inputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
ew
(sin.f64 t)
t
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(/.f64 eh ew)
eh
(tan.f64 t)
(*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 eh (cos.f64 t))
(cos.f64 t)
(sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
Outputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
ew
(sin.f64 t)
t
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(/.f64 eh ew)
eh
(tan.f64 t)
(*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 eh (cos.f64 t))
(cos.f64 t)
(sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))

localize371.0ms (7.1%)

Memory
-7.8MiB live, 353.1MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.1328125
(*.f64 ew (sin.f64 t))
accuracy0.13671875
(*.f64 eh (cos.f64 t))
accuracy3.05386876105406
(/.f64 (/.f64 eh ew) (tan.f64 t))
accuracy35.74664374490829
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
Samples
257.0ms84×2valid
49.0ms108×0valid
48.0ms64×1valid
Compiler

Compiled 262 to 36 computations (86.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 320.0ms
ival-sin: 208.0ms (65% of total)
ival-cos: 69.0ms (21.6% of total)
ival-mult: 11.0ms (3.4% of total)
adjust: 8.0ms (2.5% of total)
ival-tan: 8.0ms (2.5% of total)
ival-div: 6.0ms (1.9% of total)
ival-atan: 4.0ms (1.3% of total)
ival-add: 2.0ms (0.6% of total)
ival-fabs: 2.0ms (0.6% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series64.0ms (1.2%)

Memory
-11.5MiB live, 68.0MiB allocated
Counts
7 → 32
Calls
Call 1
Inputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(*.f64 eh (cos.f64 t))
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(cos (atan (/ (* eh (cos t)) (* ew (sin t)))))
(/ (* eh (cos t)) (* ew (sin t)))
(* eh (cos t))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* t (+ (* -1/6 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* 1/120 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* (pow t 2) (+ (* -1/5040 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* 1/120 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
(/ eh (* ew t))
(/ (+ (* -1/3 (/ (* eh (pow t 2)) ew)) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/3 (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew)))) (+ (* -2/45 (/ eh ew)) (* 17/315 (/ eh ew)))))) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
eh
(+ eh (* -1/2 (* eh (pow t 2))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* 1/24 (* eh (pow t 2))))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* (pow t 2) (+ (* -1/720 (* eh (pow t 2))) (* 1/24 eh))))))
Calls

9 calls:

TimeVariablePointExpression
28.0ms
eh
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)) (* eh (cos t)))
5.0ms
t
@0
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)) (* eh (cos t)))
5.0ms
eh
@0
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)) (* eh (cos t)))
4.0ms
t
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)) (* eh (cos t)))
4.0ms
ew
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)) (* eh (cos t)))

simplify1.0ms (0%)

Memory
1.1MiB live, 1.1MiB allocated
Algorithm
egg-herbie
Counts
32 → 7
Calls
Call 1
Inputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(cos (atan (/ (* eh (cos t)) (* ew (sin t)))))
(/ (* eh (cos t)) (* ew (sin t)))
(* eh (cos t))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* t (+ (* -1/6 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* 1/120 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* (pow t 2) (+ (* -1/5040 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* 1/120 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
(/ eh (* ew t))
(/ (+ (* -1/3 (/ (* eh (pow t 2)) ew)) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/3 (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew)))) (+ (* -2/45 (/ eh ew)) (* 17/315 (/ eh ew)))))) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
eh
(+ eh (* -1/2 (* eh (pow t 2))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* 1/24 (* eh (pow t 2))))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* (pow t 2) (+ (* -1/720 (* eh (pow t 2))) (* 1/24 eh))))))
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(cos (atan (/ (* eh (cos t)) (* ew (sin t)))))
(*.f64 ew (sin.f64 t))
(/ (* eh (cos t)) (* ew (sin t)))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(* eh (cos t))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(*.f64 eh (cos.f64 t))

rewrite0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Counts
7 → 7
Calls
Call 1
Inputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(*.f64 eh (cos.f64 t))
Outputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(*.f64 eh (cos.f64 t))

eval2.0ms (0%)

Memory
2.8MiB live, 2.8MiB allocated
Compiler

Compiled 554 to 56 computations (89.9% saved)

prune2.0ms (0%)

Memory
2.8MiB live, 2.8MiB allocated
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New14216
Fresh000
Picked011
Done000
Total14317
Accuracy
99.8%
Counts
17 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.8%
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
42.0%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
61.7%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
Compiler

Compiled 103 to 63 computations (38.8% saved)

simplify1.0ms (0%)

Memory
1.2MiB live, 1.2MiB allocated
Algorithm
egg-herbie
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 ew (sin.f64 t))
cost-diff0
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
cost-diff0
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
cost-diff0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
cost-diff0
(cos.f64 t)
cost-diff0
(*.f64 eh (cos.f64 t))
cost-diff0
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
cost-diff0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
(*.f64 eh (cos.f64 t))
eh
(cos.f64 t)
t
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
ew
(sin.f64 t)
t
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(/.f64 eh ew)
eh
(tan.f64 t)
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
(*.f64 eh (cos.f64 t))
eh
(cos.f64 t)
t
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
ew
(sin.f64 t)
t
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))
(/.f64 (/.f64 eh ew) (tan.f64 t))
(/.f64 eh ew)
eh
(tan.f64 t)

localize342.0ms (6.6%)

Memory
18.4MiB live, 290.6MiB allocated
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.1328125
(*.f64 ew (sin.f64 t))
accuracy3.05386876105406
(/.f64 (/.f64 eh ew) (tan.f64 t))
accuracy35.74664374490829
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
accuracy37.31732567647598
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
accuracy0.0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
accuracy0.0
(cos.f64 t)
accuracy0.13671875
(*.f64 eh (cos.f64 t))
accuracy43.605697313426866
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
Samples
261.0ms84×2valid
43.0ms64×1valid
23.0ms108×0valid
Compiler

Compiled 372 to 49 computations (86.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 305.0ms
ival-sin: 220.0ms (72.1% of total)
ival-cos: 41.0ms (13.4% of total)
ival-mult: 11.0ms (3.6% of total)
adjust: 8.0ms (2.6% of total)
ival-tan: 8.0ms (2.6% of total)
ival-div: 6.0ms (2% of total)
ival-atan: 4.0ms (1.3% of total)
ival-add: 2.0ms (0.7% of total)
ival-fabs: 2.0ms (0.7% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series28.0ms (0.5%)

Memory
6.4MiB live, 43.4MiB allocated
Counts
10 → 37
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
(*.f64 eh (cos.f64 t))
(cos.f64 t)
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(/.f64 (/.f64 eh ew) (tan.f64 t))
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(* eh (cos t))
(cos (atan (/ (* eh (cos t)) (* ew (sin t)))))
(/ (* eh (cos t)) (* ew (sin t)))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
eh
(+ eh (* -1/2 (* eh (pow t 2))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* 1/24 (* eh (pow t 2))))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* (pow t 2) (+ (* -1/720 (* eh (pow t 2))) (* 1/24 eh))))))
1
(+ 1 (* -1/2 (pow t 2)))
(+ 1 (* (pow t 2) (- (* 1/24 (pow t 2)) 1/2)))
(+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/24 (* -1/720 (pow t 2)))) 1/2)))
(* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* t (+ (* -1/6 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* 1/120 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* (pow t 2) (+ (* -1/5040 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* 1/120 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
(/ eh (* ew t))
(/ (+ (* -1/3 (/ (* eh (pow t 2)) ew)) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/3 (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew)))) (+ (* -2/45 (/ eh ew)) (* 17/315 (/ eh ew)))))) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
(cos t)
Calls

9 calls:

TimeVariablePointExpression
8.0ms
eh
@inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)))
3.0ms
eh
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)))
3.0ms
ew
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)))
2.0ms
eh
@0
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)))
2.0ms
ew
@0
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))) (/ (/ eh ew) (tan t)))

simplify1.0ms (0%)

Memory
1.2MiB live, 1.1MiB allocated
Algorithm
egg-herbie
Counts
37 → 10
Calls
Call 1
Inputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(* eh (cos t))
(cos (atan (/ (* eh (cos t)) (* ew (sin t)))))
(/ (* eh (cos t)) (* ew (sin t)))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
eh
(+ eh (* -1/2 (* eh (pow t 2))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* 1/24 (* eh (pow t 2))))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* (pow t 2) (+ (* -1/720 (* eh (pow t 2))) (* 1/24 eh))))))
1
(+ 1 (* -1/2 (pow t 2)))
(+ 1 (* (pow t 2) (- (* 1/24 (pow t 2)) 1/2)))
(+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/24 (* -1/720 (pow t 2)))) 1/2)))
(* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* t (+ (* -1/6 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* 1/120 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))))))
(* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* (pow t 2) (+ (* -1/6 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* (pow t 2) (+ (* -1/5040 (* ew (* (pow t 2) (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* 1/120 (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
(/ eh (* ew t))
(/ (+ (* -1/3 (/ (* eh (pow t 2)) ew)) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
(/ (+ (* (pow t 2) (- (* (pow t 2) (- (* -1 (* (pow t 2) (+ (* -1/3 (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew)))) (+ (* -2/45 (/ eh ew)) (* 17/315 (/ eh ew)))))) (+ (* -1/9 (/ eh ew)) (* 2/15 (/ eh ew))))) (* 1/3 (/ eh ew)))) (/ eh ew)) t)
(cos t)
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(*.f64 eh (cos.f64 t))
(* eh (cos t))
(cos.f64 t)
(cos (atan (/ (* eh (cos t)) (* ew (sin t)))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(/ (* eh (cos t)) (* ew (sin t)))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(*.f64 ew (sin.f64 t))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(* ew (sin t))
(/.f64 (/.f64 eh ew) (tan.f64 t))

rewrite1.0ms (0%)

Memory
0.9MiB live, 0.9MiB allocated
Counts
10 → 10
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
(*.f64 eh (cos.f64 t))
(cos.f64 t)
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(/.f64 (/.f64 eh ew) (tan.f64 t))
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))
(*.f64 eh (cos.f64 t))
(cos.f64 t)
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
(*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))
(*.f64 ew (sin.f64 t))
(cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))
(/.f64 (/.f64 eh ew) (tan.f64 t))

eval10.0ms (0.2%)

Memory
-34.9MiB live, 3.4MiB allocated
Compiler

Compiled 831 to 55 computations (93.4% saved)

prune4.0ms (0.1%)

Memory
7.3MiB live, 7.3MiB allocated
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New16218
Fresh000
Picked112
Done011
Total17421
Accuracy
99.8%
Counts
21 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.8%
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
42.1%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
61.7%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
5.6%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
Compiler

Compiled 130 to 77 computations (40.8% saved)

simplify1.0ms (0%)

Memory
0.9MiB live, 0.9MiB allocated
Algorithm
egg-herbie
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sin.f64 t)
cost-diff0
(*.f64 ew (sin.f64 t))
cost-diff0
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
cost-diff0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
cost-diff0
(cos.f64 t)
cost-diff0
#s(approx (* eh (cos t)) (cos.f64 t))
cost-diff0
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
cost-diff0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
#s(approx (* eh (cos t)) (cos.f64 t))
(cos.f64 t)
t
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
(*.f64 ew (sin.f64 t))
ew
(sin.f64 t)
t
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
#s(approx (* eh (cos t)) (cos.f64 t))
(cos.f64 t)
t
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
(*.f64 ew (sin.f64 t))
ew
(sin.f64 t)
t

localize82.0ms (1.6%)

Memory
1.6MiB live, 83.7MiB allocated
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(sin.f64 t)
accuracy0.0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
accuracy0.1328125
(*.f64 ew (sin.f64 t))
accuracy36.98120982116776
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
accuracy0.0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
accuracy0.0
(cos.f64 t)
accuracy43.605697313426866
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
accuracy61.765432369992624
#s(approx (* eh (cos t)) (cos.f64 t))
Samples
59.0ms256×0valid
Compiler

Compiled 281 to 43 computations (84.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 49.0ms
ival-sin: 15.0ms (30.9% of total)
ival-cos: 14.0ms (28.8% of total)
ival-mult: 7.0ms (14.4% of total)
ival-tan: 5.0ms (10.3% of total)
ival-div: 4.0ms (8.2% of total)
ival-add: 1.0ms (2.1% of total)
ival-fabs: 1.0ms (2.1% of total)
ival-atan: 1.0ms (2.1% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series14.0ms (0.3%)

Memory
17.4MiB live, 17.4MiB allocated
Counts
8 → 32
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
#s(approx (* eh (cos t)) (cos.f64 t))
(cos.f64 t)
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
(*.f64 ew (sin.f64 t))
(sin.f64 t)
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(* eh (cos t))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
eh
(+ eh (* -1/2 (* eh (pow t 2))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* 1/24 (* eh (pow t 2))))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* (pow t 2) (+ (* -1/720 (* eh (pow t 2))) (* 1/24 eh))))))
1
(+ 1 (* -1/2 (pow t 2)))
(+ 1 (* (pow t 2) (- (* 1/24 (pow t 2)) 1/2)))
(+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/24 (* -1/720 (pow t 2)))) 1/2)))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
t
(* t (+ 1 (* -1/6 (pow t 2))))
(* t (+ 1 (* (pow t 2) (- (* 1/120 (pow t 2)) 1/6))))
(* t (+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/120 (* -1/5040 (pow t 2)))) 1/6))))
(cos t)
(sin t)
Calls

9 calls:

TimeVariablePointExpression
2.0ms
eh
@0
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
2.0ms
t
@inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
2.0ms
eh
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
2.0ms
t
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
2.0ms
ew
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* eh (cos t)) (cos t) (fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))

simplify1.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Algorithm
egg-herbie
Counts
32 → 8
Calls
Call 1
Inputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(* eh (cos t))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
eh
(+ eh (* -1/2 (* eh (pow t 2))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* 1/24 (* eh (pow t 2))))))
(+ eh (* (pow t 2) (+ (* -1/2 eh) (* (pow t 2) (+ (* -1/720 (* eh (pow t 2))) (* 1/24 eh))))))
1
(+ 1 (* -1/2 (pow t 2)))
(+ 1 (* (pow t 2) (- (* 1/24 (pow t 2)) 1/2)))
(+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/24 (* -1/720 (pow t 2)))) 1/2)))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
t
(* t (+ 1 (* -1/6 (pow t 2))))
(* t (+ 1 (* (pow t 2) (- (* 1/120 (pow t 2)) 1/6))))
(* t (+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/120 (* -1/5040 (pow t 2)))) 1/6))))
(cos t)
(sin t)
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
#s(approx (* eh (cos t)) (cos.f64 t))
(* eh (cos t))
(cos.f64 t)
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(*.f64 ew (sin.f64 t))
(* ew (sin t))
(sin.f64 t)

rewrite0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Counts
8 → 8
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
#s(approx (* eh (cos t)) (cos.f64 t))
(cos.f64 t)
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
(*.f64 ew (sin.f64 t))
(sin.f64 t)
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t)))
#s(approx (* eh (cos t)) (cos.f64 t))
(cos.f64 t)
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))
(*.f64 ew (sin.f64 t))
(sin.f64 t)

eval1.0ms (0%)

Memory
1.6MiB live, 1.6MiB allocated
Compiler

Compiled 564 to 35 computations (93.8% saved)

prune28.0ms (0.5%)

Memory
-30.6MiB live, 7.3MiB allocated
Pruning

5 alts after pruning (1 fresh and 4 done)

PrunedKeptTotal
New12113
Fresh000
Picked022
Done022
Total12517
Accuracy
99.8%
Counts
17 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.8%
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
42.1%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
61.7%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
5.1%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
5.6%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
Compiler

Compiled 166 to 97 computations (41.6% saved)

simplify0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sin.f64 t)
cost-diff0
#s(approx (* ew (sin t)) (sin.f64 t))
cost-diff0
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
cost-diff0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
#s(approx (* ew (sin t)) (sin.f64 t))
(sin.f64 t)
t
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
#s(approx (* ew (sin t)) (sin.f64 t))
(sin.f64 t)
t

localize66.0ms (1.3%)

Memory
16.3MiB live, 53.2MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(sin.f64 t)
accuracy0.0
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
accuracy36.98120982116776
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
accuracy61.36344759290878
#s(approx (* ew (sin t)) (sin.f64 t))
Samples
58.0ms256×0valid
Compiler

Compiled 145 to 39 computations (73.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 45.0ms
ival-sin: 15.0ms (33.5% of total)
ival-cos: 10.0ms (22.3% of total)
ival-mult: 7.0ms (15.6% of total)
ival-tan: 5.0ms (11.2% of total)
ival-div: 3.0ms (6.7% of total)
ival-add: 1.0ms (2.2% of total)
ival-fabs: 1.0ms (2.2% of total)
ival-atan: 1.0ms (2.2% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series11.0ms (0.2%)

Memory
12.2MiB live, 12.2MiB allocated
Counts
4 → 22
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
#s(approx (* ew (sin t)) (sin.f64 t))
(sin.f64 t)
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
t
(* t (+ 1 (* -1/6 (pow t 2))))
(* t (+ 1 (* (pow t 2) (- (* 1/120 (pow t 2)) 1/6))))
(* t (+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/120 (* -1/5040 (pow t 2)))) 1/6))))
(sin t)
Calls

9 calls:

TimeVariablePointExpression
1.0ms
ew
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
1.0ms
t
@-inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
1.0ms
t
@inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
1.0ms
ew
@0
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))
1.0ms
ew
@inf
((fabs (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))) (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (* ew (sin t)) (sin t))

simplify1.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Algorithm
egg-herbie
Counts
22 → 4
Calls
Call 1
Inputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(* eh (+ (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))
(* -1 (* eh (+ (* -1 (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1 (/ (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) eh)))))
(* ew (sin t))
(* ew (+ (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)) (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))
(* -1 (* ew (+ (* -1 (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))) (* -1 (/ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) ew)))))
(* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (* t (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))) (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))
(+ (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* ew (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))) (* t (+ (* -1/2 (* eh (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* -1/6 (* ew (* t (cos (atan (/ (* eh (cos t)) (* ew (sin t)))))))))))))
(* ew t)
(* t (+ ew (* -1/6 (* ew (pow t 2)))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* 1/120 (* ew (pow t 2)))))))
(* t (+ ew (* (pow t 2) (+ (* -1/6 ew) (* (pow t 2) (+ (* -1/5040 (* ew (pow t 2))) (* 1/120 ew)))))))
t
(* t (+ 1 (* -1/6 (pow t 2))))
(* t (+ 1 (* (pow t 2) (- (* 1/120 (pow t 2)) 1/6))))
(* t (+ 1 (* (pow t 2) (- (* (pow t 2) (+ 1/120 (* -1/5040 (pow t 2)))) 1/6))))
(sin t)
Outputs
(fabs (+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
(* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t)))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
(+ (* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t))))))) (* ew (* (cos (atan (/ (* eh (cos t)) (* ew (sin t))))) (sin t))))
#s(approx (* ew (sin t)) (sin.f64 t))
(* eh (* (cos t) (sin (atan (/ (* eh (cos t)) (* ew (sin t)))))))
(sin.f64 t)

rewrite0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Counts
4 → 4
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
#s(approx (* ew (sin t)) (sin.f64 t))
(sin.f64 t)
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
#s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t)))
#s(approx (* ew (sin t)) (sin.f64 t))
(sin.f64 t)

eval1.0ms (0%)

Memory
0.9MiB live, 0.9MiB allocated
Compiler

Compiled 304 to 26 computations (91.4% saved)

prune5.0ms (0.1%)

Memory
6.3MiB live, 6.3MiB allocated
Pruning

5 alts after pruning (0 fresh and 5 done)

PrunedKeptTotal
New707
Fresh000
Picked011
Done044
Total7512
Accuracy
99.8%
Counts
12 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.8%
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
42.1%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
61.7%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
5.1%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
5.6%
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
Compiler

Compiled 374 to 139 computations (62.8% saved)

regimes29.0ms (0.6%)

Memory
-20.1MiB live, 17.9MiB allocated
Counts
6 → 1
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Outputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Calls

5 calls:

18.0ms
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
3.0ms
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
2.0ms
t
2.0ms
eh
2.0ms
ew
Results
AccuracySegmentsBranch
99.8%1eh
99.8%1ew
99.8%1t
99.8%1(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
99.8%1(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
Compiler

Compiled 58 to 42 computations (27.6% saved)

regimes12.0ms (0.2%)

Memory
14.3MiB live, 14.3MiB allocated
Counts
5 → 3
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
Calls

5 calls:

2.0ms
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
2.0ms
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
2.0ms
eh
2.0ms
ew
2.0ms
t
Results
AccuracySegmentsBranch
77.3%3eh
76.6%3ew
65.2%2t
61.7%1(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
61.7%1(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
Compiler

Compiled 58 to 42 computations (27.6% saved)

regimes7.0ms (0.1%)

Memory
10.2MiB live, 10.2MiB allocated
Counts
3 → 1
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
Calls

4 calls:

2.0ms
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
2.0ms
ew
2.0ms
eh
2.0ms
t
Results
AccuracySegmentsBranch
61.7%1(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
61.7%1t
61.7%1ew
61.7%1eh
Compiler

Compiled 31 to 26 computations (16.1% saved)

regimes19.0ms (0.4%)

Memory
-33.2MiB live, 11.8MiB allocated
Accuracy

Total -0.6b remaining (-1%)

Threshold costs -0.6b (-1%)

Counts
2 → 1
Calls
Call 1
Inputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* ew (sin t)) (sin.f64 t))))
Outputs
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
Calls

5 calls:

13.0ms
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
2.0ms
(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
1.0ms
t
1.0ms
ew
1.0ms
eh
Results
AccuracySegmentsBranch
5.6%1ew
5.6%1eh
5.6%1(+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))))
5.6%1t
5.6%1(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
Compiler

Compiled 58 to 42 computations (27.6% saved)

bsearch70.0ms (1.3%)

Memory
16.5MiB live, 94.1MiB allocated
Algorithm
binary-search
Stop Event
narrow-enough
narrow-enough
Steps
TimeLeftRight
38.0ms
9.525815159732071e-95
4.502257414592215e-94
28.0ms
-958.5602881812347
-59.8697717132715
Samples
50.0ms208×0valid
Compiler

Compiled 889 to 569 computations (36% saved)

Precisions
Click to see histograms. Total time spent on operations: 44.0ms
ival-mult: 13.0ms (29.8% of total)
ival-sin: 12.0ms (27.5% of total)
ival-cos: 8.0ms (18.3% of total)
ival-tan: 4.0ms (9.2% of total)
ival-div: 3.0ms (6.9% of total)
ival-add: 1.0ms (2.3% of total)
ival-fabs: 1.0ms (2.3% of total)
ival-atan: 1.0ms (2.3% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

simplify5.0ms (0.1%)

Memory
15.8MiB live, 15.8MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(if (<=.f64 eh #s(literal -60 binary64)) (fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))) (if (<=.f64 eh #s(literal 267733854436217/2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976 binary64)) (fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))) (fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))
Outputs
(fabs.f64 (+.f64 (*.f64 (*.f64 ew (sin.f64 t)) (cos.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t))))) (*.f64 (*.f64 eh (cos.f64 t)) (sin.f64 (atan.f64 (/.f64 (/.f64 eh ew) (tan.f64 t)))))))
(if (<=.f64 eh #s(literal -60 binary64)) (fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t)))) (if (<=.f64 eh #s(literal 267733854436217/2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976 binary64)) (fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 ew (sin.f64 t)))) (fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) (*.f64 eh (cos.f64 t))))
(fabs.f64 #s(approx (+ (* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t))))) (* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t)))))) #s(approx (* eh (cos t)) (cos.f64 t))))

soundness2.0ms (0%)

Memory
-36.2MiB live, 3.2MiB allocated
Stop Event
done
Compiler

Compiled 204 to 43 computations (78.9% saved)

preprocess33.0ms (0.6%)

Memory
33.5MiB live, 76.3MiB allocated
Compiler

Compiled 464 to 120 computations (74.1% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...