-
Notifications
You must be signed in to change notification settings - Fork 9
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 "missing" irrationals #8
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,36 @@ | |
This package defines the following irrational constants: | ||
|
||
```julia | ||
twoπ # 2π | ||
fourπ # 4π | ||
halfπ # π / 2 | ||
quartπ # π / 4 | ||
invπ # 1 / π | ||
twoinvπ # 2 / π | ||
fourinvπ # 4 / π | ||
inv2π # 1 / (2π) | ||
inv4π # 1 / (4π) | ||
sqrt2 # √2 | ||
sqrt3 # √3 | ||
sqrtπ # √π | ||
sqrt2π # √2π | ||
sqrt4π # √4π | ||
sqrthalfπ # √(π / 2) | ||
invsqrt2 # 1 / √2 | ||
invsqrt2π # 1 / √2π | ||
loghalf # log(1 / 2) | ||
logtwo # log(2) | ||
logπ # log(π) | ||
log2π # log(2π) | ||
log4π # log(4π) | ||
twoπ # 2π | ||
fourπ # 4π | ||
halfπ # π / 2 | ||
quartπ # π / 4 | ||
invπ # 1 / π | ||
twoinvπ # 2 / π | ||
fourinvπ # 4 / π | ||
inv2π # 1 / (2π) | ||
inv4π # 1 / (4π) | ||
sqrt2 # √2 | ||
sqrt3 # √3 | ||
sqrtπ # √π | ||
sqrt2π # √2π | ||
sqrt4π # √4π | ||
sqrthalfπ # √(π / 2) | ||
sqrtquartπ # √(π / 4) | ||
invsqrt2 # 1 / √2 | ||
invsqrt3 # 1 / √3 | ||
invsqrtπ # 1 / √π | ||
invsqrt2π # 1 / √2π | ||
invsqrt4π # 1 / √4π | ||
invsqrthalfπ # 1 / √(π / 2) | ||
invsqrtquartπ # 1 / √(π / 4) | ||
loghalf # log(1 / 2) | ||
logtwo # log(2) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh, I see. |
||
log3 # log(3) | ||
logπ # log(π) | ||
log2π # log(2π) | ||
log4π # log(4π) | ||
loghalfπ # log(π / 2) | ||
logquartπ # log(π / 4) | ||
``` | ||
|
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.
The git diff is a little illegible, so I think it would be better to add more spaces before
#
for when someone registers a new variable with a long name in another PR.Or, it could be fine without aligning
#
.