Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pvscreations/practicalmath
Package for basic mathematical functions
https://github.com/pvscreations/practicalmath
mathematics npm-package package statistical-functions typescript
Last synced: about 9 hours ago
JSON representation
Package for basic mathematical functions
- Host: GitHub
- URL: https://github.com/pvscreations/practicalmath
- Owner: pvscreations
- License: mit
- Created: 2024-01-30T04:58:01.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-18T16:23:41.000Z (7 months ago)
- Last Synced: 2024-11-12T20:08:00.936Z (6 days ago)
- Topics: mathematics, npm-package, package, statistical-functions, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/practicalmath
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Practical Math
Practical Math is a JavaScript package designed to provide fundamental mathematical functions essential for development. Tailored to include statistical functions and cover various aspects of school mathematics, this package emerged from the practical needs encountered while working with TensorFlow models and rule-based classifications.
## Features
- **Basic Mathematical Functions:** Covering essential operations for numerical computations.
- **Statistical Functions:** Including functions for statistical analysis and data processing.
- **School Mathematics Support:** Offering functionalities aligned with school-level mathematical concepts.## Motivation
The inspiration for creating Practical Math arose during the development of TensorFlow models and rule-based classification systems. As the need for reliable and efficient mathematical operations became apparent, the Practical Math package was conceived to address these requirements.
# Usage
### 1. Approach
To effortlessly incorporate the practicalmath into your project, follow these simple steps:
#### Importing ####
```
import { PracticalMath } from 'practicalmath';
PracticalMath.euclideanDistance({ point1: {x:1,y:2,z:3}, point2: {x:3,y:4,z:2} });```
# 2.Available Functions
##### * findBestFitLine
##### * euclideanDistance
##### * calculateCosineAngleABC
##### * midPoint
##### * distancePointToLine# Future Scopes
* Evolve : Develop with more usefull functions
* Types : Flexibility in allowed types such as accepting objects as well as arrays
* Cross-Platform Support : Develop similar packages for Flutter,Java,Python.# References
* [published npm package link](https://www.npmjs.com/package/practicalmath)
* [code link](/src/index.ts)