expm1intermediate// e^x minus 1, precise for very small x
Math.expm1(0) // β 0
Math.expm1(0.001) // β 0.0010005...Use Math.expm1(x) instead of Math.exp(x) - 1 for small x values to avoid floating-point precision loss.
Math.expm1(1) returns Math.E - 1 (approximately 1.7183).
Challenge: Verify that Math.expm1(1) equals Math.E - 1.