[parenscript-devel] Log macro
Daniel Gackle
danielgackle at gmail.com
Tue Apr 1 16:19:21 UTC 2008
< Note that base could be any PS expression, so you can't assume that it is
a number at compile-time. >
You're absolutely right. Thanks! I was using PS's = in a CL expression.
Dan
On Mon, Mar 31, 2008 at 4:56 PM, Travis Cross <travis at travislists.com>
wrote:
> Daniel Gackle wrote:
> > I wrote a simple ps macro to work like CL's log. It seems like a
> > candidate for inclusion in PS itself.
> >
> > (defpsmacro log (number &optional base)
> > (cond ((null base) `(*math.log ,number))
> > ((= base 10) `(* (log ,number) *math.*log10e*))
> > (t `(/ (log ,number) (log ,base)))))
>
> Hi Daniel--
>
> I added a LOG psmacro along these lines to the repository. Note that
> base could be any PS expression, so you can't assume that it is a number
> at compile-time.
>
> I also pushed a more CL-like version of ATAN and the missing SQRT
> function.
>
> Cheers,
>
> -- Travis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20080401/3b2921f7/attachment.html>
More information about the parenscript-devel
mailing list