fricas (1) -> <spad> fricas )abbrev domain FOO Foo Foo(): Exports == Implementation where Exports ==> with myrandom: Integer -- myrandom: () -> Integer Implementation ==> add myrandom == 42 -- myrandom == () +-> 17</spad> fricas Compiling FriCAS source code from file /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/6646244281283455535-25px001.spad using old system compiler. FOO abbreviates domain Foo ------------------------------------------------------------------------ initializing NRLIB FOO for Foo compiling into NRLIB FOO compiling exported myrandom : () -> Integer FOO;myrandom;I;1 is replaced by 42 Time: 0 SEC. fricas myrandom
Type: Variable(myrandom)
fricas myrandom()
Type: PositiveInteger?
Constants compile in Open-Axiom --Bill Page, Mon, 07 Jul 2008 17:21:54 -0700 reply Try setting the version of Axiom to a recent version of OpenAxiom.
Click edit and set Axiom: Open-Axiom ... But in the interpreter
they still must be referenced like nullary operators.
|