{"id":20161055,"url":"https://github.com/idealvin/bc","last_synced_at":"2025-03-03T02:42:14.343Z","repository":{"id":50002675,"uuid":"101619868","full_name":"idealvin/bc","owner":"idealvin","description":"some useful math functions for linux calculator bc","archived":false,"fork":false,"pushed_at":"2021-06-06T10:01:51.000Z","size":8,"stargazers_count":24,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T13:51:41.961Z","etag":null,"topics":["bc","calculator","cos","sin"],"latest_commit_sha":null,"homepage":null,"language":null,"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/idealvin.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":"2017-08-28T08:10:59.000Z","updated_at":"2024-08-04T10:10:17.000Z","dependencies_parsed_at":"2022-08-25T21:50:17.847Z","dependency_job_id":null,"html_url":"https://github.com/idealvin/bc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealvin%2Fbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealvin%2Fbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealvin%2Fbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealvin%2Fbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idealvin","download_url":"https://codeload.github.com/idealvin/bc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600482,"owners_count":19988713,"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":["bc","calculator","cos","sin"],"created_at":"2024-11-14T00:17:13.084Z","updated_at":"2025-03-03T02:42:14.320Z","avatar_url":"https://github.com/idealvin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# some useful math functions for linux calculator bc\n\n## usage\n\nPut `bcrc` somewhere such as ~/.bcrc, then start bc as follows:\n```sh\n# you may add an alias to your bashrc file:\n#   alias bc='bc ~/.bcrc -l -q'\nbc ~/.bcrc -l\n```\n\n## supported functions\n\n### trigonometric functions\n```sh\nsin(x), cos(x), tan(x), cot(x), sec(x), csc(x)\n```\n\n### inverse trigonometric functions\n```sh\narcsin(x), arccos(x), arctan(x), arccot(x), arcsec(x), arccsc(x)\n\nor asin(x), acos(x), atan(x), acot(x), asec(x), acsc(x)\n```\n\n### logarithmic function\n```sh\nlog(a, b)\nln(x)            # log(e, x)\nlg(x), log10(x)  # log(10, x)\nlog2(x)          # log(2, x)\n```\n\n### others\n```sh\ne(x), exp(x)     # exponentiation of e\npow(a, b)        # a ^ b\nsqrt(x)          # x ^ 1/2\ncbrt(x)          # x ^ 1/3\nabs(x)           # absolute value of x\nfac(n)           # factorial of n\nc(n, k)          # n choose k, unordered\na(n, k)          # n choose k, ordered\ndeg(rad)         # Radians to degrees\nrad(deg)         # Degrees to radians\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealvin%2Fbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidealvin%2Fbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealvin%2Fbc/lists"}