2
2
3
3
<div align =" center " ><img src =" https://rawgit.com/JuliaMath/Tau.jl/master/tau-2pi.svg " width =" 300 " /></div ><br /><br />
4
4
5
- [ ![ travis] [ travis-img ]] ( https://travis-ci.org/JuliaMath/Tau.jl )
6
- [ ![ appveyor] [ appveyor-img ]] ( https://ci.appveyor.com/project/waldyrious/tau-jl )
7
- [ ![ codecov] [ codecov-img ]] ( http://codecov.io/github/JuliaMath/Tau.jl )
8
-
9
- [ travis-img ] : https://img.shields.io/travis/JuliaMath/Tau.jl/master.svg?label=Linux,%20macOS
10
- [ appveyor-img ] : https://img.shields.io/appveyor/ci/waldyrious/tau-jl/master.svg?label=Windows
11
- [ codecov-img ] : https://img.shields.io/codecov/c/github/JuliaMath/Tau.jl/master.svg?label=coverage
5
+ [ ![ CI] ( https://github.com/JuliaMath/Tau.jl/actions/workflows/CI.yml/badge.svg?branch=master )] ( https://github.com/JuliaMath/Tau.jl/actions/workflows/CI.yml?query=branch%3Amaster )
6
+ [ ![ codecov] ( https://img.shields.io/codecov/c/github/JuliaMath/Tau.jl/master.svg?label=coverage )] ( http://codecov.io/github/JuliaMath/Tau.jl )
12
7
13
8
This [ Julia] ( https://github.com/JuliaLang/julia ) [ package] ( http://pkg.julialang.org/ )
14
9
defines the [ Tau] ( http://www.tauday.com/tau-manifesto ) constant
@@ -23,21 +18,32 @@ tau ≈ 2*pi
23
18
After installing this package with ` Pkg.add("Tau") ` , it can be used as follows:
24
19
25
20
``` julia
26
- using Tau
21
+ julia> using Tau
22
+
23
+ julia> tau === τ ≈ 2 * pi
24
+ true
27
25
28
- tau == τ ≈ 2 * pi # => true
29
- typeof (tau) # => Irrational{:τ }
26
+ julia > typeof (tau)
27
+ Irrational{:twoπ }
30
28
```
31
29
32
30
Note: to input the τ character, type ` \tau ` then press <kbd >Tab</kbd >.
33
31
34
32
The tau variants of ` sinpi ` , ` cospi ` , and ` mod2pi ` are also defined:
35
33
36
34
``` julia
37
- sintau (1 // 4 ) # => 1.0
38
- costau (1 // 2 ) # => -1.0
35
+ julia> sintau (1 // 4 )
36
+ 1.0
37
+
38
+ julia> costau (1 // 2 )
39
+ - 1.0
40
+
41
+ julia> modtau (9 * pi / 4 )
42
+ 0.7853981633974481
39
43
```
40
44
45
+ Alternatively, one can use the Unicode aliases ` sinτ ` , ` cosτ ` , and ` modτ ` .
46
+
41
47
## The tau != 2pi inequality
42
48
43
49
When this package was first created, the equality ` tau == 2pi ` did hold true,
0 commit comments