/calci-com

Primary LanguageJavaScript

Calculator Package

The Calculator Package is a versatile npm package that provides a wide range of mathematical functions, including basic arithmetic operations, trigonometric functions, unit conversions, geometry calculations, date and time operations, and more. It is designed to be easy to use and integrate into your JavaScript projects.

Installation

You can install the Calculator Package via npm:

npm install calculator-package

Usage

To use the Calculator Package in your JavaScript code, simply require it:

const calculator = require('calculator-package');

You can then use any of the provided functions:

console.log(calculator.add(5, 3)); 
console.log(calculator.subtract(10, 4)); 
console.log(calculator.sinh(0)); 

Features

  • Basic arithmetic operations: addition, subtraction, multiplication, division
  • Exponentiation, square root, percentage calculation
  • Trigonometric functions: sine, cosine, tangent, arcsine, arccosine, arctangent
  • Hyperbolic functions: sinh, cosh, tanh
  • Unit conversion: Celsius to Fahrenheit, meters to feet, kilograms to pounds, etc.
  • Geometry calculations: area and perimeter of squares, rectangles, circles, etc.
  • Date and time operations: calculating days difference, adding/subtracting days from a date, etc.

Contributing

Contributions are welcome! If you have suggestions for new features, bug fixes, or improvements, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.