diff --git a/functions/__pycache__/add.cpython-38.pyc b/functions/__pycache__/add.cpython-38.pyc index 19d30dd..dea5400 100644 Binary files a/functions/__pycache__/add.cpython-38.pyc and b/functions/__pycache__/add.cpython-38.pyc differ diff --git a/functions/__pycache__/div.cpython-38.pyc b/functions/__pycache__/div.cpython-38.pyc index 9368940..0958431 100644 Binary files a/functions/__pycache__/div.cpython-38.pyc and b/functions/__pycache__/div.cpython-38.pyc differ diff --git a/functions/__pycache__/hypotenuse.cpython-38.pyc b/functions/__pycache__/hypotenuse.cpython-38.pyc new file mode 100644 index 0000000..abe9d7e Binary files /dev/null and b/functions/__pycache__/hypotenuse.cpython-38.pyc differ diff --git a/functions/__pycache__/mul.cpython-38.pyc b/functions/__pycache__/mul.cpython-38.pyc index 911f401..0e94319 100644 Binary files a/functions/__pycache__/mul.cpython-38.pyc and b/functions/__pycache__/mul.cpython-38.pyc differ diff --git a/functions/__pycache__/quadratic-solver.cpython-38.pyc b/functions/__pycache__/quadratic-solver.cpython-38.pyc index 5a700e6..dc054f7 100644 Binary files a/functions/__pycache__/quadratic-solver.cpython-38.pyc and b/functions/__pycache__/quadratic-solver.cpython-38.pyc differ diff --git a/functions/__pycache__/sigmoid.cpython-38.pyc b/functions/__pycache__/sigmoid.cpython-38.pyc index 6f349dc..ffcad9f 100644 Binary files a/functions/__pycache__/sigmoid.cpython-38.pyc and b/functions/__pycache__/sigmoid.cpython-38.pyc differ diff --git a/functions/__pycache__/sub.cpython-38.pyc b/functions/__pycache__/sub.cpython-38.pyc index 42394a6..ca8d7c3 100644 Binary files a/functions/__pycache__/sub.cpython-38.pyc and b/functions/__pycache__/sub.cpython-38.pyc differ diff --git a/functions/hypotenuse.py b/functions/hypotenuse.py new file mode 100644 index 0000000..1cbc3b5 --- /dev/null +++ b/functions/hypotenuse.py @@ -0,0 +1,24 @@ + # example for hypotenuse.py + +def calc(should_print=False): + + print(""" + Name: Hypotenuse Length + Operation : Finding length of the hypotenuse + Inputs : a->int/float , b->int/float + Outputs: c=>((a**2) + (b**2))**0.5 ->float + Author : rajkumawat + \n + """) + + a = float(input("Enter a >>")) + b = float(input("Enter b >>")) + + result = {} + result['inputs'] = [a, b] + result['outputs'] = [((a**2) + (b**2))**0.5] + + if should_print: + print(f"Solution {result['outputs'][0]}") + else: + return result \ No newline at end of file