Skip to content

mcabbott/Bhaskara.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bhāskara

Provides Bhaskara I's sine approximation formula

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