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

Submitted by : (unknown) at: 2007-11-17T22:21:49-08:00 (17 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

The following doesn't seem to work:

axiom
)set func comp on
f(A:List PI, B:List PI): FRAC INT == cap(reduce(*, map(i +-> elementary i, A)), reduce(*, map(i+-> complete i, B)))
Function declaration f : (List(PositiveInteger),List(PositiveInteger )) -> Fraction(Integer) has been added to workspace.
Type: Void
axiom
f([1,2,3],[2,2,2])
axiom
Compiling function f with type (List(PositiveInteger),List(
      PositiveInteger)) -> Fraction(Integer)

\label{eq1}3(1)
Type: Fraction(Integer)

Replacing map(...) by '[...]?' seems to resolve the problem.

Martin




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