Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cycles per second to units #420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pkgdefaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const AbsoluteScaleTemperature = Quantity{T, 𝚯, <:ScalarUnits} where T
# Angles and solid angles
@unit sr "sr" Steradian 1 true
@unit rad "rad" Radian 1 true
@unit cyc "cyc" Cycle 2π*rad true
@unit ° "°" Degree pi/180 false
# For numerical accuracy, specific to the degree
import Base: sind, cosd, tand, secd, cscd, cotd
Expand Down Expand Up @@ -108,6 +109,7 @@ end
@unit yr "yr" Year 31557600s true
@unit rps "rps" RevolutionsPerSecond 2π*rad/s false
@unit rpm "rpm" RevolutionsPerMinute 2π*rad/minute false
@unit cps "cps" CyclesPerSecond 1cyc/s true

# Area
# The hectare is used more frequently than any other power-of-ten of an are.
Expand Down