Re: R: LOG(x) BASIC function

1999-03-22 Thread shevek
On Fri, 19 Mar 1999, Stefano Fronteddu wrote: Taylors rule says that log (1+x) = x - x^2/2 + x^3/3 + + (x^(2n+1)) / (2n+1)! so log x = (x-1) - (x-1)^2/2 + ... +(-1)^n-1 * ((x-1)^n) / n This is correct, but remember that this is an approximation near x=0 (in the original form),

R: R: LOG(x) BASIC function

1999-03-22 Thread Stefano Fronteddu
Right, good observation ;-) Thanks, Stefano -Messaggio originale- Da: shevek [EMAIL PROTECTED] A: [EMAIL PROTECTED] [EMAIL PROTECTED] Data: lunedì 22 marzo 1999 14.32 Oggetto: Re: R: LOG(x) BASIC function On Fri, 19 Mar 1999, Stefano Fronteddu wrote: Taylors rule says that log

R: LOG(x) BASIC function

1999-03-19 Thread Stefano Fronteddu
very much like a log. You could use the taylor-series, which can be calculated quite quick, but is not a very good approximation. I don't know the taylor-series by heart, but I could look it up. In case you want to start programming, it will be of the form: y=a+bx+cx^2+dx^3+ Taylors rule