2013-09-23 22:34:36 +0200 | received badge | ● Supporter (source) |
2013-09-23 22:33:37 +0200 | commented answer | numerical_integral throwing an error The following also fails, presumably for the same reason. i(x) = 1*x print numerical_integral(i, 1, 2) |
2013-09-23 21:24:38 +0200 | asked a question | numerical_integral throwing an error Hi. Can anyone explin why the following is producing an error please. First integral works, the second fails. g(x) = 2*x print numerical_integral(g, 1, 2) (3.0, 3.3306690738754696e-14) h(x) = x print numerical_integral(h, 1, 2) Traceback (most recent call last): ValueError: free variable: x |--> x |