Movatterモバイル変換
[0]
ホーム
URL:
画像なし
夜間モード
Jump to content
Main menu
Main menu
move to sidebar
hide
Social
Discord
Facebook
Twitter
Explore
Languages
Tasks
Random page
Rosetta Code
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Contents
move to sidebar
hide
Beginning
1
0815
2
11l
3
360 Assembly
4
68000 Assembly
5
AArch64 Assembly
6
ABAP
Toggle ABAP subsection
6.1
Iterative
6.2
Recursive
7
Acornsoft Lisp
Toggle Acornsoft Lisp subsection
7.1
Recursive
7.2
Iterative
8
Action!
9
ActionScript
Toggle ActionScript subsection
9.1
Iterative
9.2
Recursive
10
Ada
Toggle Ada subsection
10.1
Iterative
10.2
Recursive
10.3
Numerical Approximation
11
Agda
12
Agena
13
Aime
Toggle Aime subsection
13.1
Iterative
14
ALGOL 60
15
ALGOL 68
Toggle ALGOL 68 subsection
15.1
Iterative
15.2
Numerical Approximation
15.3
Recursive
16
ALGOL W
17
ALGOL-M
18
AmigaE
19
AntLang
20
Apex
Toggle Apex subsection
20.1
Iterative
20.2
Recursive
21
APL
22
Apple
23
AppleScript
Toggle AppleScript subsection
23.1
Iteration
23.2
Recursion
23.3
Fold
24
Arendelle
25
ArkScript
26
ARM Assembly
27
ArnoldC
28
Arturo
Toggle Arturo subsection
28.1
Recursive
28.2
Fold
28.3
Product
29
AsciiDots
30
ATS
Toggle ATS subsection
30.1
Iterative
30.2
Recursive
30.3
Tail-recursive
31
Asymptote
Toggle Asymptote subsection
31.1
Iterative
32
AutoHotkey
Toggle AutoHotkey subsection
32.1
Iterative
32.2
Recursive
33
AutoIt
Toggle AutoIt subsection
33.1
Iterative
33.2
Recursive
34
Avail
35
AWK
36
Axe
37
Babel
Toggle Babel subsection
37.1
Iterative
37.2
Recursive
38
bash
Toggle bash subsection
38.1
Recursive
38.2
Imperative
39
BASIC
Toggle BASIC subsection
39.1
Iterative
39.2
Recursive
39.3
Applesoft BASIC
39.3.1
Iterative
39.3.2
Recursive
39.4
BaCon
39.5
BASIC256
39.5.1
Iterative
39.5.2
Recursive
39.6
BBC BASIC
39.7
CBASIC
39.8
Chipmunk Basic
39.8.1
Iterative
39.8.2
Recursive
39.9
Commodore BASIC
39.9.1
Iterative
39.9.2
Recursive with memoization and demo
39.10
Craft Basic
39.11
FreeBASIC
39.12
FTCBASIC
39.13
Gambas
39.14
GW-BASIC
39.15
IS-BASIC
39.16
Liberty BASIC
39.17
Microsoft Small Basic
39.18
Minimal BASIC
39.19
MSX Basic
39.20
Palo Alto Tiny BASIC
39.21
PowerBASIC
39.22
PureBasic
39.22.1
Iterative
39.22.2
Recursive
39.23
QB64
39.23.1
QB64_2022
39.24
Quite BASIC
39.25
Run BASIC
39.26
Sinclair ZX81 BASIC
39.26.1
Iterative
39.26.2
Recursive
39.27
SmallBASIC
39.28
TI-83 BASIC
39.29
TI-89 BASIC
39.30
Tiny BASIC
39.31
True BASIC
39.31.1
Iterative
39.31.2
Recursive
39.32
VBA
39.33
VBScript
39.34
Visual Basic
39.35
Visual Basic .NET
39.36
Yabasic
39.37
ZX Spectrum Basic
39.37.1
Iterative
39.37.2
Recursive
40
Batch File
41
bc
42
Beads
43
beeswax
44
Befunge
45
Binary Lambda Calculus
46
BQN
47
Bracmat
48
Brainf***
49
Brat
50
Bruijn
51
Burlesque
52
C
Toggle C subsection
52.1
Iterative
52.2
Recursive
52.3
Tail Recursive
52.4
Obfuscated
53
C#
Toggle C# subsection
53.1
Iterative
53.2
Recursive
53.3
Tail Recursive
53.4
Functional
53.5
Arbitrary Precision
54
C++
Toggle C++ subsection
54.1
Iterative
54.2
Template
54.3
Compare all Solutions (except the meta)
55
C3
Toggle C3 subsection
55.1
Iterative
55.2
Recursive
55.3
Recursive macro
56
Calcscript
57
Cat
58
Ceylon
59
Chapel
60
Chef
61
ChucK
Toggle ChucK subsection
61.1
Recursive
61.2
Iterative
62
Clay
63
Clio
Toggle Clio subsection
63.1
Recursive
64
CLIPS
65
Clojure
Toggle Clojure subsection
65.1
Folding
65.2
Recursive
65.3
Tail recursive
65.4
Trampolining
66
CLU
67
CMake
68
COBOL
Toggle COBOL subsection
68.1
Intrinsic Function
68.2
Iterative
68.3
Recursive
68.4
Test
69
CoffeeScript
Toggle CoffeeScript subsection
69.1
Recursive
69.2
Functional
70
Comal
71
Combinator Calculus
Toggle Combinator Calculus subsection
71.1
With Church encoded numerals
71.2
With Scott encoding
72
Comefrom0x10
73
Common Lisp
Toggle Common Lisp subsection
73.1
Alternate solution
74
Computer/zero Assembly
Toggle Computer/zero Assembly subsection
74.1
Iterative
74.2
Lookup
75
Crystal
Toggle Crystal subsection
75.1
Iterative
75.2
Recursive
76
D
Toggle D subsection
76.1
Iterative Version
76.2
Recursive Version
76.3
Functional Version
76.4
Tail Recursive (at run-time, with DMD) Version
77
Dart
Toggle Dart subsection
77.1
Recursive
77.2
Iterative
78
dc
79
Delphi
Toggle Delphi subsection
79.1
Iterative
79.2
Recursive
79.3
Tail Recursive
80
Draco
81
Dragon
82
DuckDB
83
DWScript
Toggle DWScript subsection
83.1
Iterative
83.2
Recursive
84
Dyalect
85
Dylan
Toggle Dylan subsection
85.1
Functional
85.2
Iterative
85.3
Recursive
85.4
Tail recursive
86
Déjà Vu
Toggle Déjà Vu subsection
86.1
Iterative
86.2
Recursive
87
E
88
EasyLang
89
EchoLisp
Toggle EchoLisp subsection
89.1
Iterative
89.2
Recursive with memoization
89.3
Tail recursive
89.4
Primitive
89.5
Numerical approximation
90
Ecstasy
91
EDSAC order code
92
EGL
Toggle EGL subsection
92.1
Iterative
92.2
Recursive
93
Eiffel
94
Ela
95
Elixir
96
Elm
Toggle Elm subsection
96.1
Recursive
96.2
Tail Recursive
96.3
Functional
97
Emacs Lisp
98
EMal
99
embedded C for AVR MCU
Toggle embedded C for AVR MCU subsection
99.1
Iterative
100
Erlang
101
ERRE
102
Euphoria
Toggle Euphoria subsection
102.1
Iterative
102.2
Recursive
102.3
Tail Recursive
102.4
'Paper tape' / Virtual Machine version
103
Excel
104
Ezhil
105
F#
106
Factor
107
FALSE
108
Fancy
109
Fantom
110
Fennel
111
Fermat
112
FOCAL
113
Forth
Toggle Forth subsection
113.1
Single Precision
113.2
Double Precision
114
Fortran
Toggle Fortran subsection
114.1
Fortran 90
114.2
FORTRAN 77
115
friendly interactive shell
Toggle friendly interactive shell subsection
115.1
Iterative
115.2
Recursive
116
Frink
117
FunL
Toggle FunL subsection
117.1
Procedural
117.2
Recursive
117.3
Tail-recursive
117.4
Using a library function
118
Futhark
Toggle Futhark subsection
118.1
Recursive
119
Iterative
120
FutureBasic
121
GAP
122
Genyris
123
Gleam
124
GML
125
gnuplot
126
Go
Toggle Go subsection
126.1
Iterative
126.2
Built in, exact
126.3
Efficient exact
126.4
Built in, Gamma
126.5
Built in, Lgamma
127
Golfscript
128
Gridscript
129
Groovy
Toggle Groovy subsection
129.1
Recursive
129.2
Iterative
130
Guish
Toggle Guish subsection
130.1
Recursive
130.2
Tail recursive
131
Haskell
Toggle Haskell subsection
131.1
Binary splitting
132
Haxe
Toggle Haxe subsection
132.1
Iterative
132.2
Recursive
132.3
Tail-Recursive
132.4
Functional
132.5
Comparison
133
hexiscript
Toggle hexiscript subsection
133.1
Iterative
133.2
Recursive
134
HicEst
135
Hobbes
Toggle Hobbes subsection
135.1
Recursive
136
HolyC
Toggle HolyC subsection
136.1
Iterative
136.2
Recursive
137
Hy
138
i
139
Icon and Unicon
Toggle Icon and Unicon subsection
139.1
Recursive
139.2
Iterative
140
IDL
141
Inform 6
142
Insitux
143
Io
144
J
Toggle J subsection
144.1
Operator
144.2
Iterative / Functional
144.3
Recursive
144.4
Generalization
145
Jakt
146
Janet
Toggle Janet subsection
146.1
Recursive
146.1.1
Non-Tail Recursive
146.1.2
Tail Recursive
146.2
Iterative
146.3
Functional
147
Java
Toggle Java subsection
147.1
Iterative
147.2
Recursive
147.3
Simplified and Combined Version
147.4
Using Java 9
148
JavaScript
Toggle JavaScript subsection
148.1
Iterative
148.2
Recursive
148.2.1
ES5 (memoized )
148.2.2
ES6
149
JOVIAL
150
Joy
151
jq
152
Jsish
153
Julia
154
K
Toggle K subsection
154.1
Iterative
154.2
Recursive
155
Klingphix
156
Klong
157
KonsolScript
158
Kotlin
159
Lambda Calculus
Toggle Lambda Calculus subsection
159.1
Church encoded numerals
159.2
Scott encoding
160
Lambdatalk
161
Lang
Toggle Lang subsection
161.1
Iterative
161.2
Recursive
161.3
Array Reduce
162
Lang5
Toggle Lang5 subsection
162.1
Folding
162.2
Recursive
163
langur
Toggle langur subsection
163.1
Folding
163.2
Recursive
163.3
Iterative
163.4
Iterative Folding
164
Lasso
Toggle Lasso subsection
164.1
Iterative
164.2
Recursive
165
Latitude
Toggle Latitude subsection
165.1
Functional
165.2
Recursive
165.3
Iterative
166
LDPL
167
Lean
168
LFE
Toggle LFE subsection
168.1
Non-Tail-Recursive Versions
168.2
Tail-Recursive Version
169
Lingo
Toggle Lingo subsection
169.1
Recursive
169.2
Iterative
170
Lisaac
171
Little Man Computer
172
LiveCode
173
LLVM
174
Logo
Toggle Logo subsection
174.1
Recursive
174.2
Iterative
175
LOLCODE
176
Lua
Toggle Lua subsection
176.1
Recursive
176.2
Tail Recursive
176.3
Memoization
177
M2000 Interpreter
Toggle M2000 Interpreter subsection
177.1
Using Decimal type
177.2
Using BigInteger
178
M4
179
MAD
180
MANOOL
181
Maple
182
Mathematica / Wolfram Language
Toggle Mathematica / Wolfram Language subsection
182.1
Recursive
182.2
Iterative (direct loop)
182.3
Iterative (list)
183
MATLAB
Toggle MATLAB subsection
183.1
Built-in
183.2
Recursive
183.3
Iterative
184
Maude
185
Maxima
Toggle Maxima subsection
185.1
Built-in
185.2
Recursive
185.3
Iterative
186
MAXScript
Toggle MAXScript subsection
186.1
Iterative
186.2
Recursive
187
Mercury
Toggle Mercury subsection
187.1
Recursive (using arbitrary large integers and memoisation)
188
min
189
MiniScript
Toggle MiniScript subsection
189.1
Iterative
189.2
Recursive
190
MiniZinc
191
MIPS Assembly
Toggle MIPS Assembly subsection
191.1
Iterative
191.2
Recursive
192
Mirah
193
МК-61/52
194
ML/I
Toggle ML/I subsection
194.1
Iterative
194.2
Recursive
195
mn
196
Modula-2
197
Modula-3
Toggle Modula-3 subsection
197.1
Iterative
197.2
Recursive
198
Mouse
Toggle Mouse subsection
198.1
Mouse 79
199
MUMPS
Toggle MUMPS subsection
199.1
Iterative
199.2
Recursive
200
MyrtleScript
201
Nanoquery
202
Neko
203
Nemerle
204
NetRexx
205
newLISP
206
Nial
207
Nickle
208
Nim
Toggle Nim subsection
208.1
Library
208.2
Recursive
208.3
Iterative
209
Niue
Toggle Niue subsection
209.1
Recursive
210
Nu
211
Nyquist
Toggle Nyquist subsection
211.1
Lisp Syntax
212
Oberon-2
213
Oberon-07
214
Objeck
Toggle Objeck subsection
214.1
Iterative
215
OCaml
Toggle OCaml subsection
215.1
Recursive
215.2
Iterative
215.3
Bignums
216
Octave
217
Odin
218
Oforth
219
Order
220
Oz
Toggle Oz subsection
220.1
Folding
220.2
Tail recursive
220.3
Iterative
221
Panda
222
PARI/GP
Toggle PARI/GP subsection
222.1
Recursive
222.2
Iterative
222.3
Binary splitting
222.4
Recursive 1
222.5
Built-in
222.6
Gamma
222.7
Moessner's algorithm
223
Pascal
Toggle Pascal subsection
223.1
Iterative
223.2
Iterative FreePascal
223.3
using FreePascal with GMP lib
223.4
Recursive
224
PascalABC.NET
225
Pebble
226
Peloton
227
Perl
Toggle Perl subsection
227.1
Iterative
227.2
Recursive
227.3
Functional
227.4
Modules
228
Peylang
229
Phix
Toggle Phix subsection
229.1
gmp
230
Phixmonti
231
PHP
Toggle PHP subsection
231.1
Iterative
231.2
Recursive
231.3
One-Liner
231.4
Library
232
Picat
233
PicoLisp
234
Piet
235
Plain English
236
PL/0
237
PL/I
238
PL/SQL
239
Pluto
240
PostScript
Toggle PostScript subsection
240.1
Recursive
240.2
Iterative
240.3
Combinator
241
PowerShell
Toggle PowerShell subsection
241.1
Recursive
241.2
Iterative