bromberg syntax



On 2012-11-04, Edwin Woollett <woollett at charter.net> wrote:

> I am getting a lisp error using bromberg; the same

> (%i3) f(x) := (mode_declare([function(f),x],float),1/(1+sqrt(x)))$
> (%i4) translate(f);

> (%i6) bromberg(f,0,1);
> Maxima encountered a Lisp error:
>
>  Error in SQRT [or a callee]: ((BIGFLOAT SIMP 56) 36028797018963968 1) is 
> not of type NUMBER.

Bigfloats are represented as Lisp expressions; they are not Lisp
numbers. The translator sees the declaration for x as a float and
therefore calls the Lisp function SQRT which expects a Lisp number.

best

Robert Dodier