(FPCore (r a b) :precision binary64 (/ (* r (sin b)) (cos (+ a b))))
↓
(FPCore (r a b)
:precision binary64
(if (<= a -0.0007)
(* r (/ (sin b) (cos a)))
(if (<= a 0.00155) (/ (* (sin b) r) (cos b)) (/ r (/ (cos a) (sin b))))))
double code(double r, double a, double b) {
return (r * sin(b)) / cos((a + b));
}
↓
double code(double r, double a, double b) {
double tmp;
if (a <= -0.0007) {
tmp = r * (sin(b) / cos(a));
} else if (a <= 0.00155) {
tmp = (sin(b) * r) / cos(b);
} else {
tmp = r / (cos(a) / sin(b));
}
return tmp;
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (r * sin(b)) / cos((a + b))
end function
↓
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= (-0.0007d0)) then
tmp = r * (sin(b) / cos(a))
else if (a <= 0.00155d0) then
tmp = (sin(b) * r) / cos(b)
else
tmp = r / (cos(a) / sin(b))
end if
code = tmp
end function
public static double code(double r, double a, double b) {
return (r * Math.sin(b)) / Math.cos((a + b));
}
↓
public static double code(double r, double a, double b) {
double tmp;
if (a <= -0.0007) {
tmp = r * (Math.sin(b) / Math.cos(a));
} else if (a <= 0.00155) {
tmp = (Math.sin(b) * r) / Math.cos(b);
} else {
tmp = r / (Math.cos(a) / Math.sin(b));
}
return tmp;
}
def code(r, a, b):
tmp = 0
if a <= -0.0007:
tmp = r * (math.sin(b) / math.cos(a))
elif a <= 0.00155:
tmp = (math.sin(b) * r) / math.cos(b)
else:
tmp = r / (math.cos(a) / math.sin(b))
return tmp
function code(r, a, b)
return Float64(Float64(r * sin(b)) / cos(Float64(a + b)))
end
↓
function code(r, a, b)
tmp = 0.0
if (a <= -0.0007)
tmp = Float64(r * Float64(sin(b) / cos(a)));
elseif (a <= 0.00155)
tmp = Float64(Float64(sin(b) * r) / cos(b));
else
tmp = Float64(r / Float64(cos(a) / sin(b)));
end
return tmp
end
function tmp = code(r, a, b)
tmp = (r * sin(b)) / cos((a + b));
end
↓
function tmp_2 = code(r, a, b)
tmp = 0.0;
if (a <= -0.0007)
tmp = r * (sin(b) / cos(a));
elseif (a <= 0.00155)
tmp = (sin(b) * r) / cos(b);
else
tmp = r / (cos(a) / sin(b));
end
tmp_2 = tmp;
end