Search found 3 matches

by sjain59
Sun Sep 12, 2021 3:51 am
Forum: newLISP and the O.S.
Topic: pretty-print line length
Replies: 0
Views: 284

pretty-print line length

I am using an Intel Atom netbbok with LXLE 32 bit linux OS on ctrl-alt-F2 terminal. The screen has width of 128 characters in linux frame buffer. pretty-print gives line length 80. However when I print something it prints line to length of 128 chars. This is what I want. However there is a discrepan...
by sjain59
Wed Aug 18, 2021 2:21 pm
Forum: Anything else we might add?
Topic: Need for missing functions log1p and expm1
Replies: 1
Views: 221

Re: Need for missing functions log1p and expm1

I believe all hyperbolic functions can be computed accurately over entire range of x, given exp, log (or ln), expm1 and log1p. The x87 FPU instruction set provides exp, log, expm1 and log1p and not the hyperbolic functions. In fact the infrequently used hyperbolic functions could be removed from new...
by sjain59
Wed Aug 18, 2021 8:42 am
Forum: Anything else we might add?
Topic: Need for missing functions log1p and expm1
Replies: 1
Views: 221

Need for missing functions log1p and expm1

Dear Sir, For small x << 1, ln(1+x) and exp(x)-1 and sinh(x) are close to x. This means there is loss of several digits of precision when calculating exp(x)-1 from exp(x) because we taking difference of two numbers almost equal to one another and to 1. Likewise there is similar error in ln1+x) and s...