Pemrograman fungsional didasari oleh konsep pemetaan dan fungsi pada matematika. Pemrograman fungsional menggunakan fungsi-fungsi sebagai dasar dari pemecahan masalah. Bahasa pemrograman yang memakai bahasa fungsional salah satunya adalah LISP yang dirancang oleh John McCarty pada tahun 1956 - 1958 dan mulai diimplementasikan pada tahun 1959. Dari sinilah pemrograman bahasa fungsional berkembang. LISP mempengaruhi beberapa bahasa pemrograman lainnya. Salah satunya adalah Logo, bahasa fungsional yang ditujukan untuk mengajarkan matematika secara mudah. Ada juga FORTH, bahasa fungsional yang ditujukan untuk aplikasi sains dan teknologi yang berkecepatan tinggi dan mempunyai ukuran program yang relatif kecil. Lalu ALGOL60 yang sebenarnya adalah bahasa prosedural tapi dapat menggunakan proses rekursif.
Recursion in LISP
Thursday, 3 May 2012
Beberapa Fungsi dalam LISP
- Operator Matematika
Wednesday, 2 May 2012
If and Condition
If Format
(if (condition) [process if true] [process if false])
Ex:
(defun max2 (a b)
(if (> a b) a b)
)
(if (condition) [process if true] [process if false])
Ex:
(defun max2 (a b)
(if (> a b) a b)
)
Labels:
Function,
Introduction
Location:
Semarang, Indonesia
Tuesday, 1 May 2012
Make a Function
In LISP, we can make function that have procedure in it. With function, we can resolve complicated problems with just a command. To make a function, follow the instruction below:
Labels:
Function,
Introduction
Location:
Kebumen, Indonesia
Operator and Operand
In LISP, it use a unique format to calculate something. Unique because we must input the operand first, and then the operator.
Labels:
Introduction,
Operand,
Operator
Location:
Kebumen, Indonesia
Atom and List
Hello guys. Welcome to my first post. Here I will tell you about learning recursion, especially in LISP.
The first I will tell you about atom and list.
The first I will tell you about atom and list.
Labels:
Atom,
Introduction,
List
Location:
Kebumen, Indonesia
Subscribe to:
Posts (Atom)