Skip to content

Commit e7b281e

Browse files
committed
Initial package
1 parent b54f3f0 commit e7b281e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name = "IrrationalConstants"
2+
uuid = "92d709cd-6900-40b7-9082-c6be49f344b6"
3+
authors = ["JuliaMath"]
4+
version = "0.1.0"
5+
6+
[compat]
7+
julia = "1"

src/IrrationalConstants.jl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module IrrationalConstants
2+
3+
using Base: @irrational
4+
5+
export
6+
twoπ, #
7+
fourπ, #
8+
halfπ, # π / 2
9+
quartπ, # π / 4
10+
invπ, # 1 / π
11+
twoinvπ, # 2 / π
12+
fourinvπ, # 4 / π
13+
inv2π, # 1 / (2π)
14+
inv4π, # 1 / (4π)
15+
sqrt2, # √2
16+
sqrt3, # √3
17+
sqrtπ, # √π
18+
sqrt2π, # √2π
19+
sqrt4π, # √4π
20+
sqrthalfπ, # √(π / 2)
21+
invsqrt2, # 1 / √2
22+
invsqrt2π, # 1 / √2π
23+
loghalf, # log(1 / 2)
24+
logtwo, # log(2)
25+
logπ, # log(π)
26+
log2π, # log(2π)
27+
log4π # log(4π)
28+
29+
include("stats.jl")
30+
31+
end # module

0 commit comments

Comments
 (0)