An open API service indexing awesome lists of open source software.

https://github.com/mcabbott/bhaskara.jl


https://github.com/mcabbott/bhaskara.jl

Last synced: 6 months ago
JSON representation

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 `θ ∈ 𝐑`.

versions of sin