This fails fricas (1) -> exp(-0.02*t)
Type: Expression(Float)
fricas % :: Expression Fraction Integer
Type: Expression(Fraction(Integer))
fricas % :: Expression Float
Type: Expression(Float)
But this works fricas exp(-1*(1/50)*t)
Type: Expression(Integer)
fricas % :: Expression Float
Type: Expression(Float)
Why are these expressions treated differently? How can convert the first one to the second? EXPR FRAC INT doesn't coerce to EXPR FLOAT --unknown, Tue, 10 May 2005 17:54:24 -0500 reply fricas (1/2*x)::EXPR FRAC INT
Type: Expression(Fraction(Integer))
fricas %::EXPR FLOAT
Type: Expression(Float)
If
fricas exp(-0.02*t) :: Expression Fraction Integer
Type: Expression(Fraction(Integer))
then why? fricas exp(-1*(1/50)*t)
Type: Expression(Integer)
Is Axiom confused about the definition of the type Expression Integer? What exactly is it that is supposed to be an Integer in each case above? Category: Axiom Compiler => Axiom Library Status: open => rejected
Martin |