{"id":22293885,"url":"https://github.com/rtbo/termcalc","last_synced_at":"2025-10-19T20:39:19.342Z","repository":{"id":253855895,"uuid":"844285903","full_name":"rtbo/termcalc","owner":"rtbo","description":"Simple Calculator for the Terminal","archived":false,"fork":false,"pushed_at":"2025-07-04T22:00:43.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T23:34:31.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtbo.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","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,"zenodo":null}},"created_at":"2024-08-18T23:39:00.000Z","updated_at":"2025-07-04T22:00:46.000Z","dependencies_parsed_at":"2024-09-06T06:04:20.431Z","dependency_job_id":"abaa679e-4b6c-48d0-a968-2075d4e5d1fa","html_url":"https://github.com/rtbo/termcalc","commit_stats":null,"previous_names":["rtbo/termcalc"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rtbo/termcalc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Ftermcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Ftermcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Ftermcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Ftermcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtbo","download_url":"https://codeload.github.com/rtbo/termcalc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Ftermcalc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279903833,"owners_count":26241841,"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-12-03T17:32:50.204Z","updated_at":"2025-10-19T20:39:19.314Z","avatar_url":"https://github.com/rtbo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminal calculator\n\nA simple command line calculator.\n\n## Purpose\n\nThe binary name is `tc`.\nIf you are already in a terminal session and need a quick calculation,\ntyping `tc \"2.5 + 3.73 / 4\"` is actually faster than grabbing\nyour desktop calculator or starting and using a calculator app.\n\n`tc` is also **a lot simpler** to use than `bc` or `dc`.\n\n## Manual\n\nThe [manual](./doc/Manual.adoc) states quite everything you need to know about `tc`.\n(and it'll take you about one minute to read)\n\n## Examples\n\n### Expressions on the command line\n\n```sh\n$ tc \"1.2 + 3^2 + sqrt(12)\"\n1.2 + 3^2 + sqrt(12) = 13.664101615137753\n\n$ tc \"cos(pi/3)\" \"sin(pi/6)\"\ncos(pi/3) = 0.5000000000000001\nsin(pi/6) = 0.49999999999999994\n\n$ tc -s \"12*3 + 18*2.5 - 3 * 2.3\" # or --strip\n74.1\n```\n\n### Interactive session\n\n![an interactive session screenshot](./doc/interactive-session.png)\n\n### Clear diagnostics\n\n```sh\n$ tc \"1.4 + son(pi/6)\" # typo\n1.4 + son(pi/6)\n      ^^^\nerror: Function `son` is unknown\n```\n\n## Grammar reference\n\nSee [Grammar.ebnf](./doc/Grammar.ebnf)\n\n\n## Installation\n\nSeveral methods are supported. If you are a rust developer, you can use `cargo` directly:\n\n```sh\n$ cargo install termcalc\n```\n\nThis will install the program `tc` on all supported platforms.\n\n| Method | Platform | How-To |\n|-----|------|-----|\n| Cargo | All | `cargo install termcalc` |\n| Snap | Linux | `sudo snap install termcalc` |\n\n_Other methods: work in progress_\n\n### Linux specific case\n\nOn Linux, `tc` is a kernel system utility (Traffic Control).\nSnap and distribution packages will install a binary named `termcalc`.\nIf you don't use the system `tc`, you are encouraged to create\na `tc` alias to `termcalc` like so:\n\n```sh\n$ echo \"alias tc=termcalc\" \u003e\u003e ~/.bash_aliases\n$ source ~/.bashrc\n```\n\nIf it doesn't work, uncomment or append the following to `~/.bashrc`\n\n```sh\nif [ -f ~/.bash_aliases ]; then\n    . ~/.bash_aliases\nfi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtbo%2Ftermcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtbo%2Ftermcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtbo%2Ftermcalc/lists"}