Changeset bcb200 in git for kernel/mpr_numeric.cc


Ignore:
Timestamp:
May 4, 2005, 9:25:22 AM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f4d783777253af5008163307ac07281b0fad5341
Parents:
c30c467e01ba25bf9360766e4b1aa3ab3951a1c7
Message:
*hannes: more isZero instead of ==zero: PORTING stuff


git-svn-id: file:///usr/local/Singular/svn/trunk@8029 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/mpr_numeric.cc

    rc30c46 rbcb200  
    33****************************************/
    44
    5 /* $Id: mpr_numeric.cc,v 1.3 2005-05-04 07:23:17 Singular Exp $ */
     5/* $Id: mpr_numeric.cc,v 1.4 2005-05-04 07:25:22 Singular Exp $ */
    66
    77/*
     
    697697    gmp_complex h1(*a[1]/(*a[2] + *a[2])), h2(*a[0] / *a[2]);
    698698    gmp_complex disk((h1 * h1) - h2);
    699     if (disk.imag()==zero)
     699    if (disk.imag().isZero())
    700700    {
    701701      if (disk.real()<zero)
     
    712712    sq += h1;
    713713    *r[k] = (gmp_complex)0.0-sq;
    714     if(sq.imag()==zero)
     714    if(sq.imag().isZero())
    715715    {
    716716      k = j;
     
    725725  else
    726726  {
    727     if (((*a[1]).real()==zero) && ((*a[1]).imag()==zero))
     727    if (((*a[1]).real().isZero()) && ((*a[1]).imag().isZero()))
    728728    {
    729729      WerrorS("precision lost, try again with higher precision");
     
    732732    {
    733733      *r[k]= (gmp_complex)0.0-(*a[0] / *a[1]);
    734       if(r[k]->imag()==zero)
     734      if(r[k]->imag().isZero())
    735735        j++;
    736736      else
Note: See TracChangeset for help on using the changeset viewer.