Changes 
http://wiki.axiom-developer.org/276TheResultLooksLikeARecordButIsntARecord/diff
--
I make a list :
\begin{axiom}
L := map (t +-> [t, divide (10*t,21)], expand (1..21-1))
\end{axiom}

I can't extract the second term :

\begin{axiom}
select (t +-> t.1=2, L)                           -- empty
\end{axiom}

I get an error :
\begin{axiom}
select (t +-> (t.2).remainder = 1, L)             -- erreur
\end{axiom}

It seems right :
\begin{axiom}
Lc := reduce (append, L)
c := Lc.4
\end{axiom}

But I can't get the quotient :
\begin{axiom}
c.quotient   
\end{axiom}
                                 
divide is right :
\begin{axiom} 
c2 := divide (20, 21)
c2.quotient
\end{axiom}

And all theses commands are right :
\begin{axiom}
Lb := map (t +-> [t, (10*t) rem 21, (10*t) quo 21], expand (1..21-1))
select (t +-> t.1=2, Lb)
select (t +-> t.2 = 1, Lb)
reduce (append, Lb)
\end{axiom}
--
forwarded from http://wiki.axiom-developer.org/[EMAIL PROTECTED]

Reply via email to