[back] [prev] [next] [index] [root]

 


SPrint

Creates a string instead of printing on the screen.

Syntax:

s := SPrint( obj1, obj2, ... );

string
  s  
string or kash object
  obj1, obj2  

See also:  Print, SScan

Description:

no detailed description available yet


Example:

converting a polynomial into a string

kash> f := Poly(Zx, [1,0,2]);
x^2 + 2
kash> s := SPrint("f equals ",f);;
kash> Print(s,"\n");
f equals x^2 + 2



Example:

convert an algebraic element into a string

kash> o := OrderMaximal(f);;
kash> alpha := Elt(o, [0,1]);
[0, 1]
kash> s := SPrint("alpha equals ",alpha);;
kash> Print(s,"\n");
> alpha equals [0, 1]


<- back[back] [prev] [next] [index] [root]