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

Updating constants.jl - @irrational instead of @math_const #389

Merged
merged 1 commit into from
Jul 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/constants.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Useful math constants for distributions

import Base.@math_const
import Base.@irrational

@math_const halfπ 1.5707963267948966192 big(π) * 0.5
@math_const twoπ 6.2831853071795864769 big(2.) * π
@math_const sqrt2 1.4142135623730950488 sqrt(big(2.))
@math_const sqrt3 1.7320508075688772935 sqrt(big(3.))
@math_const invπ 0.3183098861837906715 big(1.) / π
@math_const logπ 1.1447298858494001741 log(big(π))
@math_const log2π 1.8378770664093454836 log(big(2.)*π)
@math_const log4π 2.5310242469692907930 log(big(4.)*π)
@math_const sqrt2π 2.5066282746310005024 sqrt(big(2.)*π)
@math_const logtwo 0.6931471805599453094 log(big(2.))
@math_const loghalf -0.6931471805599453094 log(big(0.5))
@irrational halfπ 1.5707963267948966192 big(π) * 0.5
@irrational twoπ 6.2831853071795864769 big(2.) * π
@irrational sqrt2 1.4142135623730950488 sqrt(big(2.))
@irrational sqrt3 1.7320508075688772935 sqrt(big(3.))
@irrational invπ 0.3183098861837906715 big(1.) / π
@irrational logπ 1.1447298858494001741 log(big(π))
@irrational log2π 1.8378770664093454836 log(big(2.)*π)
@irrational log4π 2.5310242469692907930 log(big(4.)*π)
@irrational sqrt2π 2.5066282746310005024 sqrt(big(2.)*π)
@irrational logtwo 0.6931471805599453094 log(big(2.))
@irrational loghalf -0.6931471805599453094 log(big(0.5))

@math_const sqrthalfπ 1.2533141373155002512 sqrt(big(0.5)*π)
@irrational sqrthalfπ 1.2533141373155002512 sqrt(big(0.5)*π)