3cf59d321a
* NEW: Files can be dropped from files managers to the project treeview. They are automatically inserted into the project then. [WIKI CGI SCRIPT] * BUG: '{' and '}' are not interpreted anymore between '=='. [BENCHMARKS] * NEW: Add Gambas/Perl/Python benchmarks to the repository. [INTERPRETER] * NEW: A Stop instruction encountered inside a component is not ignored anymore and stops the program. * BUG: Fix the File.SetName, File.SetExt and File.SetBaseName methods. [COMPILER] * NEW: The preprocessor now undestands the False and True constants. [GB.FORM] * NEW: Clean up the Stock class icon loading algorithm. * BUG: Fix the Gnome icon map. [GB.FORM.STOCK] * NEW: Support for svg stock icons. [GB.QT4] * BUG: Drag.Show() now works for DnD operations started outside of the application. [GB.GTK] * BUG: Drag.Show() now works for DnD operations started outside of the application. git-svn-id: svn://localhost/gambas/trunk@3400 867c0c6c-44f3-4631-809d-bfa615b0a4ec
23 lines
349 B
Python
Executable file
23 lines
349 B
Python
Executable file
#!/usr/bin/python
|
|
|
|
n = 500000
|
|
x = 0.2
|
|
|
|
def t(x):
|
|
mu = 10.0
|
|
pu = 0.0
|
|
pol = [0] * 100
|
|
r = range(0,100)
|
|
|
|
for i in range(0,n):
|
|
for j in r:
|
|
pol[j] = mu = (mu + 2.0) / 2.0
|
|
su = 0.0
|
|
for j in r:
|
|
su = x * su + pol[j]
|
|
pu = pu + su
|
|
return pu
|
|
|
|
for i in range(0,10):
|
|
print t(x)
|
|
|