Common Lisp, or ANSI Common Lisp, is a standardized version of the Lisp programming language intended for production-strength power and libraries.
6
votes
4answers
978 views
Finding the sum of all the multiples of 3 or 5 below 1000
As a Lisp (and functional programming) newbie, I wrote the following code that finds the sum of all the multiples of 3 or 5 below 1000, and I suspect that it is lousy:
...
3
votes
2answers
2k views
Print an integer and its digits reversed
This Common Lisp program is an exercise to print an integer and its digits reversed to the screen:
...
1
vote
1answer
417 views
Simple octal reader macro in Common Lisp
As an exercise, I've implemented a simple reader macro in Common Lisp (using SBCL). It converts Octal (unsigned integers only) into numbers.
Usage:
...
1
vote
1answer
168 views
Machine epsilon - find epsi
4.2 Machine Epsilon
Find the floating point number epsi that has
the the following properties:
1.0+epsi is greater than 1.0 and
Let m b e any number less than epsi. Then 1.0+m is ...