OK to move bind-fpprec from nummod.lisp to mutils.lisp?
Subject: OK to move bind-fpprec from nummod.lisp to mutils.lisp?
From: Barton Willis
Date: Tue, 22 May 2012 13:29:39 +0000
Would it be OK to move the bind-fpprec macro from nummod.lisp to
mutils.lisp? My code for the generalized Lambert functions uses
bind-fpprec, and I think bfloat-lambert-w-k function should use it
too.
My code for the generalized Lambert function needs to match
a number to x * log(x). An explicit match is straightforward, but it
also needs to match log(4/9)/3 to (2/3) * log(2/3), for example. How to do this?
First, it uses floating point and rat to convert to a putative match;
second it does an exact check of the putative match using radcan. Maybe you
all know an elegant way to do this?
--Barton