[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Axiom-mail] Using eval() in compile spad code.
From: |
Bill Page |
Subject: |
RE: [Axiom-mail] Using eval() in compile spad code. |
Date: |
Sat, 11 Mar 2006 23:27:56 -0500 |
On March 10, 2006 10:53 PM Donald J Bindner wrote:
> ...
> I've tried to distill the core of my question into a small
> example package. It contains two simple() functions. One works
> fine, but the other won't compile. Suggestions would be welcome.
>
See http://wiki.axiom-developer.org/SandBoxNumericalIntegration
The problem was only that in SPAD you must provide explicit
conversions. Sometimes these are not obvious from the behaviour
of the interpreter which provides many of these automatically.
The domain Expression has many possible forms of 'eval':
)sh Expression Float
In your case you were probably expecting to call the function
eval : (%,Kernel %,%) -> %
This means that the 2nd argument needs to be converted to a
'Kernel Expression Integer' and the 3rd argument needs to be
of type 'Expression Integer'.
Regards,
Bill Page.