Hello,
I am trying to solve an integral with the below code but I keep getting a Syntax error for my second def F; I would
Thank you!!
I am trying to solve an integral with the below code but I keep getting a Syntax error for my second def F; I would
1 2 3 4 5 6 7 |
def f(x): return exp(sin(x)) def F(x): return quad(f, 0 ,x)[ 0 ] for n in range ( 1 , 27 ): x = 2 * pi * ( float (n) - 1.0 ) / 25.0 print str (x) + ' ' + str (F(x)) |