This assignment is based on the concepts of "Packages". We have created Modules in earlier assignment. To create the package, we add __init__.py file in the folder. There are Namespace packages where we don't add __init.py__ file. Packages and Modules helps to make code more manageable where logically similar entities and placed together and thus it help in not only during development but also for the end users to consume the developed functionalities . In this assignment we have created a calculator package with following functionalities-
Build a calculator package that has separate module for:
- sin, cos, tan, tanh, SoftMax, Sigmoid, ReLU, log and e
- The modules shall include their derivatives as well
- If we do import calculator, we should be able to access all the above function (except derivatives)
- For derivates we must do: from package import derivatives.
- Outputs are returned as well as printed using only f-string
- Write simple test cases to check the outputs of each operator and their derivative
Build the package with following structure Calculator
- __init.py__
- math_func (contains following modules)
- sin
- cos
- tan
- tanh
- sigmoid
- softmax
- relu
- euler
- log
- _init_.py
- derivatives module to expose derivative functions inside math_func
- helper module for formatted output using f string
Test for readme exists
Test for readme contents are more than 500 words
Test for all important functions/class described well in your README.md file
Test for readme formatting
Test for source code formatting. No tabs but four spaces are used for indentation
Test for no function is with capitals in source code
Test to check minimum 20 functions are provided
Test for no function is repeated
Test to check doc strings
Test for no function is with capitals in source code
Test to check the value errors in case incorrect values are passed as arguments
Test to check the type error in case values passed as argument are not of required type