Реализуйте функцию, используя библиотеку math (python)
def custom_function_1(x, n):
res = 0
for i in range(1, n + 1):
res += (math.pow(n + 2, x) + math.log10(x)) / (math.pow(x, 2) + 4 * n)
return res
pass
Источник: Stack Overflow на русском