@thomasdev/math-library
v1.0.4
Published
`math-lib` is a simple command-line interface (CLI) tool for performing basic math operations and solving quadratic equations.
Downloads
18
Maintainers
Readme
Math Library CLI
math-lib
is a simple command-line interface (CLI) tool for performing basic math operations and solving quadratic equations.
Installation
To use the math-lib
CLI, make sure you have Node.js and npm installed. You can install the CLI globally using npm:
npm install @thomasdev/math-library
Usage
Once installed, you can run math-lib
from the command line. Here is a summary of the available options and commands:
Options
-V, --version
Output the version number ofmath-lib
.-h, --help
Display help information for the command.
Commands
add <a> <b>
Add two numbers.subtract <a> <b>
Subtract the second number from the first number.multiply <a> <b>
Multiply two numbers.divide <a> <b>
Divide the first number by the second number.quadratic <a> <b> <c>
Solve a quadratic equation of the form ax^2 + bx + c = 0.help [command]
Display help information for a specific command.
Examples
Add two numbers:
math-lib add 5 10
Subtract one number from another:
math-lib subtract 15 5
Multiply two numbers:
math-lib multiply 3 7
Divide one number by another:
math-lib divide 20 4
Solve a quadratic equation:
math-lib quadratic 1 -3 2