# math-area

> Calculating math area of multiple objects

Latest version **1.0.7** (published 2022-07-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install math-area
pnpm add math-area
yarn add math-area
bun add math-area
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-07-07 |
| First published | 2022-07-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | teddidoo |
| Maintainers | teddidoo |
| Keywords | math, area, calculator |

## Links

- npm: https://www.npmjs.com/package/math-area
- npm.io page: https://npm.io/package/math-area

## 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.7 (latest) — 2022-07-07
- 1.0.6 — 2022-07-07
- 1.0.5 — 2022-07-07
- 1.0.3 — 2022-07-05
- 1.0.2 — 2022-07-05
- 1.0.1 — 2022-07-05
- 1.0.0 — 2022-07-05

## README

# Math Area

Support calculating the area of objects

## Example
		
	const mathArea = require('math-area')
	mathArea.squareArea(5) // should return 25
	mathArea.hypotenuseOfPythagoreanTriangle(3, 4) // should return 5
	mathArea.rhombusArea(4, 5) // provides diagonal 1 and diagonal 2 as parameters
	
	// provides (short, long, height) as paramters to calculate trapezium with short < long
	// however, if you mix the short and long, for example: (5, 4, 2), it is auto switch the values.
	mathArea.trapezoidArea(4, 5, 2)
	
	mathArea.circleArea(4.5) // provides radius as a parameter
	
	
## Conventions

* Calculate area of an object:

			[name of object in lowercase] + Area
			For example: squareArea(5) 
			
* Calculate perimeter of an object:
			
			[name of object in lowercase] + Perimeter
			For example: squarePerimeter(4)

* Calculate others:

			[name] + Of + [name of object]
			For example: hypotenuseOfPythagoreanTriangle(3, 4)

## Support Geometry Calculations

| Syntax      | Description |
| ----------- | ----------- |
| @v1.0.4   | Circle (diameter, area) <br><br> Square(area, perimeter) <br><br> Triangle (area, perimeter) <br></br> Pythagorean Triangle (side, hypotenuse) <br></br> Rectangle (area, perimeter) <br></br> Trapezoid (area, perimeter) <br></br> Rhombus(area, perimeter)  |


> **Note:** New objects will come every week! :joy:

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