From 640c7356c9a920c0b8af4884e72743fef93a96a1 Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Tue, 8 Aug 2023 21:48:22 -0300 Subject: [PATCH] Don't overwrite definitions --- base/math.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/math.jl b/base/math.jl index 0f917dce7c99c..71bd4949498b5 100644 --- a/base/math.jl +++ b/base/math.jl @@ -1571,7 +1571,7 @@ sincos(a::Float16) = Float16.(sincos(Float32(a))) for f in (:sin, :cos, :tan, :asin, :atan, :acos, :sinh, :cosh, :tanh, :asinh, :acosh, :atanh, :exp, :exp2, :exp10, :expm1, :log, :log2, :log10, :log1p, - :exponent, :sqrt, :cbrt, :sinpi, :cospi, :sincospi, :tanpi) + :exponent, :sqrt, :cbrt) @eval function ($f)(x::Real) xf = float(x) x === xf && throw(MethodError($f, (x,)))