>>>>> "Edwin" == Edwin Woollett <woollett at charter.net> writes:
Edwin> On Nov. 27, 2012, Raymond Toy wrote:
Edwin> -----------------------------------
Ted> (%i2) bromberg(log(x)^2,x,0,1); Maxima encountered a Lisp
Ted> error:
Ted> Don't know how to convert T to a BIGFLOAT
>> Oops. The code was careless about converting things to bfloats. In
>> this case, bromberg is evaluating log(0)^2, which is returned as T
>> (instead of generating an error).
>>
>> I've uploaded a new version; try again when you get a chance.
Edwin> ----------------------------------------------------------
Edwin> The new version now returns a noun form for this example.
Edwin> But why the hard-to-read output when display2d = false?
Because I messed up and instead of returning maxima bfloats, I was
returning bigfloat objects. I'll fix that later.
But are you seeing any improvement with this code? I ran a few tests
using this version and the original bromberg. The new code is slightly
slower, which is not surprising since it has CLOS dispatch in addition
to the bfloat operations of the original.
The only reason that I can think of for using this code is because
it's somewhat more readable than the original.
Ray