{"id":16705093,"url":"https://github.com/mcabbott/bhaskara.jl","last_synced_at":"2026-01-02T16:04:33.099Z","repository":{"id":61797270,"uuid":"176107111","full_name":"mcabbott/Bhaskara.jl","owner":"mcabbott","description":"∿","archived":false,"fork":false,"pushed_at":"2020-02-08T14:37:54.000Z","size":44,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-13T19:28:29.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcabbott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-17T13:44:17.000Z","updated_at":"2022-02-26T14:34:04.000Z","dependencies_parsed_at":"2022-10-21T11:00:33.778Z","dependency_job_id":null,"html_url":"https://github.com/mcabbott/Bhaskara.jl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcabbott%2FBhaskara.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcabbott%2FBhaskara.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcabbott%2FBhaskara.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcabbott%2FBhaskara.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcabbott","download_url":"https://codeload.github.com/mcabbott/Bhaskara.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243561237,"owners_count":20311062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T19:28:39.021Z","updated_at":"2026-01-02T16:04:33.049Z","avatar_url":"https://github.com/mcabbott.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bhāskara\n\nProvides Bhaskara I's sine approximation formula\n\n```julia\nbsin(θ) = 16(π-θ)θ / (5π^2 - 4(π-θ)θ)      # error \u003c 0.002, θ ∈ [0,π]\n```\n\nThere is also `b2sin(θ)` for `θ ∈ [-π,π]`, and `Bhaskara.sin(θ)` for `θ ∈ 𝐑`,\nby inserting appropriate `mod(,2π)` and `sign()*abs()` bits. \nSimilarly `bcos(θ)` is for `θ ∈ [-π/2,π/2]`, and `Bhaskara.cos(θ)` for all `θ ∈ 𝐑`.\n\n\u003cimg src=\"sin.png?raw=true\" width=\"600\" height=\"400\" alt=\"versions of sin\" align=\"center\" padding=\"5\"\u003e\n\n\u003c!--\nusing Bhaskara, Plots\nplot(-2π:0.01:2π, bsin.(-2π:0.01:2π), lab=\"bsin\")\nplot!(-2π:0.01:2π, b2sin.(-2π:0.01:2π), lab=\"b2sin\")\nplot!(-2π:0.01:2π, Bhaskara.sin.(-2π:0.01:2π), lab=\"sin\")\nplot!(xticks=([-2π,-π,0,π,2π],[\"-2\\\\pi\",\"-\\\\pi\",\"0\",\"\\\\pi\",\"2\\\\pi\"]), ylim=[-2,2])\nsavefig(\"sin.png\")\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcabbott%2Fbhaskara.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcabbott%2Fbhaskara.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcabbott%2Fbhaskara.jl/lists"}