Adds Gaussian Function in maths section#1051
Adds Gaussian Function in maths section#1051QuantumNovice wants to merge 21 commits intoTheAlgorithms:masterfrom QuantumNovice:master
Conversation
|
This is cool! In this PR, please focus only on adding the Gaussian function. Please drop the .md files that are not directly tied to the Gaussian function. In general, we have the autogenerated DIRECTORY.md for users to find algorithms so if the .md files do not contain explanations, we would rather not have them. Awesome that you have added doctests but how about a few more? Both good parameters and bad parameters: Large numbers, negative numbers, strings, lists. |
|
|
All submissions will be tested with mypy so we encourage to add Python type hints where it makes sense to do so. |
|
OPTIONAL: Extra credit if you run your code through python/black for readability. OPTIONAL: You can also try to minimize parens: return 1 / sqrt(2 * pi * sigma ** 2) * exp(-(x - mu) ** 2 / 2 * sigma ** 2) |
|
Lowercase directory and Python filenames please:
|
|
Output did not match... |
|
The test failed because in Python 3.7.3 |
|
|
Fixed the error with |
No description provided.