Welcome to math-lib’s documentation!
math-lib is a Python library for math sum and mulitply. and offers a simple and intuitive API.
Check out the Usage section for further information, including how to Installation the project.
Note
This project is under active development.
Contents
Usage
Installation
To use math-lib, first install it using pip:
(.venv) $ pip install math-lib
Creating recipes
To retrieve a list of random ingredients,
you can use the math-lib.get_random_ingredients()
function:
The kind
parameter should be either "meat"
, "fish"
,
or "veggies"
. Otherwise, math-lib.get_random_ingredients()
will raise an exception.
For example:
>>> import math-lib
>>> math-lib.get_random_ingredients()
['shells', 'gorgonzola', 'parsley']
API
This is the first section
- class math_lib.module_sum_multiply.module_sum_multiply.math_sum_multiply
This is the module for sum and multiply operations.
This module consists of two operations. They are summation and multiplication.
- operation_one
name of the operation one
- operation_two
name of the operation two
- sum_two(a, b)
returns the summation of a and b
- multiply_two(x, y)
returns the multiplication of x and y
=== This is the second section
=== This is the third section