-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use `IrrationalConstants` and `sinpi`/`cospi` * Bump to 1.0.0 Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com> * Update README Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
81 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CompatHelper | ||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
jobs: | ||
CompatHelper: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Add the General registry via Git" | ||
run: | | ||
import Pkg | ||
ENV["JULIA_PKG_SERVER"] = "" | ||
Pkg.Registry.add("General") | ||
shell: julia --color=yes {0} | ||
- name: "Install CompatHelper" | ||
run: | | ||
import Pkg | ||
name = "CompatHelper" | ||
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7" | ||
version = "3" | ||
Pkg.add(; name, uuid, version) | ||
shell: julia --color=yes {0} | ||
- name: "Run CompatHelper" | ||
run: | | ||
import CompatHelper | ||
CompatHelper.main() | ||
shell: julia --color=yes {0} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Manifest.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
name = "Tau" | ||
uuid = "c544e3c2-d3e5-5802-ac44-44683f340e4a" | ||
version = "0.2.0" | ||
version = "1.0.0" | ||
|
||
[deps] | ||
IrrationalConstants = "92d709cd-6900-40b7-9082-c6be49f344b6" | ||
|
||
[compat] | ||
IrrationalConstants = "0.1" | ||
julia = "1" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] | ||
|
||
[compat] | ||
julia = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
VERSION < v"0.7.0-beta2.199" && __precompile__() | ||
|
||
module Tau | ||
|
||
import IrrationalConstants | ||
|
||
export tau, τ, | ||
sintau, costau, modtau, | ||
sinτ, cosτ, modτ | ||
|
||
# Use overridden macro definition to define conversion methods for tau | ||
Base.@irrational τ 6.28318530717958647692 (2 * big(pi)) | ||
# Definition of τ as irrational constant | ||
const τ = IrrationalConstants.twoπ | ||
const tau = τ | ||
|
||
include("trig.jl") | ||
const modτ = mod2pi | ||
const modtau = modτ | ||
|
||
# Trigonometric functions | ||
sinτ(x) = sinpi(2 * x) | ||
cosτ(x) = cospi(2 * x) | ||
|
||
# Optimization for integers | ||
sinτ(x::Integer) = zero(float(x)) | ||
cosτ(x::Integer) = one(float(x)) | ||
|
||
modtau(x) = Base.mod2pi(x) | ||
const modτ = modtau | ||
const sintau = sinτ | ||
const costau = cosτ | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d2fd316
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
d2fd316
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/58193
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: