changeset 3:57283e4fdd4b

Python版の式を修正。計測結果には変化なし。
author "uncorrelated zombie" <uncorrelated@yahoo.co.jp>
date Thu, 17 Feb 2011 08:59:43 +0900
parents b99b69fd33aa
children d788c88f41bd 861b93741d60
files Looping.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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