https://github.com/mcabbott/bhaskara.jl
∿
https://github.com/mcabbott/bhaskara.jl
Last synced: 6 months ago
JSON representation
∿
- Host: GitHub
- URL: https://github.com/mcabbott/bhaskara.jl
- Owner: mcabbott
- Created: 2019-03-17T13:44:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T14:37:54.000Z (over 6 years ago)
- Last Synced: 2024-10-13T19:28:29.947Z (over 1 year ago)
- Language: Julia
- Homepage:
- Size: 43 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bhāskara
Provides Bhaskara I's sine approximation formula
```julia
bsin(θ) = 16(π-θ)θ / (5π^2 - 4(π-θ)θ) # error < 0.002, θ ∈ [0,π]
```
There is also `b2sin(θ)` for `θ ∈ [-π,π]`, and `Bhaskara.sin(θ)` for `θ ∈ 𝐑`,
by inserting appropriate `mod(,2π)` and `sign()*abs()` bits.
Similarly `bcos(θ)` is for `θ ∈ [-π/2,π/2]`, and `Bhaskara.cos(θ)` for all `θ ∈ 𝐑`.
