fricas (1) -> F := MachineFloat
Type: Type
fricas a: F := -0.12345
Type: MachineFloat?
fricas b: F := -1234567890.0
Type: MachineFloat?
fricas c: F := 1234567890.12345
Type: MachineFloat?
fricas (a+b)+c
Type: MachineFloat?
fricas a+(b+c)
Type: MachineFloat?
fricas F has Field
Type: Boolean
MachineFloat? clearly doesn't form a (mathematical) field as the above code demonstrates (and we all know). DoubleFloat? and Float too --greg, Thu, 22 Jun 2006 09:18:32 -0500 reply fricas )cl all
Type: Type
fricas digits()
Type: PositiveInteger?
fricas a: F := -0.12345
Type: Float
fricas b: F := -1234567890.0
Type: Float
fricas c: F := 1234567890.12345
Type: Float
fricas (a+b)+c
Type: Float
fricas a+(b+c)
Type: Float
fricas F has Field
Type: Boolean
Unfortunately, Axiom is not very strict with these things, although it should be, I believe. Some examples:
In ATTREG.SPAD, we find: canonicalUnitNormal ++ \spad{canonicalUnitNormal} is true if we can choose a canonical ++ representative for each class of associate elements, that is ++ \spad{associates?(a,b)} returns true if and only if ++ \spad{unitCanonical(a) = unitCanonical(b)}. However, I suspect, this cannot be done in every field.
In the documentation of MuPAD?, they say that (their) expression domain is a field for "convenience". Maybe this is related to the above. In any case, we certainly cannot decide whether an element is zero or not. Martin Category: Axiom Mathematics => Axiom Library |