694{
695 const char * complex_parameter = "I";
697
699 {
701 N = strlen(complex_parameter);
702 }
703
705
706 char *out,*in_imag,*in_real;
707
710 {
711
714
716 {
717 int len=(strlen(in_real)+strlen(in_imag)+7+
N)*
sizeof(
char);
719 memset(out,0,len);
721 snprintf(out,len,
"(%s%s%s*%s)",in_real,c.
imag().
sign()>=0?
"+":
"-",complex_parameter,in_imag);
722 else
723 {
725 snprintf(out,len,"%s", complex_parameter);
727 snprintf(out,len,"-%s", complex_parameter);
728 else
729 snprintf(out,len,
"(%s%s*%s)",c.
imag().
sign()>=0?
"":
"-", complex_parameter,in_imag);
730 }
731 }
732 else
733 {
734 int len=(strlen(in_real)+strlen(in_imag)+9) * sizeof(char);
736 memset(out,0,len);
738 snprintf(out,len,
"(%s%s%s)",in_real,c.
imag().
sign()>=0?
"+I*":
"-I*",in_imag);
739 else
740 snprintf(out,len,
"(%s%s)",c.
imag().
sign()>=0?
"I*":
"-I*",in_imag);
741 }
742 omFree( (
void *) in_real );
743 omFree( (
void *) in_imag );
744 }
745 else
746 {
748 }
749
750 return out;
751}
const CanonicalForm CFMap CFMap & N
static FORCE_INLINE char const ** n_ParameterNames(const coeffs r)
Returns a (const!) pointer to (const char*) names of parameters.
static FORCE_INLINE BOOLEAN nCoeff_is_long_C(const coeffs r)
gmp_float abs(const gmp_float &a)
char * floatToStr(const gmp_float &r, const unsigned int oprec)