# @lukasdotcom/math-solver

> Tries to solve any math problem

Latest version **0.2.0** (published 2022-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lukasdotcom/math-solver
pnpm add @lukasdotcom/math-solver
yarn add @lukasdotcom/math-solver
bun add @lukasdotcom/math-solver
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-10-24 |
| First published | 2022-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 36.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | lukasdotcom |
| Maintainers | lukasdotcom |
| Keywords | math |

## Links

- npm: https://www.npmjs.com/package/@lukasdotcom/math-solver
- Repository: https://github.com/Lukasdotcom/math-solver
- Homepage: https://github.com/Lukasdotcom/math-solver#readme
- Issues: https://github.com/Lukasdotcom/math-solver/issues
- npm.io page: https://npm.io/package/@lukasdotcom/math-solver

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2022-10-24
- 0.1.0 — 2022-10-20

## README

# Math Solver

Tries to solve any math problem. Currently all it does is the classic operators and adds them together while following order of operations. To install just run the command below:

```bash
npm i math-solver
```

# Example

To use this all you do is have this code and change the string in the function to whatever you want to solve. Note that currently only the basic operators are supported. The simpleMath function then returns an array of steps in the key steps and returns the answer under the key answer.

```js
import { simpleMath } from "@lukasdotcom/math-solver";

simpleMath("1+1");
```

You can also use this syntax:

```js
const mathSolver = require("@lukasdotcom/math-solver");

mathSolver.simpleMath("1+1");
```

---
_Source: https://npm.io/package/@lukasdotcom/math-solver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
