<div>< Note that base could be any PS expression, so you can't assume that it is a number at compile-time. ></div>
<div> </div>
<div>You're absolutely right. Thanks!  I was using PS's = in a CL expression.</div>
<div> </div>
<div>Dan</div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Mon, Mar 31, 2008 at 4:56 PM, Travis Cross <<a href="mailto:travis@travislists.com">travis@travislists.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">Daniel Gackle wrote:<br>> I wrote a simple ps macro to work like CL's log. It seems like a<br>> candidate for inclusion in PS itself.<br>><br></div>
<div class="Ih2E3d">> (defpsmacro log (number &optional base)<br>>   (cond ((null base) `(*math.log ,number))<br>>   ((= base 10) `(* (log ,number) *math.*log10e*))<br>>   (t  `(/ (log ,number) (log ,base)))))<br>
<br></div>Hi Daniel--<br><br>I added a LOG psmacro along these lines to the repository.  Note that<br>base could be any PS expression, so you can't assume that it is a number<br>at compile-time.<br><br>I also pushed a more CL-like version of ATAN and the missing SQRT function.<br>
<br>Cheers,<br><font color="#888888"><br>-- Travis<br></font></blockquote></div><br>