Re: [Factor-talk] Fwd: fexpm1 missing in math.libm

2020-06-13 Thread John Benediktsson
The log1+ word uses flog1p and works well when numbers are small. The expm1 is provided as well, but not as a call the fexpm1: https://docs.factorcode.org/content/word-e%5E-1%2Cmath.functions.html It’s a one line change to add fexpm1 plus tests to make sure it works if you’d like to make a con

[Factor-talk] Fwd: fexpm1 missing in math.libm

2020-06-13 Thread SJain via Factor-talk
Dear Sir, Continuing about fexpm1 and flog1p, kindly note that in vocabulary math.functions the definition of log1+ given as 1 + log, defeats the purpose of giving flog1p in that 1 + log will always give inaccurate values when x <<1. This definition of log1+ should be removed from the vocabular