[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] print or output in packages.

From: Francois Maltey
Subject: Re: [Axiom-developer] print or output in packages.
Date: 16 Feb 2006 12:42:10 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Hello everybody !

I learn a lot with all your mails.

I use to add a lot of spy-print in mysterious functions. 
So I add print or output lines as bellow in a test, but I can't compile.

In an *.input file I have no problem with output.

I try the easiest print, with or without coerce ::, with or without $.

      output ("a string"::OutputForm)$OutputPackage
      output (1::OutputForm)$OutputPackage
-- or     print ("num::OutputForm"::OutputForm)$PrintPackage
--      print ("num::OutputForm")$PrintPackage
--      output "den::OutPutForm" 

In the manip.spad file there are num and den that I try to print 
(in kerexpand about line 790)

      num := numer arg
      den := denom arg

They are perhaps of type : SparseMultivariatePolynomial(R, Kernel $)

1/ How can I print theses variables ?
2/ What function must I use : print or output ?
   What is the difference between.

Now I get error as :

$x:= (output (:: (One) (OutputForm)))
$m:= NoValueMode
((((|den| #) (|num| #) (#:G227562 #) (#:G227561 #) ...) ((|simplifyLog1| #) 
(|logArgs| #)) ((|logArgs| #) (|#| # #) (< # # #) (<= # # #) ...)))
   >> Apparent user error:
    is an unknown mode

Thanks a lot.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]