login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Submitted by : (unknown) at: 2007-11-17T21:58:32-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

I don't now how ... If I enter:

axiom
expr:= 3*x

\label{eq1}3 \  x(1)
Type: Polynomial(Integer)
axiom
f(x) == expr
Type: Void
axiom
f(5)
axiom
Compiling function f with type PositiveInteger -> Polynomial(Integer
      )

\label{eq2}3 \  x(2)
Type: Polynomial(Integer)

I get an output of 3x; I would like an output of 15. Is there a way to do it right?

axiom
)clear all
All user variables and function definitions have been cleared. expr := 3*x

\label{eq3}3 \  x(3)
Type: Polynomial(Integer)
axiom
function(expr, f, x)

\label{eq4}f(4)
Type: Symbol
axiom
f(5)
axiom
Compiling function f with type PositiveInteger -> PositiveInteger

\label{eq5}15(5)
Type: PositiveInteger?

Martin

property change --loli, Thu, 28 Apr 2005 21:53:36 -0500 reply
Status: open => closed




  Subject:   Be Bold !!
  ( 14 subscribers )  
Please rate this page: