
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y - x) * (z / t))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
def code(x, y, z, t): return x + ((y - x) * (z / t))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - x) * Float64(z / t))) end
function tmp = code(x, y, z, t) tmp = x + ((y - x) * (z / t)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \left(y - x\right) \cdot \frac{z}{t}
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y - x) * (z / t))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
def code(x, y, z, t): return x + ((y - x) * (z / t))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - x) * Float64(z / t))) end
function tmp = code(x, y, z, t) tmp = x + ((y - x) * (z / t)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \left(y - x\right) \cdot \frac{z}{t}
(FPCore (x y z t) :precision binary64 (134-z0z1z2z3z4 (/ 1 t) x t (- x y) z))
\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{t}\right), x, t, \left(x - y\right), z\right)
Initial program 98.0%
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
add-to-fractionN/A
mult-flipN/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift--.f64N/A
sub-negate-revN/A
lower-134-z0z1z2z3z4N/A
lower-/.f64N/A
lower--.f6499.8%
Applied rewrites99.8%
(FPCore (x y z t) :precision binary64 (+ x (/ (- y x) (/ t z))))
double code(double x, double y, double z, double t) {
return x + ((y - x) / (t / z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y - x) / (t / z))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) / (t / z));
}
def code(x, y, z, t): return x + ((y - x) / (t / z))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - x) / Float64(t / z))) end
function tmp = code(x, y, z, t) tmp = x + ((y - x) / (t / z)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \frac{y - x}{\frac{t}{z}}
Initial program 98.0%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6492.8%
Applied rewrites92.8%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
lift-/.f64N/A
lower-/.f6497.9%
Applied rewrites97.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (* y (/ z t)))))
(if (<=
y
-2274745500040835/842498333348457493583344221469363458551160763204392890034487820288)
t_1
(if (<=
y
1598517415830675/91343852333181432387730302044767688728495783936)
(* (- 1 (/ z t)) x)
t_1))))double code(double x, double y, double z, double t) {
double t_1 = x + (y * (z / t));
double tmp;
if (y <= -2.7e-51) {
tmp = t_1;
} else if (y <= 1.75e-32) {
tmp = (1.0 - (z / t)) * x;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * (z / t))
if (y <= (-2.7d-51)) then
tmp = t_1
else if (y <= 1.75d-32) then
tmp = (1.0d0 - (z / t)) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x + (y * (z / t));
double tmp;
if (y <= -2.7e-51) {
tmp = t_1;
} else if (y <= 1.75e-32) {
tmp = (1.0 - (z / t)) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + (y * (z / t)) tmp = 0 if y <= -2.7e-51: tmp = t_1 elif y <= 1.75e-32: tmp = (1.0 - (z / t)) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(y * Float64(z / t))) tmp = 0.0 if (y <= -2.7e-51) tmp = t_1; elseif (y <= 1.75e-32) tmp = Float64(Float64(1.0 - Float64(z / t)) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + (y * (z / t)); tmp = 0.0; if (y <= -2.7e-51) tmp = t_1; elseif (y <= 1.75e-32) tmp = (1.0 - (z / t)) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2274745500040835/842498333348457493583344221469363458551160763204392890034487820288], t$95$1, If[LessEqual[y, 1598517415830675/91343852333181432387730302044767688728495783936], N[(N[(1 - N[(z / t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{t}\\
\mathbf{if}\;y \leq \frac{-2274745500040835}{842498333348457493583344221469363458551160763204392890034487820288}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq \frac{1598517415830675}{91343852333181432387730302044767688728495783936}:\\
\;\;\;\;\left(1 - \frac{z}{t}\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -2.6999999999999997e-51 or 1.7499999999999999e-32 < y Initial program 98.0%
Taylor expanded in x around 0
Applied rewrites77.1%
if -2.6999999999999997e-51 < y < 1.7499999999999999e-32Initial program 98.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f6465.9%
Applied rewrites65.9%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6465.9%
lift-+.f64N/A
lift-*.f64N/A
mul-1-negN/A
sub-flip-reverseN/A
lower--.f6465.9%
Applied rewrites65.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t))))
(if (<= y -650)
t_1
(if (<=
y
1598517415830675/91343852333181432387730302044767688728495783936)
(* (- 1 (/ z t)) x)
t_1))))double code(double x, double y, double z, double t) {
double t_1 = x + ((y * z) / t);
double tmp;
if (y <= -650.0) {
tmp = t_1;
} else if (y <= 1.75e-32) {
tmp = (1.0 - (z / t)) * x;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y * z) / t)
if (y <= (-650.0d0)) then
tmp = t_1
else if (y <= 1.75d-32) then
tmp = (1.0d0 - (z / t)) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x + ((y * z) / t);
double tmp;
if (y <= -650.0) {
tmp = t_1;
} else if (y <= 1.75e-32) {
tmp = (1.0 - (z / t)) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + ((y * z) / t) tmp = 0 if y <= -650.0: tmp = t_1 elif y <= 1.75e-32: tmp = (1.0 - (z / t)) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(y * z) / t)) tmp = 0.0 if (y <= -650.0) tmp = t_1; elseif (y <= 1.75e-32) tmp = Float64(Float64(1.0 - Float64(z / t)) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + ((y * z) / t); tmp = 0.0; if (y <= -650.0) tmp = t_1; elseif (y <= 1.75e-32) tmp = (1.0 - (z / t)) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -650], t$95$1, If[LessEqual[y, 1598517415830675/91343852333181432387730302044767688728495783936], N[(N[(1 - N[(z / t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
\mathbf{if}\;y \leq -650:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq \frac{1598517415830675}{91343852333181432387730302044767688728495783936}:\\
\;\;\;\;\left(1 - \frac{z}{t}\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -650 or 1.7499999999999999e-32 < y Initial program 98.0%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f6473.3%
Applied rewrites73.3%
if -650 < y < 1.7499999999999999e-32Initial program 98.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f6465.9%
Applied rewrites65.9%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6465.9%
lift-+.f64N/A
lift-*.f64N/A
mul-1-negN/A
sub-flip-reverseN/A
lower--.f6465.9%
Applied rewrites65.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- 1 (/ z t)) x)))
(if (<= x -54000000000000000000)
t_1
(if (<=
x
359999999999999991931072776714238961408413583406448582555808465872522433558245763113188495373317561016476904718336)
(+ x (* (/ y t) z))
t_1))))double code(double x, double y, double z, double t) {
double t_1 = (1.0 - (z / t)) * x;
double tmp;
if (x <= -5.4e+19) {
tmp = t_1;
} else if (x <= 3.6e+113) {
tmp = x + ((y / t) * z);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (1.0d0 - (z / t)) * x
if (x <= (-5.4d+19)) then
tmp = t_1
else if (x <= 3.6d+113) then
tmp = x + ((y / t) * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (1.0 - (z / t)) * x;
double tmp;
if (x <= -5.4e+19) {
tmp = t_1;
} else if (x <= 3.6e+113) {
tmp = x + ((y / t) * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (1.0 - (z / t)) * x tmp = 0 if x <= -5.4e+19: tmp = t_1 elif x <= 3.6e+113: tmp = x + ((y / t) * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(1.0 - Float64(z / t)) * x) tmp = 0.0 if (x <= -5.4e+19) tmp = t_1; elseif (x <= 3.6e+113) tmp = Float64(x + Float64(Float64(y / t) * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (1.0 - (z / t)) * x; tmp = 0.0; if (x <= -5.4e+19) tmp = t_1; elseif (x <= 3.6e+113) tmp = x + ((y / t) * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(1 - N[(z / t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -54000000000000000000], t$95$1, If[LessEqual[x, 359999999999999991931072776714238961408413583406448582555808465872522433558245763113188495373317561016476904718336], N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \left(1 - \frac{z}{t}\right) \cdot x\\
\mathbf{if}\;x \leq -54000000000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 359999999999999991931072776714238961408413583406448582555808465872522433558245763113188495373317561016476904718336:\\
\;\;\;\;x + \frac{y}{t} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if x < -5.4e19 or 3.5999999999999999e113 < x Initial program 98.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f6465.9%
Applied rewrites65.9%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6465.9%
lift-+.f64N/A
lift-*.f64N/A
mul-1-negN/A
sub-flip-reverseN/A
lower--.f6465.9%
Applied rewrites65.9%
if -5.4e19 < x < 3.5999999999999999e113Initial program 98.0%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f6473.3%
Applied rewrites73.3%
lift-/.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-lft-neg-inN/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
metadata-evalN/A
*-rgt-identity73.4%
Applied rewrites73.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ z t) y)))
(if (<=
y
-9099999999999999804374895554563547679328607841149126257261365274968109668351902638222501663921318391549669595204323470895196107136050119658007584217618091607543523596757637974378193453879039885312)
t_1
(if (<=
y
2549999999999999918481992149910411763438055036024249866455228495889500046429710570035755545772868446046768627271200998827750644861399728128)
(* (- 1 (/ z t)) x)
t_1))))double code(double x, double y, double z, double t) {
double t_1 = (z / t) * y;
double tmp;
if (y <= -9.1e+195) {
tmp = t_1;
} else if (y <= 2.55e+138) {
tmp = (1.0 - (z / t)) * x;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (z / t) * y
if (y <= (-9.1d+195)) then
tmp = t_1
else if (y <= 2.55d+138) then
tmp = (1.0d0 - (z / t)) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (z / t) * y;
double tmp;
if (y <= -9.1e+195) {
tmp = t_1;
} else if (y <= 2.55e+138) {
tmp = (1.0 - (z / t)) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (z / t) * y tmp = 0 if y <= -9.1e+195: tmp = t_1 elif y <= 2.55e+138: tmp = (1.0 - (z / t)) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(z / t) * y) tmp = 0.0 if (y <= -9.1e+195) tmp = t_1; elseif (y <= 2.55e+138) tmp = Float64(Float64(1.0 - Float64(z / t)) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (z / t) * y; tmp = 0.0; if (y <= -9.1e+195) tmp = t_1; elseif (y <= 2.55e+138) tmp = (1.0 - (z / t)) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(z / t), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -9099999999999999804374895554563547679328607841149126257261365274968109668351902638222501663921318391549669595204323470895196107136050119658007584217618091607543523596757637974378193453879039885312], t$95$1, If[LessEqual[y, 2549999999999999918481992149910411763438055036024249866455228495889500046429710570035755545772868446046768627271200998827750644861399728128], N[(N[(1 - N[(z / t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{z}{t} \cdot y\\
\mathbf{if}\;y \leq -9099999999999999804374895554563547679328607841149126257261365274968109668351902638222501663921318391549669595204323470895196107136050119658007584217618091607543523596757637974378193453879039885312:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2549999999999999918481992149910411763438055036024249866455228495889500046429710570035755545772868446046768627271200998827750644861399728128:\\
\;\;\;\;\left(1 - \frac{z}{t}\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -9.0999999999999998e195 or 2.5499999999999999e138 < y Initial program 98.0%
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
add-to-fractionN/A
mult-flipN/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift--.f64N/A
sub-negate-revN/A
lower-134-z0z1z2z3z4N/A
lower-/.f64N/A
lower--.f6499.8%
Applied rewrites99.8%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f6437.2%
Applied rewrites37.2%
*-commutative37.2%
mult-flip-rev37.2%
fp-cancel-sub-sign-inv37.2%
add-to-fraction37.2%
sub-negate-rev37.2%
associate-*r/37.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lift-/.f64N/A
*-commutativeN/A
lift-*.f6440.5%
Applied rewrites40.5%
if -9.0999999999999998e195 < y < 2.5499999999999999e138Initial program 98.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f6465.9%
Applied rewrites65.9%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6465.9%
lift-+.f64N/A
lift-*.f64N/A
mul-1-negN/A
sub-flip-reverseN/A
lower--.f6465.9%
Applied rewrites65.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ z t) y)))
(if (<=
(/ z t)
-546812681195753/273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728)
t_1
(if (<=
(/ z t)
5092589940836215/509258994083621521567111422102344540262867098416484062659035112338595324940834176545849344)
(* x 1)
t_1))))double code(double x, double y, double z, double t) {
double t_1 = (z / t) * y;
double tmp;
if ((z / t) <= -2e-84) {
tmp = t_1;
} else if ((z / t) <= 1e-74) {
tmp = x * 1.0;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (z / t) * y
if ((z / t) <= (-2d-84)) then
tmp = t_1
else if ((z / t) <= 1d-74) then
tmp = x * 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (z / t) * y;
double tmp;
if ((z / t) <= -2e-84) {
tmp = t_1;
} else if ((z / t) <= 1e-74) {
tmp = x * 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (z / t) * y tmp = 0 if (z / t) <= -2e-84: tmp = t_1 elif (z / t) <= 1e-74: tmp = x * 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(z / t) * y) tmp = 0.0 if (Float64(z / t) <= -2e-84) tmp = t_1; elseif (Float64(z / t) <= 1e-74) tmp = Float64(x * 1.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (z / t) * y; tmp = 0.0; if ((z / t) <= -2e-84) tmp = t_1; elseif ((z / t) <= 1e-74) tmp = x * 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(z / t), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[N[(z / t), $MachinePrecision], -546812681195753/273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728], t$95$1, If[LessEqual[N[(z / t), $MachinePrecision], 5092589940836215/509258994083621521567111422102344540262867098416484062659035112338595324940834176545849344], N[(x * 1), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{z}{t} \cdot y\\
\mathbf{if}\;\frac{z}{t} \leq \frac{-546812681195753}{273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;\frac{z}{t} \leq \frac{5092589940836215}{509258994083621521567111422102344540262867098416484062659035112338595324940834176545849344}:\\
\;\;\;\;x \cdot 1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if (/.f64 z t) < -2.0000000000000001e-84 or 9.9999999999999996e-75 < (/.f64 z t) Initial program 98.0%
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
add-to-fractionN/A
mult-flipN/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift--.f64N/A
sub-negate-revN/A
lower-134-z0z1z2z3z4N/A
lower-/.f64N/A
lower--.f6499.8%
Applied rewrites99.8%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f6437.2%
Applied rewrites37.2%
*-commutative37.2%
mult-flip-rev37.2%
fp-cancel-sub-sign-inv37.2%
add-to-fraction37.2%
sub-negate-rev37.2%
associate-*r/37.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lift-/.f64N/A
*-commutativeN/A
lift-*.f6440.5%
Applied rewrites40.5%
if -2.0000000000000001e-84 < (/.f64 z t) < 9.9999999999999996e-75Initial program 98.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f6465.9%
Applied rewrites65.9%
Taylor expanded in z around 0
Applied rewrites39.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (* y z) t)))
(if (<=
(/ z t)
-546812681195753/273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728)
t_1
(if (<=
(/ z t)
5092589940836215/509258994083621521567111422102344540262867098416484062659035112338595324940834176545849344)
(* x 1)
t_1))))double code(double x, double y, double z, double t) {
double t_1 = (y * z) / t;
double tmp;
if ((z / t) <= -2e-84) {
tmp = t_1;
} else if ((z / t) <= 1e-74) {
tmp = x * 1.0;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (y * z) / t
if ((z / t) <= (-2d-84)) then
tmp = t_1
else if ((z / t) <= 1d-74) then
tmp = x * 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y * z) / t;
double tmp;
if ((z / t) <= -2e-84) {
tmp = t_1;
} else if ((z / t) <= 1e-74) {
tmp = x * 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y * z) / t tmp = 0 if (z / t) <= -2e-84: tmp = t_1 elif (z / t) <= 1e-74: tmp = x * 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y * z) / t) tmp = 0.0 if (Float64(z / t) <= -2e-84) tmp = t_1; elseif (Float64(z / t) <= 1e-74) tmp = Float64(x * 1.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y * z) / t; tmp = 0.0; if ((z / t) <= -2e-84) tmp = t_1; elseif ((z / t) <= 1e-74) tmp = x * 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[N[(z / t), $MachinePrecision], -546812681195753/273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728], t$95$1, If[LessEqual[N[(z / t), $MachinePrecision], 5092589940836215/509258994083621521567111422102344540262867098416484062659035112338595324940834176545849344], N[(x * 1), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{y \cdot z}{t}\\
\mathbf{if}\;\frac{z}{t} \leq \frac{-546812681195753}{273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;\frac{z}{t} \leq \frac{5092589940836215}{509258994083621521567111422102344540262867098416484062659035112338595324940834176545849344}:\\
\;\;\;\;x \cdot 1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if (/.f64 z t) < -2.0000000000000001e-84 or 9.9999999999999996e-75 < (/.f64 z t) Initial program 98.0%
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
add-to-fractionN/A
mult-flipN/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift--.f64N/A
sub-negate-revN/A
lower-134-z0z1z2z3z4N/A
lower-/.f64N/A
lower--.f6499.8%
Applied rewrites99.8%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f6437.2%
Applied rewrites37.2%
if -2.0000000000000001e-84 < (/.f64 z t) < 9.9999999999999996e-75Initial program 98.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f6465.9%
Applied rewrites65.9%
Taylor expanded in z around 0
Applied rewrites39.0%
(FPCore (x y z t) :precision binary64 (* x 1))
double code(double x, double y, double z, double t) {
return x * 1.0;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * 1.0d0
end function
public static double code(double x, double y, double z, double t) {
return x * 1.0;
}
def code(x, y, z, t): return x * 1.0
function code(x, y, z, t) return Float64(x * 1.0) end
function tmp = code(x, y, z, t) tmp = x * 1.0; end
code[x_, y_, z_, t_] := N[(x * 1), $MachinePrecision]
x \cdot 1
Initial program 98.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f6465.9%
Applied rewrites65.9%
Taylor expanded in z around 0
Applied rewrites39.0%
herbie shell --seed 2025271 -o generate:evaluate
(FPCore (x y z t)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:tickPosition from plot-0.2.3.4"
:precision binary64
(+ x (* (- y x) (/ z t))))