package_name_to_import_with.calculator_sub_package.basics.assumptions.operations_module module#
Define functions to add and multiply.
- add_numbers(left_addend, right_addend)[source]#
Perform addition of two real numbers.
- Parameters:
- Returns:
sum of
left_addend
andright_addend
- Return type:
Examples
>>> from package_name_to_import_with.calculator_sub_package import add_numbers >>> add_numbers(1, 2) 3.0 >>> add_numbers(1, -2) -1.0 >>> add_numbers(-1, 2) 1.0 >>> add_numbers(-1, -2) -3.0
- multiply_numbers(left_multiplicand, right_multiplicand)[source]#
Perform multiplication of two real numbers.
- Parameters:
- Returns:
product of two
left_multiplicand
andright_multiplicand
- Return type:
Examples
>>> from package_name_to_import_with.calculator_sub_package import multiply_numbers >>> multiply_numbers(1, 2) 2.0 >>> multiply_numbers(1, -2) -2.0 >>> multiply_numbers(-1, 2) -2.0 >>> multiply_numbers(-1, -2) 2.0