#NEWLINE# def _eval_aseries( self , n , args0 , x , logx ) : #NEWLINE# #INDENT# from sympy import Order #NEWLINE# point = args0 [ 0 ] #NEWLINE# if ( point is S . Infinity ) : #NEWLINE# #INDENT# z = self . args [ 0 ] #NEWLINE# p = [ ( ( ( ( - 1 ) ** k ) * factorial ( ( ( 4 * k ) + 1 ) ) ) / ( ( ( ( 2 ** ( ( 2 * k ) + 2 ) ) * ( z ** ( ( 4 * k ) + 3 ) ) ) * ( 2 ** ( 2 * k ) ) ) * factorial ( ( 2 * k ) ) ) ) for k in range ( 0 , n ) ] #NEWLINE# q = ( [ ( 1 / ( 2 * z ) ) ] + [ ( ( ( ( - 1 ) ** k ) * factorial ( ( ( 4 * k ) - 1 ) ) ) / ( ( ( ( 2 ** ( ( 2 * k ) + 1 ) ) * ( z ** ( ( 4 * k ) + 1 ) ) ) * ( 2 ** ( ( 2 * k ) - 1 ) ) ) * factorial ( ( ( 2 * k ) - 1 ) ) ) ) for k in range ( 1 , n ) ] ) #NEWLINE# p = ( [ ( ( - sqrt ( ( 2 / pi ) ) ) * t ) for t in p ] + [ Order ( ( 1 / ( z ** n ) ) , x ) ] ) #NEWLINE# q = ( [ ( sqrt ( ( 2 / pi ) ) * t ) for t in q ] + [ Order ( ( 1 / ( z ** n ) ) , x ) ] ) #NEWLINE# return ( S . Half + ( ( cos ( ( z ** 2 ) ) * Add ( * p ) ) + ( sin ( ( z ** 2 ) ) * Add ( * q ) ) ) . subs ( x , ( sqrt ( ( 2 / pi ) ) * x ) ) ) #NEWLINE# #UNINDENT# return super ( fresnelc , self ) . _eval_aseries ( n , args0 , x , logx )