You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New MathFramework Package Example for contribution (move it to src/mathframework/):
importmathclasspythagorean_theorem:
classMeta:
name="Pythagorean Theorem"package="pythagorean_theorem"description="takes at least two arguments, you must specify whether it is a cathet or a hypotenuse"creator="Gleb Rodukov<[email protected]>"defpythagorean_theorem(cathet1: float=None, cathet2: float=None, hypotenuse: int=None) ->float:
"This function is working Pythagorean Theorem"ifcathet1==None:
returnmath.sqrt(
hypotenuse**2-cathet2**2
)
elifcathet2==None:
returnmath.sqrt(
hypotenuse**2-cathet1**2
)
elifhypotenuse==None:
returnmath.sqrt(
cathet1**2+cathet2**2
)
else:
returnFalse
💝 How to contribute?
Fork this repository;
Add math formula to src/mathframework/;
Run main.py and test your program;
Commit your updates;
Create Pull Request and wait reviewer's reaction. If it will be successful i publish it.