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

Edit detail for #289 Trouble with escapes or map? revision 5 of 5

1 2 3 4 5
Editor: kratt6
Time: 2007/12/20 01:31:20 GMT-8
Note:

removed:
-From kratt6 Thu Dec 20 01:30:52 -0800 2007
-From: kratt6
-Date: Thu, 20 Dec 2007 01:30:52 -0800
-Subject: 
-Message-ID: <20071220013052-0800@axiom-wiki.newsynthesis.org>
-
-Category: Axiom Interpreter => MathAction 
-

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