
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (fma -1.0 (log a) (fma t (log a) (* y (log z)))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((fma(-1.0, log(a), fma(t, log(a), (y * log(z)))) - b))) / y;
}
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(fma(-1.0, log(a), fma(t, log(a), Float64(y * log(z)))) - b))) / y) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(-1.0 * N[Log[a], $MachinePrecision] + N[(t * N[Log[a], $MachinePrecision] + N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\mathsf{fma}\left(-1, \log a, \mathsf{fma}\left(t, \log a, y \cdot \log z\right)\right) - b}}{y}
\end{array}
Initial program 98.3%
Taylor expanded in t around 0
Applied rewrites98.3%
(FPCore (x y z t a b) :precision binary64 (/ (/ x (exp (+ (log a) (fma (- (log a)) t (- b (* y (log z))))))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / exp((log(a) + fma(-log(a), t, (b - (y * log(z))))))) / y;
}
function code(x, y, z, t, a, b) return Float64(Float64(x / exp(Float64(log(a) + fma(Float64(-log(a)), t, Float64(b - Float64(y * log(z))))))) / y) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / N[Exp[N[(N[Log[a], $MachinePrecision] + N[((-N[Log[a], $MachinePrecision]) * t + N[(b - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{e^{\log a + \mathsf{fma}\left(-\log a, t, b - y \cdot \log z\right)}}}{y}
\end{array}
Initial program 98.3%
Applied rewrites98.3%
Applied rewrites98.3%
(FPCore (x y z t a b) :precision binary64 (* (* (exp (fma (log z) y (- (* (- t 1.0) (log a)) b))) x) (/ 1.0 y)))
double code(double x, double y, double z, double t, double a, double b) {
return (exp(fma(log(z), y, (((t - 1.0) * log(a)) - b))) * x) * (1.0 / y);
}
function code(x, y, z, t, a, b) return Float64(Float64(exp(fma(log(z), y, Float64(Float64(Float64(t - 1.0) * log(a)) - b))) * x) * Float64(1.0 / y)) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y + N[(N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(e^{\mathsf{fma}\left(\log z, y, \left(t - 1\right) \cdot \log a - b\right)} \cdot x\right) \cdot \frac{1}{y}
\end{array}
Initial program 98.3%
Applied rewrites98.3%
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.3%
(FPCore (x y z t a b) :precision binary64 (/ (/ x (exp (fma (log a) (- 1.0 t) (- b (* y (log z)))))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / exp(fma(log(a), (1.0 - t), (b - (y * log(z)))))) / y;
}
function code(x, y, z, t, a, b) return Float64(Float64(x / exp(fma(log(a), Float64(1.0 - t), Float64(b - Float64(y * log(z)))))) / y) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / N[Exp[N[(N[Log[a], $MachinePrecision] * N[(1.0 - t), $MachinePrecision] + N[(b - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{e^{\mathsf{fma}\left(\log a, 1 - t, b - y \cdot \log z\right)}}}{y}
\end{array}
Initial program 98.3%
Applied rewrites98.3%
(FPCore (x y z t a b) :precision binary64 (* (/ (exp (fma (log z) y (- (* (- t 1.0) (log a)) b))) y) x))
double code(double x, double y, double z, double t, double a, double b) {
return (exp(fma(log(z), y, (((t - 1.0) * log(a)) - b))) / y) * x;
}
function code(x, y, z, t, a, b) return Float64(Float64(exp(fma(log(z), y, Float64(Float64(Float64(t - 1.0) * log(a)) - b))) / y) * x) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y + N[(N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision]
\begin{array}{l}
\\
\frac{e^{\mathsf{fma}\left(\log z, y, \left(t - 1\right) \cdot \log a - b\right)}}{y} \cdot x
\end{array}
Initial program 98.3%
Applied rewrites98.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 1.0) (log a))))
(if (<= t_1 -1e+138)
(/ (/ x (exp (fma (log a) (- 1.0 t) b))) y)
(if (<= t_1 50000000000.0)
(/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)
(* (/ x y) (exp (fma (log z) y (- t_1 b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * log(a);
double tmp;
if (t_1 <= -1e+138) {
tmp = (x / exp(fma(log(a), (1.0 - t), b))) / y;
} else if (t_1 <= 50000000000.0) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x / y) * exp(fma(log(z), y, (t_1 - b)));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 1.0) * log(a)) tmp = 0.0 if (t_1 <= -1e+138) tmp = Float64(Float64(x / exp(fma(log(a), Float64(1.0 - t), b))) / y); elseif (t_1 <= 50000000000.0) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x / y) * exp(fma(log(z), y, Float64(t_1 - b)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+138], N[(N[(x / N[Exp[N[(N[Log[a], $MachinePrecision] * N[(1.0 - t), $MachinePrecision] + b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t$95$1, 50000000000.0], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[Exp[N[(N[Log[z], $MachinePrecision] * y + N[(t$95$1 - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 1\right) \cdot \log a\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+138}:\\
\;\;\;\;\frac{\frac{x}{e^{\mathsf{fma}\left(\log a, 1 - t, b\right)}}}{y}\\
\mathbf{elif}\;t\_1 \leq 50000000000:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot e^{\mathsf{fma}\left(\log z, y, t\_1 - b\right)}\\
\end{array}
\end{array}
if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -1e138Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in y around 0
Applied rewrites80.5%
if -1e138 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 5e10Initial program 98.3%
Taylor expanded in t around 0
Applied rewrites79.9%
Applied rewrites79.9%
if 5e10 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) Initial program 98.3%
Applied rewrites88.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (log z))))
(if (<= y -9.5e+73)
(/ x (* a (* y (exp (- b t_1)))))
(if (<= y 7.8e-54)
(/ x (* a (* y (exp (- b (* t (log a)))))))
(/ (* x (exp (- (- t_1 (log a)) b))) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * log(z);
double tmp;
if (y <= -9.5e+73) {
tmp = x / (a * (y * exp((b - t_1))));
} else if (y <= 7.8e-54) {
tmp = x / (a * (y * exp((b - (t * log(a))))));
} else {
tmp = (x * exp(((t_1 - log(a)) - b))) / y;
}
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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * log(z)
if (y <= (-9.5d+73)) then
tmp = x / (a * (y * exp((b - t_1))))
else if (y <= 7.8d-54) then
tmp = x / (a * (y * exp((b - (t * log(a))))))
else
tmp = (x * exp(((t_1 - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * Math.log(z);
double tmp;
if (y <= -9.5e+73) {
tmp = x / (a * (y * Math.exp((b - t_1))));
} else if (y <= 7.8e-54) {
tmp = x / (a * (y * Math.exp((b - (t * Math.log(a))))));
} else {
tmp = (x * Math.exp(((t_1 - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.log(z) tmp = 0 if y <= -9.5e+73: tmp = x / (a * (y * math.exp((b - t_1)))) elif y <= 7.8e-54: tmp = x / (a * (y * math.exp((b - (t * math.log(a)))))) else: tmp = (x * math.exp(((t_1 - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * log(z)) tmp = 0.0 if (y <= -9.5e+73) tmp = Float64(x / Float64(a * Float64(y * exp(Float64(b - t_1))))); elseif (y <= 7.8e-54) tmp = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(t * log(a))))))); else tmp = Float64(Float64(x * exp(Float64(Float64(t_1 - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * log(z); tmp = 0.0; if (y <= -9.5e+73) tmp = x / (a * (y * exp((b - t_1)))); elseif (y <= 7.8e-54) tmp = x / (a * (y * exp((b - (t * log(a)))))); else tmp = (x * exp(((t_1 - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+73], N[(x / N[(a * N[(y * N[Exp[N[(b - t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e-54], N[(x / N[(a * N[(y * N[Exp[N[(b - N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(t$95$1 - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \log z\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+73}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t\_1}\right)}\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{-54}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t\_1 - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if y < -9.4999999999999996e73Initial program 98.3%
Applied rewrites98.3%
Applied rewrites98.3%
Applied rewrites88.1%
Taylor expanded in t around 0
Applied rewrites80.5%
if -9.4999999999999996e73 < y < 7.8e-54Initial program 98.3%
Applied rewrites98.3%
Applied rewrites98.3%
Applied rewrites88.1%
Taylor expanded in y around 0
Applied rewrites81.1%
if 7.8e-54 < y Initial program 98.3%
Taylor expanded in t around 0
Applied rewrites79.9%
Applied rewrites79.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp (- b (* y (log z)))))))))
(if (<= y -9.5e+73)
t_1
(if (<= y 1.02e-65) (/ x (* a (* y (exp (- b (* t (log a))))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp((b - (y * log(z))))));
double tmp;
if (y <= -9.5e+73) {
tmp = t_1;
} else if (y <= 1.02e-65) {
tmp = x / (a * (y * exp((b - (t * log(a))))));
} 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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a * (y * exp((b - (y * log(z))))))
if (y <= (-9.5d+73)) then
tmp = t_1
else if (y <= 1.02d-65) then
tmp = x / (a * (y * exp((b - (t * log(a))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * Math.exp((b - (y * Math.log(z))))));
double tmp;
if (y <= -9.5e+73) {
tmp = t_1;
} else if (y <= 1.02e-65) {
tmp = x / (a * (y * Math.exp((b - (t * Math.log(a))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp((b - (y * math.log(z)))))) tmp = 0 if y <= -9.5e+73: tmp = t_1 elif y <= 1.02e-65: tmp = x / (a * (y * math.exp((b - (t * math.log(a)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(y * log(z))))))) tmp = 0.0 if (y <= -9.5e+73) tmp = t_1; elseif (y <= 1.02e-65) tmp = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(t * log(a))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp((b - (y * log(z)))))); tmp = 0.0; if (y <= -9.5e+73) tmp = t_1; elseif (y <= 1.02e-65) tmp = x / (a * (y * exp((b - (t * log(a)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[N[(b - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+73], t$95$1, If[LessEqual[y, 1.02e-65], N[(x / N[(a * N[(y * N[Exp[N[(b - N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b - y \cdot \log z}\right)}\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.4999999999999996e73 or 1.02000000000000004e-65 < y Initial program 98.3%
Applied rewrites98.3%
Applied rewrites98.3%
Applied rewrites88.1%
Taylor expanded in t around 0
Applied rewrites80.5%
if -9.4999999999999996e73 < y < 1.02000000000000004e-65Initial program 98.3%
Applied rewrites98.3%
Applied rewrites98.3%
Applied rewrites88.1%
Taylor expanded in y around 0
Applied rewrites81.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp (* (- y) (log z)))) y)))
(if (<= y -1.6e+74)
t_1
(if (<= y 1.7e+107) (/ x (* a (* y (exp (- b (* t (log a))))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp((-y * log(z)))) / y;
double tmp;
if (y <= -1.6e+74) {
tmp = t_1;
} else if (y <= 1.7e+107) {
tmp = x / (a * (y * exp((b - (t * log(a))))));
} 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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / exp((-y * log(z)))) / y
if (y <= (-1.6d+74)) then
tmp = t_1
else if (y <= 1.7d+107) then
tmp = x / (a * (y * exp((b - (t * log(a))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp((-y * Math.log(z)))) / y;
double tmp;
if (y <= -1.6e+74) {
tmp = t_1;
} else if (y <= 1.7e+107) {
tmp = x / (a * (y * Math.exp((b - (t * Math.log(a))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp((-y * math.log(z)))) / y tmp = 0 if y <= -1.6e+74: tmp = t_1 elif y <= 1.7e+107: tmp = x / (a * (y * math.exp((b - (t * math.log(a)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(Float64(Float64(-y) * log(z)))) / y) tmp = 0.0 if (y <= -1.6e+74) tmp = t_1; elseif (y <= 1.7e+107) tmp = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(t * log(a))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp((-y * log(z)))) / y; tmp = 0.0; if (y <= -1.6e+74) tmp = t_1; elseif (y <= 1.7e+107) tmp = x / (a * (y * exp((b - (t * log(a)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[N[((-y) * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.6e+74], t$95$1, If[LessEqual[y, 1.7e+107], N[(x / N[(a * N[(y * N[Exp[N[(b - N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{\left(-y\right) \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -1.6 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+107}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.59999999999999997e74 or 1.6999999999999998e107 < y Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in y around inf
Applied rewrites48.7%
Applied rewrites48.7%
if -1.59999999999999997e74 < y < 1.6999999999999998e107Initial program 98.3%
Applied rewrites98.3%
Applied rewrites98.3%
Applied rewrites88.1%
Taylor expanded in y around 0
Applied rewrites81.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp (* (- y) (log z)))) y)))
(if (<= y -1.9e+100)
t_1
(if (<= y 1.7e+107) (/ (* x (exp (- (* (log a) (- t 1.0)) b))) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp((-y * log(z)))) / y;
double tmp;
if (y <= -1.9e+100) {
tmp = t_1;
} else if (y <= 1.7e+107) {
tmp = (x * exp(((log(a) * (t - 1.0)) - b))) / y;
} 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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / exp((-y * log(z)))) / y
if (y <= (-1.9d+100)) then
tmp = t_1
else if (y <= 1.7d+107) then
tmp = (x * exp(((log(a) * (t - 1.0d0)) - b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp((-y * Math.log(z)))) / y;
double tmp;
if (y <= -1.9e+100) {
tmp = t_1;
} else if (y <= 1.7e+107) {
tmp = (x * Math.exp(((Math.log(a) * (t - 1.0)) - b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp((-y * math.log(z)))) / y tmp = 0 if y <= -1.9e+100: tmp = t_1 elif y <= 1.7e+107: tmp = (x * math.exp(((math.log(a) * (t - 1.0)) - b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(Float64(Float64(-y) * log(z)))) / y) tmp = 0.0 if (y <= -1.9e+100) tmp = t_1; elseif (y <= 1.7e+107) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t - 1.0)) - b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp((-y * log(z)))) / y; tmp = 0.0; if (y <= -1.9e+100) tmp = t_1; elseif (y <= 1.7e+107) tmp = (x * exp(((log(a) * (t - 1.0)) - b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[N[((-y) * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.9e+100], t$95$1, If[LessEqual[y, 1.7e+107], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{\left(-y\right) \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+107}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.89999999999999982e100 or 1.6999999999999998e107 < y Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in y around inf
Applied rewrites48.7%
Applied rewrites48.7%
if -1.89999999999999982e100 < y < 1.6999999999999998e107Initial program 98.3%
Taylor expanded in y around 0
Applied rewrites80.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp (* (- y) (log z)))) y)))
(if (<= y -1.9e+100)
t_1
(if (<= y 1.7e+107) (/ (/ x (exp (fma (log a) (- 1.0 t) b))) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp((-y * log(z)))) / y;
double tmp;
if (y <= -1.9e+100) {
tmp = t_1;
} else if (y <= 1.7e+107) {
tmp = (x / exp(fma(log(a), (1.0 - t), b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(Float64(Float64(-y) * log(z)))) / y) tmp = 0.0 if (y <= -1.9e+100) tmp = t_1; elseif (y <= 1.7e+107) tmp = Float64(Float64(x / exp(fma(log(a), Float64(1.0 - t), b))) / y); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[N[((-y) * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.9e+100], t$95$1, If[LessEqual[y, 1.7e+107], N[(N[(x / N[Exp[N[(N[Log[a], $MachinePrecision] * N[(1.0 - t), $MachinePrecision] + b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{\left(-y\right) \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+107}:\\
\;\;\;\;\frac{\frac{x}{e^{\mathsf{fma}\left(\log a, 1 - t, b\right)}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.89999999999999982e100 or 1.6999999999999998e107 < y Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in y around inf
Applied rewrites48.7%
Applied rewrites48.7%
if -1.89999999999999982e100 < y < 1.6999999999999998e107Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in y around 0
Applied rewrites80.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp (* (- y) (log z)))) y)))
(if (<= y -1.1e+14)
t_1
(if (<= y 5e+53) (/ (* x (exp (- (* -1.0 (log a)) b))) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp((-y * log(z)))) / y;
double tmp;
if (y <= -1.1e+14) {
tmp = t_1;
} else if (y <= 5e+53) {
tmp = (x * exp(((-1.0 * log(a)) - b))) / y;
} 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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / exp((-y * log(z)))) / y
if (y <= (-1.1d+14)) then
tmp = t_1
else if (y <= 5d+53) then
tmp = (x * exp((((-1.0d0) * log(a)) - b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp((-y * Math.log(z)))) / y;
double tmp;
if (y <= -1.1e+14) {
tmp = t_1;
} else if (y <= 5e+53) {
tmp = (x * Math.exp(((-1.0 * Math.log(a)) - b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp((-y * math.log(z)))) / y tmp = 0 if y <= -1.1e+14: tmp = t_1 elif y <= 5e+53: tmp = (x * math.exp(((-1.0 * math.log(a)) - b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(Float64(Float64(-y) * log(z)))) / y) tmp = 0.0 if (y <= -1.1e+14) tmp = t_1; elseif (y <= 5e+53) tmp = Float64(Float64(x * exp(Float64(Float64(-1.0 * log(a)) - b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp((-y * log(z)))) / y; tmp = 0.0; if (y <= -1.1e+14) tmp = t_1; elseif (y <= 5e+53) tmp = (x * exp(((-1.0 * log(a)) - b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[N[((-y) * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.1e+14], t$95$1, If[LessEqual[y, 5e+53], N[(N[(x * N[Exp[N[(N[(-1.0 * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{\left(-y\right) \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+53}:\\
\;\;\;\;\frac{x \cdot e^{-1 \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.1e14 or 5.0000000000000004e53 < y Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in y around inf
Applied rewrites48.7%
Applied rewrites48.7%
if -1.1e14 < y < 5.0000000000000004e53Initial program 98.3%
Taylor expanded in t around 0
Applied rewrites79.9%
Taylor expanded in y around 0
Applied rewrites58.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp (* (- y) (log z)))) y)))
(if (<= y -1.1e+14)
t_1
(if (<= y 1.46e+54) (/ x (* y (exp (+ b (log a))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp((-y * log(z)))) / y;
double tmp;
if (y <= -1.1e+14) {
tmp = t_1;
} else if (y <= 1.46e+54) {
tmp = x / (y * exp((b + log(a))));
} 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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / exp((-y * log(z)))) / y
if (y <= (-1.1d+14)) then
tmp = t_1
else if (y <= 1.46d+54) then
tmp = x / (y * exp((b + log(a))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp((-y * Math.log(z)))) / y;
double tmp;
if (y <= -1.1e+14) {
tmp = t_1;
} else if (y <= 1.46e+54) {
tmp = x / (y * Math.exp((b + Math.log(a))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp((-y * math.log(z)))) / y tmp = 0 if y <= -1.1e+14: tmp = t_1 elif y <= 1.46e+54: tmp = x / (y * math.exp((b + math.log(a)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(Float64(Float64(-y) * log(z)))) / y) tmp = 0.0 if (y <= -1.1e+14) tmp = t_1; elseif (y <= 1.46e+54) tmp = Float64(x / Float64(y * exp(Float64(b + log(a))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp((-y * log(z)))) / y; tmp = 0.0; if (y <= -1.1e+14) tmp = t_1; elseif (y <= 1.46e+54) tmp = x / (y * exp((b + log(a)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[N[((-y) * N[Log[z], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.1e+14], t$95$1, If[LessEqual[y, 1.46e+54], N[(x / N[(y * N[Exp[N[(b + N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{\left(-y\right) \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.46 \cdot 10^{+54}:\\
\;\;\;\;\frac{x}{y \cdot e^{b + \log a}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.1e14 or 1.46000000000000003e54 < y Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in y around inf
Applied rewrites48.7%
Applied rewrites48.7%
if -1.1e14 < y < 1.46000000000000003e54Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in t around 0
Applied rewrites79.9%
Taylor expanded in y around 0
Applied rewrites58.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (exp (* t (log a)))) y)))
(if (<= t -2.25e+104)
t_1
(if (<= t 8e-9) (/ x (* y (exp (+ b (log a))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * exp((t * log(a)))) / y;
double tmp;
if (t <= -2.25e+104) {
tmp = t_1;
} else if (t <= 8e-9) {
tmp = x / (y * exp((b + log(a))));
} 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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * exp((t * log(a)))) / y
if (t <= (-2.25d+104)) then
tmp = t_1
else if (t <= 8d-9) then
tmp = x / (y * exp((b + log(a))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * Math.exp((t * Math.log(a)))) / y;
double tmp;
if (t <= -2.25e+104) {
tmp = t_1;
} else if (t <= 8e-9) {
tmp = x / (y * Math.exp((b + Math.log(a))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.exp((t * math.log(a)))) / y tmp = 0 if t <= -2.25e+104: tmp = t_1 elif t <= 8e-9: tmp = x / (y * math.exp((b + math.log(a)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * exp(Float64(t * log(a)))) / y) tmp = 0.0 if (t <= -2.25e+104) tmp = t_1; elseif (t <= 8e-9) tmp = Float64(x / Float64(y * exp(Float64(b + log(a))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * exp((t * log(a)))) / y; tmp = 0.0; if (t <= -2.25e+104) tmp = t_1; elseif (t <= 8e-9) tmp = x / (y * exp((b + log(a)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -2.25e+104], t$95$1, If[LessEqual[t, 8e-9], N[(x / N[(y * N[Exp[N[(b + N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot e^{t \cdot \log a}}{y}\\
\mathbf{if}\;t \leq -2.25 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-9}:\\
\;\;\;\;\frac{x}{y \cdot e^{b + \log a}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.2499999999999999e104 or 8.0000000000000005e-9 < t Initial program 98.3%
Taylor expanded in t around inf
Applied rewrites48.5%
if -2.2499999999999999e104 < t < 8.0000000000000005e-9Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in t around 0
Applied rewrites79.9%
Taylor expanded in y around 0
Applied rewrites58.3%
(FPCore (x y z t a b) :precision binary64 (/ x (* y (exp (+ b (log a))))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * exp((b + log(a))));
}
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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
code = x / (y * exp((b + log(a))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * Math.exp((b + Math.log(a))));
}
def code(x, y, z, t, a, b): return x / (y * math.exp((b + math.log(a))))
function code(x, y, z, t, a, b) return Float64(x / Float64(y * exp(Float64(b + log(a))))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * exp((b + log(a)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * N[Exp[N[(b + N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot e^{b + \log a}}
\end{array}
Initial program 98.3%
Applied rewrites98.3%
Taylor expanded in t around 0
Applied rewrites79.9%
Taylor expanded in y around 0
Applied rewrites58.3%
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp(-b)) / y;
}
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, a, b)
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), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp(-b)) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp(-b)) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp(-b)) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(-b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp(-b)) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{-b}}{y}
\end{array}
Initial program 98.3%
Taylor expanded in b around inf
Applied rewrites47.7%
Applied rewrites47.7%
herbie shell --seed 2025153
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))