- Timestamp:
- Oct 16, 2007, 5:47:07 PM (17 years ago)
- Branches:
- (u'spielwiese', 'b324714bf5073469800caef737deba1366fbd81f')
- Children:
- 56c5ce71cdf3ccca4ca78f1da0408681e2d3d465
- Parents:
- f8c656fb004951aa0c1a4bb2c29b815065a61c69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ntl/src/RR.c
rf8c656 rf48c17 1390 1390 void expm1(RR& res, const RR& x) 1391 1391 { 1392 long p = RR::precision(); 1393 1392 1394 if (x < -0.5 || x > 0.5) { 1393 1395 RR t; 1396 RR::SetPrecision(p + 10); 1394 1397 exp(t, x); 1398 RR::SetPrecision(p); 1395 1399 sub(res, t, 1); 1396 1400 return; 1397 1401 } 1398 1402 1399 long p = RR::precision();1400 1403 1401 1404 RR::SetPrecision(p + NumBits(p) + 10);
Note: See TracChangeset
for help on using the changeset viewer.