{"id":19094903,"url":"https://github.com/zahash/csc","last_synced_at":"2025-10-19T13:24:53.047Z","repository":{"id":199803158,"uuid":"703878154","full_name":"zahash/csc","owner":"zahash","description":"Command Line Scientific Calculator. Free Forever. Made with ❤️ using 🦀","archived":false,"fork":false,"pushed_at":"2024-03-26T05:30:21.000Z","size":58,"stargazers_count":29,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T14:13:13.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/csc","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zahash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-12T05:20:00.000Z","updated_at":"2024-12-03T15:17:59.000Z","dependencies_parsed_at":"2023-10-12T14:47:06.138Z","dependency_job_id":"703f8088-540b-434f-b93e-896948c7e125","html_url":"https://github.com/zahash/csc","commit_stats":null,"previous_names":["zahash/csc"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/zahash/csc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Fcsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Fcsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Fcsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Fcsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zahash","download_url":"https://codeload.github.com/zahash/csc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahash%2Fcsc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279819079,"owners_count":26231518,"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","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-09T03:32:01.255Z","updated_at":"2025-10-19T13:24:53.017Z","avatar_url":"https://github.com/zahash.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cpre\u003e\n ██████╗███████╗ ██████╗\n██╔════╝██╔════╝██╔════╝\n██║     ███████╗██║     \n██║     ╚════██║██║     \n╚██████╗███████║╚██████╗\n ╚═════╝╚══════╝ ╚═════╝\n------------------------\nCommand Line Scientific Calculator. Free Forever. Made with ❤️ using 🦀\n\u003c/pre\u003e\n\n[![Crates.io](https://img.shields.io/crates/v/csc.svg)](https://crates.io/crates/csc)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003c/div\u003e\n\n## Download\n\n[https://github.com/zahash/csc/releases](https://github.com/zahash/csc/releases)\n\n( or )\n\n```\ncargo install csc\n```\n\n## Usage examples\n\nlaunch the interactive prompt by typing `csc` to run multiple computations\n\n```sh\na = 10\nb = a + 1.14\nc = log(b, 3) + sin(PI)\n```\n\nor run one off computations by simply providing them\n\n```sh\n$ csc 10 + 1.14\n$ csc '10 + 1.14 * ln(50)'\n```\n\n## Features\n\n```sh\n# basic arithmetic and assignment\na = 1\nb = -2 % a * (3^2 / 4)\nb += 100\n\n# functions\nexp(x)\nsqrt(x)\ncbrt(x)\nabs(x)\nfloor(x)\nceil(x)\nround(x)\n\nln(x)\nlog2(x)\nlog10(x)\nlog(x, b)\n\nsin(rad)\ncos(rad)\ntan(rad)\n\nsinh(rad)\ncosh(rad)\ntanh(rad)\n\nasin(rad)\nacos(rad)\natan(rad)\n\nasinh(rad)\nacosh(rad)\natanh(rad)\n```\n\nAll calculations are done using [64 bit *binary* floating point arithmetic](https://en.wikipedia.org/wiki/Double-precision_floating-point_format)\n(using the Rust type [`f64`](https://doc.rust-lang.org/std/primitive.f64.html)), so you can come across\nthe limitations of this implementation, and observe behavior that may be different from other “scientific calculators”, such as the following:\n* Rounding errors that may be surprising in decimal notation (e.g. evaluating `0.1 + 0.2` prints `0.30000000000000004`).\n* Special values such as “infinity”, “not a number” or a negative zero can be the result of calculations that overflow or have invalid arguments.\n\n## Meta\n\nM. Zahash – zahash.z@gmail.com\n\nDistributed under the MIT license. See `LICENSE` for more information.\n\n[https://github.com/zahash/](https://github.com/zahash/)\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/zahash/csc/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahash%2Fcsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzahash%2Fcsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahash%2Fcsc/lists"}