Skip to content

Commit 2a26899

Browse files
committed
Add √ as synonym for sqrt
1 parent 0625671 commit 2a26899

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

base/exports.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ export
440440
unsigned,
441441
widemul,
442442
zero,
443+
,
443444

444445
# specfun
445446
airy,

base/math.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export sin, cos, tan, sinh, cosh, tanh, asin, acos, atan,
1616
besselj0, besselj1, besselj, bessely0, bessely1, bessely,
1717
hankelh1, hankelh2, besseli, besselk, besselh,
1818
beta, lbeta, eta, zeta, polygamma, invdigamma, digamma, trigamma,
19-
erfinv, erfcinv
19+
erfinv, erfcinv,
2020

2121
import Base: log, exp, sin, cos, tan, sinh, cosh, tanh, asin,
2222
acos, atan, asinh, acosh, atanh, sqrt, log2, log10,
@@ -279,6 +279,7 @@ sqrt(x::Float64) = box(Float64,sqrt_llvm(unbox(Float64,x)))
279279
sqrt(x::Float32) = box(Float32,sqrt_llvm(unbox(Float32,x)))
280280
sqrt(x::Real) = sqrt(float(x))
281281
@vectorize_1arg Number sqrt
282+
const =sqrt
282283

283284
for f in (:ceil, :trunc, :significand) # :rint, :nearbyint
284285
@eval begin

0 commit comments

Comments
 (0)