axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] [#263 ContinuedFraction returns incorrect types]


From: kratt6
Subject: [Axiom-developer] [#263 ContinuedFraction returns incorrect types]
Date: Fri, 03 Feb 2006 03:24:30 -0600

Changes 
http://wiki.axiom-developer.org/263ContinuedFractionReturnsIncorrectTypes/diff
--
Well, this is a general problem: when a constructor takes a parameter 'R', it 
is often natural to return something of type 'Fraction R'. I see two possible 
solutions:

- 'Fraction R' returns 'R' when 'R' is a field

- an operation that wants to return 'Fraction R' has to check whether 'R' is a 
field.

In the case above I see another problem:

\begin{axiom}
n := nume(0.2)
d := dene(0.2,x)
continuedFraction(0, n, d)
\end{axiom}
--
forwarded from http://wiki.axiom-developer.org/address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]