axiom-developer
[Top][All Lists]
Advanced

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

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


From: Vanuxem Grégory
Subject: Re: [Axiom-developer] print or output in packages.
Date: Thu, 16 Feb 2006 20:16:24 +0100

Hi,

I use

 print("I am here")$Lisp
and 
 num := numer arg
 print (num::OutputForm)
 den := denom arg
 print (den::OutputForm)


For the error 1 is a function and it's difficult (i  don't know how)
to coerce it (I have previously spoken of this with Bill Page and I
don't really understand why).



Cheers,

Greg

Le jeudi 16 février 2006 à 12:42 +0100, Francois Maltey a écrit :
> 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
> $f:=
> ((((|den| #) (|num| #) (#:G227562 #) (#:G227561 #) ...) ((|simplifyLog1| #) 
> (|logArgs| #)) ((|logArgs| #) (|#| # #) (< # # #) (<= # # #) ...)))
>  
>    >> Apparent user error:
>    NoValueMode
>     is an unknown mode
> 
> Thanks a lot.
> 
> François
> 
> 
> _______________________________________________
> Axiom-developer mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/axiom-developer
> 






reply via email to

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