human
Program for sum of cosh ( x ) series upto Nth term | function to return the factorial of a number.
function to return the Sum of the series.
Driver code"
Solution in Python:
assistant
#Here is code to program for sum of cosh ( x ) series upto Nth term and the other steps required.
 def fact ( n ) :
	i , fac = 1 , 1
	for i in range ( 1 , n + 1 ) :
		fac = fac * i
	return fac
def log_Expansion ( x , n ) :
	Sum = 0
	i = 0
	for i in range ( n ) :
		Sum = Sum + pow ( x , 2 * i ) / fact ( 2 * i )
	return Sum
x = 1
n = 10
print ( log_Expansion ( x , n ) )