Spaces:
Sleeping
Sleeping
Commit
·
fbdb959
1
Parent(s):
64e199b
query lower than sum
Browse files
analyze_verses_universal.py
CHANGED
@@ -20,7 +20,7 @@ def get_power_result(total_sum, query_value):
|
|
20 |
if total_sum <= 0 or query_value <= 1:
|
21 |
return 1
|
22 |
elif query_value > total_sum:
|
23 |
-
return math.ceil(math.sqrt(query_value
|
24 |
|
25 |
try:
|
26 |
exponent = int(math.floor(math.log(total_sum, query_value)))
|
|
|
20 |
if total_sum <= 0 or query_value <= 1:
|
21 |
return 1
|
22 |
elif query_value > total_sum:
|
23 |
+
return math.ceil(math.sqrt(query_value))
|
24 |
|
25 |
try:
|
26 |
exponent = int(math.floor(math.log(total_sum, query_value)))
|