Re: [Factor-talk] big float

2020-06-13 Thread John Benediktsson
The closest we have is the decimals vocabulary: https://docs.factorcode.org/content/vocab-decimals.html It might be nice to have a MPFR contribution or based on GMP or something. There has been recent interest in allowing our number tower to be expanded for such use cases with the basic math o

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] fexpm1 missing in math.libm

2020-06-13 Thread SJain via Factor-talk
Dear Sir, The function e^x - 1 , called fexpm1, is provided for in both C libm and x87 instructions, just like it's counterpart log1p (ln(1+x)). While flog1+ is provided in factor vocabulary math.libm, expm1 is missing. Both functions are useful when x is small compared to 1. Kindly provide ex

[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

[Factor-talk] big float

2020-06-13 Thread SJain via Factor-talk
Dear Sir, Does factor support arbitrary precision floats, such as provided by libmpfr or libBF? SJain Agra, India___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk