I wrote:
>
> Today I toyed a bit with guessing package and immediatly I
> hit a few quirks:
>
> 1) I tried to guess polynomial from its values. So I wrote:
>
> myPol(x) == (x^3-x+1)
> guessPRec [myPol(i) for i in 1..15]
>
> and I got:
>
>
> 3 2
> (22) [[function= n + 3n + 2n + 1,order= 0]]
> Type: List(Record(function: Expression(Integer),order: NonNegativeInteger))
> Time: 0.004 (IN) + 0.01 (EV) + 0.01 (OT) = 0.02 sec
>
> Since myPol(n+1) gives:
>
> 3 2
> (23) n + 3n + 2n + 1
> Type: Polynomial(Integer)
> this looks like off by one error.
>
My bad: giving
myPol(x) == (x^3-x+1)
guessPRec [myPol(i) for i in 0..15]
I get expected result. Simialarly for the last example.
--
Waldek Hebisch
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---