On Wed, May 03, 2023 at 09:14:48AM -0700, Sid Andal wrote:
> Downloaded the padic.spad from github and made the recommended
> modifications (moving up lines with getExpon and getZp) and compiled.
>
> In addition, the attached file, als.input, was also modified per the
> following:
>
> gen_digs2(d1 : Stream(Integer), d2 : Stream(Integer)) : Stream(BP) ==
> (delay$Stream(BP))(
> () : Stream(BP) +->
> ed1 := empty?(d1)
> ed2 := empty?(d2)
> ed1 and ed2 => empty()$Stream(BP)
> c1 : Integer
> if ed2 then
^^^
Sorry, this was silly typo, should be ed1
<snip>
> However, in the following example it complains:
>
>
> (17) -> F : AP := 1234 * A + 5678 * B
>
> 2 3
> 2
> (17) (2 + 10 11 + 2 11 + 4 11 )B + (2 + 2 11 + 10 11 )A
> (18) ->
> (18) -> pds(F)
>
>
> >> System error:
> Argument X is not a NUMBER: "NullStream"
This is due to typo above.
FYI: 'frst' on a stream should be called only if 'empty?'
returns false. If 'empty?' returns true, then there are no
more terms, so we use 0 instead.
--
Waldek Hebisch
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/20230503195530.szd36w4hxvviguwy%40fricas.math.uni.wroc.pl.