+ 2
Python3 summation
I want to use the gamma function on this summation and thiS what I have so far: from functools import reduce import numpy print(int(reduce(lambda x,y: x+y, [1,2,3,4]))) What should I do from now?
3 Réponses
+ 1
I'm sorry if I didn't understand, but I believe you would do this:
from functools import reduce
from math import gamma
print(gamma(int(reduce(lambda x, y: x + y, [1, 2, 3, 4]))))
The result would be 362, 880.
+ 2
thank you!
+ 1
imma follow u