{"id":18656112,"url":"https://github.com/geometryzen/stemcmicro","last_synced_at":"2025-07-04T16:31:59.722Z","repository":{"id":37870416,"uuid":"492567960","full_name":"geometryzen/stemcmicro","owner":"geometryzen","description":"Extensible Symbolic Mathematics in Browser","archived":false,"fork":false,"pushed_at":"2024-11-05T17:00:27.000Z","size":14335,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T16:06:59.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/geometryzen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-05-15T18:17:04.000Z","updated_at":"2024-11-05T17:00:32.000Z","dependencies_parsed_at":"2024-02-06T15:28:30.118Z","dependency_job_id":"1a911bf1-c56a-41d2-af26-cecba74d4940","html_url":"https://github.com/geometryzen/stemcmicro","commit_stats":null,"previous_names":["geometryzen/symbolic-math","geometryzen/stemcscript","geometryzen/stemcomega","geometryzen/stemcmicro","geometryzen/jsxmath"],"tags_count":368,"template":false,"template_full_name":null,"purl":"pkg:github/geometryzen/stemcmicro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryzen%2Fstemcmicro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryzen%2Fstemcmicro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryzen%2Fstemcmicro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryzen%2Fstemcmicro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geometryzen","download_url":"https://codeload.github.com/geometryzen/stemcmicro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryzen%2Fstemcmicro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263175250,"owners_count":23425529,"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-11-07T07:21:59.054Z","updated_at":"2025-07-04T16:31:59.695Z","avatar_url":"https://github.com/geometryzen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# STEMCmicro Monorepo\n\n## Overview\n\nstemcmicro is a Javascript (Typescript) library for symbolic mathematics.\n\nIt is motivated by the need to support learning activities in a web browser without requiring a symbolic mathematics server.\n\nThe roadmap is to create a highly modular and extensible ecosystem of packages to support diverse use cases. \n\n## Status\n\nAll packages are published together with the same version number.\n\n[![version](https://img.shields.io/npm/v/@stemcmicro/tree.svg)](https://www.npmjs.com/package/@stemcmicro/tree)\n\n[![npm downloads](https://img.shields.io/npm/dm/@stemcmicro/tree.svg)](https://npm-stat.com/charts.html?package=@stemcmicro/tree\u0026from=2024-03-27)\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](./CONTRIBUTING.md)\n\n## Example\n\n```typescript\nimport { create_engine, ExprEngine } from \"@stemcmicro/engine\";\nimport { js_parse } from \"@stemcmicro/js-parse\";\n\ndescribe(\"units\", () =\u003e {\n    it(\"create_engine\", () =\u003e {\n        const engine: ExprEngine = create_engine();\n        try {\n            const sourceText = [`G20 = algebra([1, 1, 1], [\"ex\", \"ey\", \"ez\"])`, `ex = G20[1]`, `ey = G20[2]`, `cross(ex,ey)`].join(\"\\n\");\n            const { trees, errors } = js_parse(sourceText);\n            if (errors.length \u003e 0) {\n            }\n            for (let i = 0; i \u003c trees.length; i++) {\n                const tree = trees[i];\n                const value = engine.valueOf(tree);\n                if (!value.isnil) {\n                    const s = engine.renderAsString(tree);\n                    expect(s).toBe(\"cross(ex,ey)\");\n                    const t = engine.renderAsString(engine.simplify(value));\n                    expect(t).toBe(\"ez\");\n                }\n                value.release();\n            }\n        } finally {\n            engine.release();\n        }\n    });\n});\n```\n\n## Features\n\n* arbitrary-precision arithmetic\n* complex quantities\n* geometric algebra\n* trigonometric functions\n* special functions\n* simplification\n* expansion\n* substitution\n* factoring\n* symbolic and numeric roots\n* units of measure\n* hyperreal numbers\n* matrices\n* derivatives and gradients\n* tensors\n* booleans\n* integrals\n* multi-integrals\n* open for extension\n\n## Getting Started\n\nFor a STEMCstudio example (click [here](https://www.stemcstudio.com/gists/615c4d96400a7d18e9741abe9bfc28fa) to try)\n\n## Packages and API Documentation\n\n### [@stemcmicro/atoms](https://geometryzen.github.io/stemcmicro/atoms)\n### [@stemcmicro/context](https://geometryzen.github.io/stemcmicro/context)\n### [@stemcmicro/cs-parse](https://geometryzen.github.io/stemcmicro/cs-parse)\n### [@stemcmicro/diagnostics](https://geometryzen.github.io/stemcmicro/diagnostics)\n### [@stemcmicro/directive](https://geometryzen.github.io/stemcmicro/directive)\n### [@stemcmicro/em-parse](https://geometryzen.github.io/stemcmicro/em-parse)\n### [@stemcmicro/engine](https://geometryzen.github.io/stemcmicro/engine)\n### [@stemcmicro/helpers](https://geometryzen.github.io/stemcmicro/helpers)\n### [@stemcmicro/js-parse](https://geometryzen.github.io/stemcmicro/js-parse)\n### [@stemcmicro/native](https://geometryzen.github.io/stemcmicro/native)\n### [@stemcmicro/py-parse](https://geometryzen.github.io/stemcmicro/py-parse)\n### [@stemcmicro/stack](https://geometryzen.github.io/stemcmicro/stack)\n### [@stemcmicro/tree](https://geometryzen.github.io/stemcmicro/tree)\n\n## Contributing\n\nPlease take a look at the [contributing](https://github.com/geometryzen/stemcmicro/blob/master/CONTRIBUTING.md) file.\n\n## References\n\nSTEMCmicro is a fork of [Algebrite by Davide Della Casa](https://github.com/davidedc/Algebrite).\nThe fork adds Geometric Algebra, S.I. Units of Measure, and changes the way that expressions are matched and transformed.  \n\nAlgebrite started as a port of [the EigenMath CAS by George Weigt](http://eigenmath.sourceforge.net/Eigenmath.pdf) to TypeScript.\nAnother fork of EigenMath: [SMIB by Philippe Billet](http://smib.sourceforge.net/).\n\nAnother CAS of similar nature is [SymPy](http://www.sympy.org/en/index.html) made in Python.\n\nThree other Javascript CAS are\n\n* [javascript-cas by Anthony Foster](https://github.com/aantthony/javascript-cas) supporting \"differentiation, complex numbers, sums, vectors (dot products, cross products, gradient/curl etc)\"\n* [Coffeequate by Matthew Alger](http://coffeequate.readthedocs.org/) supporting \"quadratic and linear equations, simplification of most algebraic expressions, uncertainties propagation, substitutions, variables, constants, and symbolic constants\".\n* [Algebra.js by Nicole White](http://algebra.js.org) which among other things can build and solve equations via a \"chainable\" API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeometryzen%2Fstemcmicro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeometryzen%2Fstemcmicro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeometryzen%2Fstemcmicro/lists"}