Created
January 5, 2012 13:52
-
-
Save beakr/1565348 to your computer and use it in GitHub Desktop.
Lisp math
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Adding multiple nums ;; | |
(+ 2 3) ;; Adds 2 & 3 together... | |
(* 3 3) ;; 3 x 3, 9. | |
;; Just a lil' warm up... | |
(float (/ 7 10)) ;; Don't mistake all these semicolons for Javascript...*wink* | |
;; Algebra: | |
(setf d 3) | |
(d) | |
(setf a 4) | |
(a) | |
(+ a d) ;; w00t | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment