Average Error: 11.5 → 12.1
Time: 36.0s
Precision: 64
Internal Precision: 128
\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
\[\begin{array}{l} \mathbf{if}\;j \le -1.0880600982445826 \cdot 10^{-210}:\\ \;\;\;\;\left(\sqrt[3]{\left(t \cdot c - i \cdot y\right) \cdot j} \cdot \sqrt[3]{\left(t \cdot c - i \cdot y\right) \cdot j}\right) \cdot \sqrt[3]{\left(\sqrt[3]{t \cdot c - i \cdot y} \cdot j\right) \cdot \left(\sqrt[3]{t \cdot c - i \cdot y} \cdot \sqrt[3]{t \cdot c - i \cdot y}\right)} + \left(x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - a \cdot i\right)\right)\\ \mathbf{elif}\;j \le 2.510928678763787 \cdot 10^{-154}:\\ \;\;\;\;x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - a \cdot t\right) - \left(\left(\sqrt[3]{\sqrt[3]{c \cdot z - a \cdot i} \cdot \sqrt[3]{c \cdot z - a \cdot i}} \cdot \sqrt[3]{\sqrt[3]{c \cdot z - a \cdot i}}\right) \cdot \sqrt[3]{c \cdot z - a \cdot i}\right) \cdot \left(b \cdot \sqrt[3]{c \cdot z - a \cdot i}\right)\right) + \left(t \cdot c - i \cdot y\right) \cdot j\\ \end{array}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus i

Bits error versus j

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 3 regimes
  2. if j < -1.0880600982445826e-210

    1. Initial program 9.9

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Initial simplification9.9

      \[\leadsto \left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\]
    3. Using strategy rm
    4. Applied add-cube-cbrt10.2

      \[\leadsto \color{blue}{\left(\sqrt[3]{\left(t \cdot c - y \cdot i\right) \cdot j} \cdot \sqrt[3]{\left(t \cdot c - y \cdot i\right) \cdot j}\right) \cdot \sqrt[3]{\left(t \cdot c - y \cdot i\right) \cdot j}} + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\]
    5. Using strategy rm
    6. Applied add-cube-cbrt10.2

      \[\leadsto \left(\sqrt[3]{\left(t \cdot c - y \cdot i\right) \cdot j} \cdot \sqrt[3]{\left(t \cdot c - y \cdot i\right) \cdot j}\right) \cdot \sqrt[3]{\color{blue}{\left(\left(\sqrt[3]{t \cdot c - y \cdot i} \cdot \sqrt[3]{t \cdot c - y \cdot i}\right) \cdot \sqrt[3]{t \cdot c - y \cdot i}\right)} \cdot j} + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\]
    7. Applied associate-*l*10.2

      \[\leadsto \left(\sqrt[3]{\left(t \cdot c - y \cdot i\right) \cdot j} \cdot \sqrt[3]{\left(t \cdot c - y \cdot i\right) \cdot j}\right) \cdot \sqrt[3]{\color{blue}{\left(\sqrt[3]{t \cdot c - y \cdot i} \cdot \sqrt[3]{t \cdot c - y \cdot i}\right) \cdot \left(\sqrt[3]{t \cdot c - y \cdot i} \cdot j\right)}} + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\]

    if -1.0880600982445826e-210 < j < 2.510928678763787e-154

    1. Initial program 16.8

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Initial simplification16.8

      \[\leadsto \left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\]
    3. Taylor expanded around 0 18.0

      \[\leadsto \color{blue}{0} + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\]

    if 2.510928678763787e-154 < j

    1. Initial program 9.2

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Initial simplification9.2

      \[\leadsto \left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\]
    3. Using strategy rm
    4. Applied add-cube-cbrt9.4

      \[\leadsto \left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \color{blue}{\left(\left(\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \sqrt[3]{z \cdot c - i \cdot a}\right)} \cdot b\right)\]
    5. Applied associate-*l*9.4

      \[\leadsto \left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \color{blue}{\left(\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \left(\sqrt[3]{z \cdot c - i \cdot a} \cdot b\right)}\right)\]
    6. Using strategy rm
    7. Applied add-cube-cbrt9.4

      \[\leadsto \left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(\sqrt[3]{\color{blue}{\left(\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \sqrt[3]{z \cdot c - i \cdot a}}} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \left(\sqrt[3]{z \cdot c - i \cdot a} \cdot b\right)\right)\]
    8. Applied cbrt-prod9.5

      \[\leadsto \left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(\color{blue}{\left(\sqrt[3]{\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}} \cdot \sqrt[3]{\sqrt[3]{z \cdot c - i \cdot a}}\right)} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \left(\sqrt[3]{z \cdot c - i \cdot a} \cdot b\right)\right)\]
  3. Recombined 3 regimes into one program.
  4. Final simplification12.1

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \le -1.0880600982445826 \cdot 10^{-210}:\\ \;\;\;\;\left(\sqrt[3]{\left(t \cdot c - i \cdot y\right) \cdot j} \cdot \sqrt[3]{\left(t \cdot c - i \cdot y\right) \cdot j}\right) \cdot \sqrt[3]{\left(\sqrt[3]{t \cdot c - i \cdot y} \cdot j\right) \cdot \left(\sqrt[3]{t \cdot c - i \cdot y} \cdot \sqrt[3]{t \cdot c - i \cdot y}\right)} + \left(x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - a \cdot i\right)\right)\\ \mathbf{elif}\;j \le 2.510928678763787 \cdot 10^{-154}:\\ \;\;\;\;x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - a \cdot t\right) - \left(\left(\sqrt[3]{\sqrt[3]{c \cdot z - a \cdot i} \cdot \sqrt[3]{c \cdot z - a \cdot i}} \cdot \sqrt[3]{\sqrt[3]{c \cdot z - a \cdot i}}\right) \cdot \sqrt[3]{c \cdot z - a \cdot i}\right) \cdot \left(b \cdot \sqrt[3]{c \cdot z - a \cdot i}\right)\right) + \left(t \cdot c - i \cdot y\right) \cdot j\\ \end{array}\]

Reproduce

herbie shell --seed 2018365 
(FPCore (x y z t a b c i j)
  :name "Linear.Matrix:det33 from linear-1.19.1.3"
  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))

Details

Time bar (total: 24.5s)Debug log

start271.0ms

Algorithm
intervals

setup207.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 13.8b

localize77.0ms

Local error

Found 4 expressions with local error:

6.9b
(* (- (* t c) (* y i)) j)
6.7b
(* (- (* z c) (* i a)) b)
4.9b
(* (- (* z y) (* t a)) x)
0.3b
(- (* t c) (* y i))

rewrite19.0ms

Algorithm
rewrite-expression-head
Counts
4 → 51
Calls

4 calls. Slowest were:

8.0ms
(* (- (* t c) (* y i)) j)
4.0ms
(* (- (* z c) (* i a)) b)
4.0ms
(* (- (* z y) (* t a)) x)

series191.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

64.0ms
(* (- (* z c) (* i a)) b)
51.0ms
(* (- (* t c) (* y i)) j)
49.0ms
(* (- (* z y) (* t a)) x)
27.0ms
(- (* t c) (* y i))

simplify1.7s

Counts
25 → 63
Calls

25 calls. Slowest were:

581.0ms
(* (- (pow (* z y) 3) (pow (* t a) 3)) x)
220.0ms
(* (- (pow (* t c) 3) (pow (* y i) 3)) j)
202.0ms
(* (- (pow (* z c) 3) (pow (* i a) 3)) b)

prune1.3s

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 9.2b

localize25.0ms

Local error

Found 4 expressions with local error:

8.5b
(cbrt (- (* z c) (* i a)))
8.5b
(cbrt (- (* z c) (* i a)))
8.5b
(cbrt (- (* z c) (* i a)))
6.9b
(* (- (* t c) (* y i)) j)

rewrite9.0ms

Algorithm
rewrite-expression-head
Counts
4 → 52
Calls

4 calls. Slowest were:

4.0ms
(* (- (* t c) (* y i)) j)
1.0ms
(cbrt (- (* z c) (* i a)))
1.0ms
(cbrt (- (* z c) (* i a)))

series434.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

143.0ms
(cbrt (- (* z c) (* i a)))
131.0ms
(cbrt (- (* z c) (* i a)))
115.0ms
(cbrt (- (* z c) (* i a)))
45.0ms
(* (- (* t c) (* y i)) j)

simplify4.2s

Counts
31 → 64
Calls

31 calls. Slowest were:

389.0ms
(cbrt (- (pow (* z c) 3) (pow (* i a) 3)))
361.0ms
(cbrt (- (pow (* z c) 3) (pow (* i a) 3)))
341.0ms
(exp (* -1/3 (+ (log (/ 1 z)) (log (/ 1 c)))))

prune1.5s

Pruning

18 alts after pruning (18 fresh and 0 done)

Merged error: 9.1b

localize41.0ms

Local error

Found 4 expressions with local error:

8.5b
(cbrt (- (* z c) (* i a)))
8.5b
(cbrt (- (* z c) (* i a)))
8.5b
(cbrt (- (* z c) (* i a)))
8.5b
(cbrt (- (* z c) (* i a)))

rewrite14.0ms

Algorithm
rewrite-expression-head
Counts
4 → 52
Calls

4 calls. Slowest were:

7.0ms
(cbrt (- (* z c) (* i a)))
2.0ms
(cbrt (- (* z c) (* i a)))
2.0ms
(cbrt (- (* z c) (* i a)))

series627.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

165.0ms
(cbrt (- (* z c) (* i a)))
163.0ms
(cbrt (- (* z c) (* i a)))
150.0ms
(cbrt (- (* z c) (* i a)))
149.0ms
(cbrt (- (* z c) (* i a)))

simplify5.1s

Counts
32 → 64
Calls

32 calls. Slowest were:

411.0ms
(cbrt (- (pow (* z c) 3) (pow (* i a) 3)))
396.0ms
(cbrt (- (pow (* z c) 3) (pow (* i a) 3)))
384.0ms
(exp (* -1/3 (+ (log (/ 1 z)) (log (/ 1 c)))))

prune2.0s

Pruning

18 alts after pruning (17 fresh and 1 done)

Merged error: 9.1b

localize27.0ms

Local error

Found 4 expressions with local error:

6.9b
(* (- (* t c) (* y i)) j)
6.9b
(* (- (* t c) (* y i)) j)
6.9b
(* (- (* t c) (* y i)) j)
6.7b
(* (- (* z c) (* i a)) b)

rewrite35.0ms

Algorithm
rewrite-expression-head
Counts
4 → 52
Calls

4 calls. Slowest were:

9.0ms
(* (- (* t c) (* y i)) j)
9.0ms
(* (- (* z c) (* i a)) b)
8.0ms
(* (- (* t c) (* y i)) j)

series229.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

74.0ms
(* (- (* t c) (* y i)) j)
67.0ms
(* (- (* t c) (* y i)) j)
45.0ms
(* (- (* z c) (* i a)) b)
44.0ms
(* (- (* t c) (* y i)) j)

simplify1.9s

Counts
28 → 64
Calls

28 calls. Slowest were:

241.0ms
(* (- (pow (* t c) 3) (pow (* y i) 3)) j)
222.0ms
(* (- (pow (* t c) 3) (pow (* y i) 3)) j)
220.0ms
(* (- (pow (* t c) 3) (pow (* y i) 3)) j)

prune1.6s

Pruning

20 alts after pruning (19 fresh and 1 done)

Merged error: 9.1b

regimes2.4s

Accuracy

-8.2% (3.7b remaining)

Error of 12.1b against oracle of 8.4b and baseline of 11.8b

bsearch599.0ms