From fe0d79ac5c998675db818ba7f5f0d4badc367a51 Mon Sep 17 00:00:00 2001 From: fdai7764 Date: Sat, 27 Jan 2024 13:56:24 +0100 Subject: [PATCH] refactoring: Made the multiplyRoots function use the already implemented function for calculating square roots --- src/main/py/calculations_with_roots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/py/calculations_with_roots.py b/src/main/py/calculations_with_roots.py index 75c27b4..770cd14 100644 --- a/src/main/py/calculations_with_roots.py +++ b/src/main/py/calculations_with_roots.py @@ -1,6 +1,6 @@ -import math +from src.main.py.logarithmic_and_expo_and_root_calculations import sqrt def multiplyRoots(first_number, second_number): if first_number < 0 or second_number < 0: return -1 - return math.sqrt(first_number * second_number) \ No newline at end of file + return sqrt(first_number * second_number) \ No newline at end of file