# HG changeset patch # User "uncorrelated zombie" # Date 1297900783 -32400 # Node ID 57283e4fdd4b794ceb787ff69a19a9a731211dc5 # Parent b99b69fd33aa2bee5bb09023295b9f53e173449b Python版の式を修正。計測結果には変化なし。 diff -r b99b69fd33aa -r 57283e4fdd4b Looping.py --- a/Looping.py Tue Feb 15 18:38:48 2011 +0900 +++ b/Looping.py Thu Feb 17 08:59:43 2011 +0900 @@ -5,7 +5,7 @@ "Looping Class" n0 = 0 def calc(self, n): - n1 = self.n0 + (2 - 2*(n%2)); + n1 = self.n0 + (1 - 2*(n%2)); self.n0 = n; return n1