fricas (1) -> Z==>Integer; Q==>Fraction Z Type: Void
fricas z: Symbol := 'z; P==>UnivariatePolynomial(z, Type: Void
fricas t:P := monomial(1,
Type: UnivariatePolynomial(z,
fricas p:P := (1-t)*(1-t^2)*(1-t^3)
Type: UnivariatePolynomial(z,
fricas L==>UnivariateLaurentSeries(Q, Type: Void
fricas R ==> Record(k: Z, Type: Void
fricas l: List R := reverse [[degree m,
Type: List(Record(k: Integer,
fricas series(l)$L
fricas l1: List R := [[n,
Type: List(Record(k: Integer,
fricas series(l1)$L
It seems weird that the resulting series is aborted at a non-existing coefficient in the input list. fricas l2: List R := [[n,
Type: List(Record(k: Integer,
fricas series(l2)$L
There is obviously also a bug here, because the zero coefficient should have been removed. I would, however, accept such a result if the specification of series were made precise as to rely on the input stream not to contain zero coefficients. fricas S ==> SparseUnivariateLaurentSeries(Q, Type: Void
fricas series(l)$S
fricas series(l1)$S
fricas series(l2)$S
|