(FPCore (x y z t a b c)
:precision binary64
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
↓
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (* x 9.0) y)))
(if (<= t_1 (- INFINITY))
(* y (* 9.0 (/ (/ x z) c)))
(if (<= t_1 5e+212)
(- (/ (* (/ 1.0 c) (- (* -9.0 (* y x)) b)) (- z)) (/ (* 4.0 (* a t)) c))
(* 9.0 (* (/ (/ y c) z) x))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
↓
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (x * 9.0) * y;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = y * (9.0 * ((x / z) / c));
} else if (t_1 <= 5e+212) {
tmp = (((1.0 / c) * ((-9.0 * (y * x)) - b)) / -z) - ((4.0 * (a * t)) / c);
} else {
tmp = 9.0 * (((y / c) / z) * x);
}
return tmp;
}
def code(x, y, z, t, a, b, c):
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
↓
def code(x, y, z, t, a, b, c):
t_1 = (x * 9.0) * y
tmp = 0
if t_1 <= -math.inf:
tmp = y * (9.0 * ((x / z) / c))
elif t_1 <= 5e+212:
tmp = (((1.0 / c) * ((-9.0 * (y * x)) - b)) / -z) - ((4.0 * (a * t)) / c)
else:
tmp = 9.0 * (((y / c) / z) * x)
return tmp
function code(x, y, z, t, a, b, c)
return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c))
end
↓
function code(x, y, z, t, a, b, c)
t_1 = Float64(Float64(x * 9.0) * y)
tmp = 0.0
if (t_1 <= Float64(-Inf))
tmp = Float64(y * Float64(9.0 * Float64(Float64(x / z) / c)));
elseif (t_1 <= 5e+212)
tmp = Float64(Float64(Float64(Float64(1.0 / c) * Float64(Float64(-9.0 * Float64(y * x)) - b)) / Float64(-z)) - Float64(Float64(4.0 * Float64(a * t)) / c));
else
tmp = Float64(9.0 * Float64(Float64(Float64(y / c) / z) * x));
end
return tmp
end
function tmp = code(x, y, z, t, a, b, c)
tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
end
↓
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = (x * 9.0) * y;
tmp = 0.0;
if (t_1 <= -Inf)
tmp = y * (9.0 * ((x / z) / c));
elseif (t_1 <= 5e+212)
tmp = (((1.0 / c) * ((-9.0 * (y * x)) - b)) / -z) - ((4.0 * (a * t)) / c);
else
tmp = 9.0 * (((y / c) / z) * x);
end
tmp_2 = tmp;
end
herbie shell --seed 2023010
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:herbie-target
(if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) -1.100156740804105e-171) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 0.0) (/ (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.1708877911747488e-53) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 2.876823679546137e+130) (- (+ (* (* 9.0 (/ y c)) (/ x z)) (/ b (* c z))) (* 4.0 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.3838515042456319e+158) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (- (+ (* 9.0 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4.0 (/ (* a t) c))))))))
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))