Skip to content

Instantly share code, notes, and snippets.

@tanaikech
Created October 14, 2016 05:13
Show Gist options
  • Save tanaikech/b980f039a7ab8fe61eeec45585b05e5e to your computer and use it in GitHub Desktop.
Save tanaikech/b980f039a7ab8fe61eeec45585b05e5e to your computer and use it in GitHub Desktop.
ピラミッド方式の他言語への適応性 ref: http://qiita.com/tanaike/items/64ff01fad8d5958a56d5
N_{l} = \sum_{k=1}^{\omega - 1} \frac{\theta}{\phi^{k}} \tag{1}
\varepsilon = 100 \times \frac{1}{(\phi - 1)} \tag{2}
Declare a string variable arr, sum
Declare an integer variable loopcounter
Set arr to size n
for loopcounter = 0 to (size of arr) - 1
sum = sum + arr[loopcounter]
loopcounter = loopcounter + 1
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment