Changeset bfa04e in git for libpolys/coeffs/mpr_complex.cc


Ignore:
Timestamp:
Apr 29, 2011, 7:04:05 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
62604d2f2d4a187dd1464fdb07625f99d535f3b6
Parents:
aec5c92fa3e0f853348936026c999351aa972656
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-29 19:04:05+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:31+01:00
Message:
fix typos
minpoly is a poly in r->cf->algring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/mpr_complex.cc

    raec5c9 rbfa04e  
    708708char *complexToStr( gmp_complex & c, const unsigned int oprec, const coeffs src )
    709709{
    710   assume( src->compex_parameter != NULL );
     710  assume( src->complex_parameter != NULL );
    711711 
    712712  char *out,*in_imag,*in_real;
     
    721721    if (nCoeff_is_long_C(src))
    722722    {
    723       int len=(strlen(in_real)+strlen(in_imag)+7+strlen(src->compex_parameter))*sizeof(char);
     723      int len=(strlen(in_real)+strlen(in_imag)+7+strlen(src->complex_parameter))*sizeof(char);
    724724      out=(char*)omAlloc(len);
    725725      memset(out,0,len);
    726726      if (  !c.real().isZero() )  // (-23-i*5.43) or (15.1+i*5.3)
    727         sprintf(out,"(%s%s%s*%s)",in_real,c.imag().sign()>=0?"+":"-",src->compex_parameter,in_imag);
     727        sprintf(out,"(%s%s%s*%s)",in_real,c.imag().sign()>=0?"+":"-",src->complex_parameter,in_imag);
    728728      else // (-i*43) or (i*34)
    729729      {
    730730        if (c.imag().isOne())
    731           sprintf(out,"%s",src->compex_parameter);
     731          sprintf(out,"%s",src->complex_parameter);
    732732        else if (c.imag().isMOne())
    733           sprintf(out,"-%s",src->compex_parameter);
     733          sprintf(out,"-%s",src->complex_parameter);
    734734        else
    735           sprintf(out,"(%s%s*%s)",c.imag().sign()>=0?"":"-",src->compex_parameter,in_imag);
     735          sprintf(out,"(%s%s*%s)",c.imag().sign()>=0?"":"-",src->complex_parameter,in_imag);
    736736      }
    737737    }
Note: See TracChangeset for help on using the changeset viewer.