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