332x Filetype PDF File size 1.16 MB Source: inside.mines.edu
L02: Symbolic Computation and Common Lisp (Pre Lecture)
Dr. Neil T. Dantam
CSCI-561, Colorado School of Mines
Fall 2022
Dantam (Mines CSCI-561) L02: Symbolic Computation and Common Lisp (Pre Lecture) Fall 2022 1/58
Kay on Lisp
https://youtu.be/pUoBSC3uoeo?t=40m49s
Dantam (Mines CSCI-561) L02: Symbolic Computation and Common Lisp (Pre Lecture) Fall 2022 2/58
“Maxwell’s Equations of Programming”
Dantam (Mines CSCI-561) L02: Symbolic Computation and Common Lisp (Pre Lecture) Fall 2022 3/58
What is Lisp?
Definition (Lisp)
A family of programming languages based on s-expressions.
Data Structure
“Math” NIL
n! = (1 if n = 0 defun factorial n NIL
n∗(n−1)! if n 6= 0
1 NIL
if 0 NIL
Code = n
( defun fact (n) NIL
( i f (= n 0) * n NIL
1
(∗ n (fact (− n 1))))) factorial 1 NIL
- n
Dantam (Mines CSCI-561) L02: Symbolic Computation and Common Lisp (Pre Lecture) Fall 2022 4/58
no reviews yet
Please Login to review.