I wrote:
> Tracing suggest that op3 is using floating point arithmetic, that
> would explain error.

I have now much simpler example:

(8) -> op(f : POLY INT):POLY INT == 1/2*f
   Function declaration op : Polynomial(Integer) -> Polynomial(Integer)
      has been added to workspace.
                                                                    Type: Void
(9) -> pol := (10^30+126)*x              

   (9)  1000000000000000000000000000126x
                                                    Type: Polynomial(Integer)
(10) -> op(pol)                           
   Compiling function op with type Polynomial(Integer) -> Polynomial( Integer) 

   (10)  499999999999999999999463129088x
                                                    Type: Polynomial(Integer)


-- 
                              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
-~----------~----~----~----~------~----~------~--~---

Reply via email to