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 1 of 5

1 2 3 4 5
Editor:
Time: 2007/11/17 22:21:49 GMT-8
Note:

changed:
-
The following doesn't seem to work:

\begin{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)))

f([1,2,3],[2,2,2])
\end{axiom}

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

Martin

Submitted by : (unknown) at: 2007-11-17T22:21:49-08:00 (16 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
LatexWiki Image(1)
Type: Fraction Integer

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

Martin