gabor_private_calculator
v1.4.0
Published
This file contains four basic arithmetic functions: `sum`, `multiply`, `divide`, and `subtract`. Each function takes two parameters and returns the result of the corresponding arithmetic operation.
Readme
Index.js
This file contains four basic arithmetic functions: sum, multiply, divide, and subtract. Each function takes two parameters and returns the result of the corresponding arithmetic operation.
Functions
sum(a, b)
This function takes two numbers as parameters and returns their sum.
Parameters:
a(Number): The first number.b(Number): The second number.
Returns:
- (Number): The sum of
aandb.
multiply(a, b)
This function takes two numbers as parameters and returns their product.
Parameters:
a(Number): The first number.b(Number): The second number.
Returns:
- (Number): The product of
aandb.
divide(a, b)
This function takes two numbers as parameters and returns the result of dividing a by b.
Parameters:
a(Number): The numerator.b(Number): The denominator.
Returns:
- (Number): The result of dividing
abyb.
subtract(a, b)
This function takes two numbers as parameters and returns the result of subtracting b from a.
Parameters:
a(Number): The minuend.b(Number): The subtrahend.
Returns:
- (Number): The result of subtracting
bfroma.
Exports
All four functions are exported as an object at the end of the file.
