Subject: Re: Calculations using LISP
From: Erik Naggum <>
Date: 1997/07/22
Newsgroups: comp.lang.lisp
Message-ID: <>

* Jon S. Anthony
| Sure.  (sin x), (cos x), (tan x), etc.  There are arc-* versions for
| these and hyperbolic versions as well.  I don't know what or if there
| are any required accuracy behaviors for these or not.  Also you have
| e^x (exp x) and lnx (log x).  Once you have those, you can get any of
| the rest of what you want.  In particular a^x, a > 0, x in R, =
| e^(xlna)

note that Common Lisp has complex numbers.  (log x), x < 0, is valid.

(exp (* x (log a))) is more commonly written (expt a x).  works when a or x
is 0, too.

there was some junk mail in my mailbox.  somebody wanted to sell me some
useless gizmo, and kindly supplied an ASCII drawing of it.  "actual size",
the caption read.  I selected smaller and smaller fonts until it vanished.