66 cerr <<
"spectrum::copy_new(" <<
k <<
")" << endl;
67 cerr <<
" returned ZERO!!!" << endl;
68 cerr <<
" exit..." << endl;
70 fprintf( stderr,
"spectrum::copy_new( %d )\n",
k );
71 fprintf( stderr,
" returned ZERO!!!\n" );
72 fprintf( stderr,
" exit...\n" );
87 cerr <<
"spectrum::copy_new(" <<
k <<
")";
88 cerr <<
": k < 0 ..." << endl;
90 fprintf( stderr,
"spectrum::copy_new( %d )",
k );
91 fprintf( stderr,
": k < 0 ...\n" );
111 for(
int i=0;
i<
n;
i++ )
136 int i1=0, i2=0, i3=0;
146 else if( i2 >= s2.
n )
150 else if( s1.
s[i1] < s2.
s[i2] )
154 else if( s1.
s[i1] == s2.
s[i2] )
165 while( i1 < s1.
n || i2 < s2.
n );
180 else if( i2 >= s2.
n )
186 else if( s1.
s[i1] < s2.
s[i2] )
192 else if( s1.
s[i1] == s2.
s[i2] )
207 while( i1 < s1.
n || i2 < s2.
n );
251 for(
int i=0;
i<spec.
n;
i++ )
258 fprintf( stdout,
"+" );
263 s << spec.
w[
i] <<
"*t^";
265 fprintf( stdout,
"%d*t^",spec.
w[
i] );
282 for(
i=0,
j=0;
i<
n;
i++ )
304 while( i < n && *alpha >=
s[
i] )
340 if( d1 < d2 || d2 == zero )
367 for(
int i=0;
i<
n;
i++ )
spectrum()
Zero constructor.
void copy_deep(const spectrum &)
spectrum operator=(const spectrum &)
int add_subspectrum(spectrum &, int)
int mult_spectrum(spectrum &)
int next_number(Rational *)
int mult_spectrumh(spectrum &)
void copy_delete(void)
Delete the memory of a spectrum.
int next_interval(Rational *, Rational *)
int numbers_in_interval(Rational &, Rational &, interval_status)
const CanonicalForm int s
void mult(unsigned long *result, unsigned long *a, unsigned long *b, unsigned long p, int dega, int degb)
spectrum operator*(int k, const spectrum &spec)
ostream & operator<<(ostream &s, const spectrum &spec)
spectrum operator+(const spectrum &s1, const spectrum &s2)
int status int void size_t count