Changeset f48c17 in git for ntl


Ignore:
Timestamp:
Oct 16, 2007, 5:47:07 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'b324714bf5073469800caef737deba1366fbd81f')
Children:
56c5ce71cdf3ccca4ca78f1da0408681e2d3d465
Parents:
f8c656fb004951aa0c1a4bb2c29b815065a61c69
Message:
*hannes: NTL 5.4.1


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

Legend:

Unmodified
Added
Removed
  • ntl/src/RR.c

    rf8c656 rf48c17  
    13901390void expm1(RR& res, const RR& x)
    13911391{
     1392   long p = RR::precision();
     1393
    13921394   if (x < -0.5 || x > 0.5) {
    13931395      RR t;
     1396      RR::SetPrecision(p + 10);
    13941397      exp(t, x);
     1398      RR::SetPrecision(p);
    13951399      sub(res, t, 1);
    13961400      return;
    13971401   }
    13981402
    1399    long p = RR::precision();
    14001403
    14011404   RR::SetPrecision(p + NumBits(p) + 10);
Note: See TracChangeset for help on using the changeset viewer.