[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-mail] Creating a Stream from a function calculating coefficie
From: |
Martin Rubey |
Subject: |
Re: [Axiom-mail] Creating a Stream from a function calculating coefficients |
Date: |
Wed, 4 Aug 2004 14:59:29 +0000 |
The generate function from Stream should do this. See Section 5.6 of the Axiom
book (online-version: pg. 225, printed: pg. 132)
Hope this helps
Martin
Marcus Better writes:
> Hi all,
>
> I have written a package which calculates coefficients of a certain
> power series. It has a function which calculates the next coefficient,
> given all previous coefficient:
>
> nextCoeff: List K -> K
>
> (here K is the coefficient domain).
>
> How can I use this to create a lazy Stream of all the coefficients? I
> tried using delay, but cannot seem to get it right. (I am doing this
> inside a package.)
>
> Marcus
>
> -----------------------------------------------------------------
> Marcus Better
> Department of Mathematics Tel. +46 8 164539
> Stockholm University Fax +46 8 6126717
> SE-106 91 Stockholm
> Sweden http://www.math.su.se
> -----------------------------------------------------------------
>
>
> _______________________________________________
> Axiom-mail mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/axiom-mail