Returns e ** a. >>> c = ExtendedContext.copy() >>> c.Emin = -999 >>> c.Emax = 999 >>> c.exp(Decimal('-Infinity')) Decimal('0') >>> c.exp(Decimal('-1')) Decimal('0.367879441') >>> c.exp(Decimal('0')) Decimal('1') >>> c.e
(self, a)
| 4418 | return r |
| 4419 | |
| 4420 | def exp(self, a): |
| 4421 | """Returns e ** a. |
| 4422 | |
| 4423 | >>> c = ExtendedContext.copy() |
| 4424 | >>> c.Emin = -999 |
| 4425 | >>> c.Emax = 999 |
| 4426 | >>> c.exp(Decimal('-Infinity')) |
| 4427 | Decimal('0') |
| 4428 | >>> c.exp(Decimal('-1')) |
| 4429 | Decimal('0.367879441') |
| 4430 | >>> c.exp(Decimal('0')) |
| 4431 | Decimal('1') |
| 4432 | >>> c.exp(Decimal('1')) |
| 4433 | Decimal('2.71828183') |
| 4434 | >>> c.exp(Decimal('0.693147181')) |
| 4435 | Decimal('2.00000000') |
| 4436 | >>> c.exp(Decimal('+Infinity')) |
| 4437 | Decimal('Infinity') |
| 4438 | >>> c.exp(10) |
| 4439 | Decimal('22026.4658') |
| 4440 | """ |
| 4441 | a =_convert_other(a, raiseit=True) |
| 4442 | return a.exp(context=self) |
| 4443 | |
| 4444 | def fma(self, a, b, c): |
| 4445 | """Returns a multiplied by b, plus c. |