A collection of lisp snippets I’ll be adding to as I learn more. Factorial (recursive function) (defun factorial (n) (if (= n 0) 1 (if (> n 0) (* n (factorial (- n 1))))))
Categories
Archives
Blogroll
RSS Links
A collection of lisp snippets I’ll be adding to as I learn more. Factorial (recursive function) (defun factorial (n) (if (= n 0) 1 (if (> n 0) (* n (factorial (- n 1))))))
Say’s Law, also known as the Law of Markets, is an important component of classical economics and formulated thus: It is worthwhile to remark that a product is no sooner created than it, from that instant, affords a market for other products to the full extent of its own value. When the producer has put [...]
Hidden layer neurons are large groups of neurons between an input layer and output layer– your sensory receptors and your motor actions. Their size, type, and network topology (who connects to who) affect the complexity of problems they solve and decisions they make. Successful networks find solutions because they are statistically favored. Neurons compete for [...]
In this tutorial we’ll look at some simple matrix multiplication tools in Python. The arrays are constructed using lists within lists, and the multiplication itself is implemented using for loops. The program works well for small arrays, but really starts bogging down at sizes 500×500 and above. Anyone doing serious work will want to check [...]