Chapter 1.6

Numbers and Math

"The 3-legged stool of understanding is held up by history, languages, and mathematics. Equipped with these three you can learn anything you want to learn."

Robert A. Heinlein, The Happy Days Ahead, Expanded Universe

Common Lisp comes complete with a rigorous collection of mathematical tools, and excellent handling of Big Integers and Long-Floats---enabling Lisp software to leverage powerful number crunching facilities, perform statistical analysis, scientific computing, efficient cryptography, and more. All the functions, macros, and types presented in this chapter are a part of the language itself, and do not have to be specially imported from a separate standard library to be used.

In this chapter, we will review the numeric types available in Common Lisp, their built in notations, and cover the core mathematical functionality in the Common Lisp standard.

Exercises

results matching ""

    No results matching ""