Menu

[r3949]: / trunk / course / examples / scipy / example4.4  Maximize  Restore  History

Download this file

11 lines (8 with data), 213 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
>>> result = quad(lambda x: expint(3, x), 0, Inf)
>>> print result
(0.33333333324560266, 2.8548934485373678e-09)
>>> I3 = 1.0/3.0
>>> print I3
0.333333333333
>>> print I3 - result[0]
8.77306560731e-11
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.