# linear-equation

> A simple way to interact with linear equation

Latest version **1.0.15** (published 2023-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install linear-equation
pnpm add linear-equation
yarn add linear-equation
bun add linear-equation
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.15 |
| Published | 2023-10-29 |
| First published | 2023-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 16 |
| Dependencies | 0 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ivan Fretes |
| Maintainers | ivanfretes |
| Keywords | linear-equation, math, algebra, geometry, slope, angle |

## Links

- npm: https://www.npmjs.com/package/linear-equation
- Repository: https://github.com/ivanfretes/linear-equation-js
- Homepage: https://github.com/ivanfretes/linear-equation-js#readme
- Issues: https://github.com/ivanfretes/linear-equation-js/issues
- npm.io page: https://npm.io/package/linear-equation

## 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

- 1.0.15 (latest) — 2023-10-29
- 1.0.14 — 2023-10-29
- 1.0.13 — 2023-09-09
- 1.0.12 — 2023-09-09
- 1.0.11 — 2023-09-08
- 1.0.10 — 2023-09-08
- 1.0.9 — 2023-09-04
- 1.0.8 — 2023-09-04
- 1.0.7 — 2023-09-04
- 1.0.6 — 2023-09-04
- 1.0.4 — 2023-09-04
- 1.0.3 — 2023-09-04
- 1.0.2 — 2023-09-03
- 1.0.1 — 2023-09-03
- 1.0.0 — 2023-09-02

## README

# linear-equation-js
Library to perform basic algebra and geometry operations

Focus to:
*  point (x,y) and straight 
* r: [constantX, constantY, contents]

<img src="docs/assets/img/43.gif">

### Scope
- [x] Equation of the line
- [x] Point of intersection
- [x] Slope Angle
- [ ] Middle point
- [x] Distance between two points
- [ ] Distance from a point to a line
- [x] Slope of a straight line
- [x] Angle in sexagecimal and radian notation
- [ ] Angle between two lines
- [ ] Complement and Supplement of an angle

### Install
```bash
$ npm i linear-equation
```

### Use

```javascript
   import { genLinearEquation } from 'linear-equation';

   // Get an array with aX + bY + c
   const [a, b, c] = genLinearEcuation(
      [-57.5516653060913, -25.336896667846172 ],
      [-57.552150785923, 25.338130579204833]
   );

   // This is the same than general form of equation
   console.log(`${a}x + ${b}y  + ${c} `)
```

### Todo
* Improve docs
* Add new features

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