{"id":13408704,"url":"https://github.com/asc-community/AngouriMathCLI","last_synced_at":"2025-03-14T13:31:54.816Z","repository":{"id":63195451,"uuid":"565819533","full_name":"asc-community/AngouriMathCLI","owner":"asc-community","description":"Command-line interface based on AngouriMath","archived":false,"fork":false,"pushed_at":"2023-06-15T23:54:11.000Z","size":97,"stargazers_count":16,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T20:31:52.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asc-community.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-11-14T11:51:46.000Z","updated_at":"2023-09-25T11:32:12.000Z","dependencies_parsed_at":"2024-10-26T04:07:24.213Z","dependency_job_id":"f61a7c10-326d-47b3-8a34-61fd08454c32","html_url":"https://github.com/asc-community/AngouriMathCLI","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asc-community%2FAngouriMathCLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asc-community%2FAngouriMathCLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asc-community%2FAngouriMathCLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asc-community%2FAngouriMathCLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asc-community","download_url":"https://codeload.github.com/asc-community/AngouriMathCLI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243584410,"owners_count":20314753,"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-07-30T20:00:54.687Z","updated_at":"2025-03-14T13:31:54.433Z","avatar_url":"https://github.com/asc-community.png","language":"C#","funding_links":[],"categories":["\u003ca name=\"calc\"\u003e\u003c/a\u003eCalculators"],"sub_categories":[],"readme":".TH amcli 1  \"amcli\"\n.SH DESCRIPTION\nWhy use it?\n- Free and cross-platform\n- CLI interface for script automations\n- Piping for complex operations\n- Fast and small\n.SH SUBCOMMANDS\n.TP\n\\fBeval\\fR\nto evaluate into a single number, boolean, or a+bi form at for complex numbers. Expects one argument.\n\nExample:\n    $ amcli eval \"1 / 2\"\n    0.5\n    $ amcli eval \"e ^ pi \u003e pi ^ e\"\n    true\n\n.TP\n\\fBdiff\\fR\nto differentiate the expression over the given variable (the first argument). Expects two arguments.\n\nExample:\n    $ amcli diff \"x\" \"sin(x)\"\n    cos(x)\n    $ amcli diff \"x\" \"1 + x^2\"\n    2 * x\n    $ echo \"1 + x^2\" | amcli diff \"x\"\n    2 * x\n\n.TP\n\\fBsimp\\fR\nto simplify the expression. Expects one argument.\n\nExample:\n    $ amcli simp \"sin(x)^2 + cos(x)^2\"\n    1\n\n.TP\n\\fBfsimp\\fR\nto simplify the expression \"faster\". This one works closer to eval than to simp, but unlike eval, it won't try to collapse to a single number or boolean (e. g. sqrt(3) will stay as it is). Expects one argument. \n\nExample:\n    $ amcli fsimp \"sin(x)^2 + cos(x)^2\"\n    1\n\n.TP\n\\fBsolve\\fR\nto solve a *statement* over the given variable. A *statement* is an expression, otherwise evaluable to true or false (e. g. \"x \u003e 3\" is a statement, but \"x ^ 2\" is not).\n\nWhen the solution set is a finite solution, all solutions are written line-by-line. Otherwise, it's written as one line.\n\nExample:\n    $ amcli solve \"x\" \"x2 - 1 = 0\"\n    1\n    -1\n    $ amcli solve x \"x2 \u003e 1\"\n    (-oo; -1) \\/ (1; +oo)\n\n.TP\n\\fBlatex\\fR\nto convert an expression into LaTeX format. Expects one argument.\n\nExample:\n    $ amcli latex \"1/2\"\n    \\frac{1}{2}\n    $ amcli latex \"(sqrt(3) + x) / limit(sin(x) / x, x, 0)\"\n    \\\\frac{\\\\sqrt{3}+x}{\\\\lim_{x\\\\to 0} \\\\left[\\\\frac{\\\\sin\\\\left(x\\\\right)}{x}\\\\right]}\n\n.TP\n\\fBsub\\fR\nto substitute an expression instead of a variable. Expects three arguments (variable to substitute, expression to be substituted instead of the variable, expression).\n\nExample:\n    $ amcli sub x pi \"sin(x / 3)\"\n    sin(pi / 3)\n    $ amcli sub x \"pi / 3\" \"sin(x)\"\n    sin(pi / 3)\n\n.SH PIPING\n.TP\n\nAny argument can be received either as a CLI argument or through standard input.\nFor example,\n\n    amcli eval \"1 + 1\"\n\nis equivalent to\n\n    echo \"1 + 1\" | amcli eval\n\nThis allows to pipe complex evaluations:\n\n    echo \"sin(x) * cos(y)\" \\     # 0. initial expression\n    | amcli diff x \\             # 1. differentiate over x\n    | amcli sub x y \\            # 2. substitute y instead of x\n    | amcli diff y \\             # 3. differentiate over y\n    | amcli sub y \"pi/3\" \\       # 4. substitute pi/3 instead of y\n    | amcli simplify             # 5. simplify\n\nPrints\n\n    -1/2 * sqrt(3)\n\nSpecial symbol \"_\" (underscore) can be used to use stdinput instead of an argument. For instance, if you want to substitute the result of an operation into another expression:\n\n    echo \"e^x\" \\\n    | amcli sub u _ \"u / (1 + u)\" \\\n    | amcli sub x 10 \\\n    | amcli eval\n\nHere the result of `echo` is substituted instead of the second argument of `amcli sub`, not the last one.\n\n.SH OTHER\n\nYou can bind amcli to @ using aliases. On Unix-like operating systems, add\n    \n    alias @=amcli\n\n(or specify the full path)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasc-community%2FAngouriMathCLI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasc-community%2FAngouriMathCLI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasc-community%2FAngouriMathCLI/lists"}