Re: [Rd] Wish List: Extensions to the derivatives table

2017-02-20 Thread Martin Maechler
ortant it may be to avoid cancellation, I still would be willing to add to the "derivatives table" in R's C source if people like you provided a (tested!) patch to the source, which is in https://svn.r-project.org/R/trunk/src/library/stats/src/deriv.c Martin > From

Re: [Rd] Wish List: Extensions to the derivatives table

2017-02-17 Thread Jerry Lewis
Lewis; r-devel@r-project.org Subject: Re: [Rd] Wish List: Extensions to the derivatives table On 17/02/2017 1:59 PM, Jerry Lewis wrote: > The derivative table resides in the function D. In S+ that table is > extensible because it is written in the S language. R is faster but less > flexib

Re: [Rd] Wish List: Extensions to the derivatives table

2017-02-17 Thread Duncan Murdoch
On 17/02/2017 1:59 PM, Jerry Lewis wrote: The derivative table resides in the function D. In S+ that table is extensible because it is written in the S language. R is faster but less flexible, since that table is programmed in C. It would be useful if R provided a mechanism for extending th

Re: [Rd] Wish List: Extensions to the derivatives table

2017-02-17 Thread Jerry Lewis
), quote(pi)), make.call("^", make.call("cospi", expr[[2]]), 2)), Jerry From: Avraham Adler [mailto:avraham.ad...@gmail.com] Sent: Friday, February 17, 2017 4:16 PM To: Jerry Lewis; r-devel@r-project.org Subject: Re: [Rd] Wish List: Extensions to the derivatives table Hi. Un

Re: [Rd] Wish List: Extensions to the derivatives table

2017-02-17 Thread Avraham Adler
Hi. Unless I'm misremembering, log, exp, sin, cos, and tan are all handled in deriv3. The functions listed are specially coded slightly more accurate versions but can be substituted with native ones for which deriv/deriv3 will work automatically. I believe that if you write your functions using

[Rd] Wish List: Extensions to the derivatives table

2017-02-17 Thread Jerry Lewis
The derivative table resides in the function D. In S+ that table is extensible because it is written in the S language. R is faster but less flexible, since that table is programmed in C. It would be useful if R provided a mechanism for extending the derivative table, or barring that, provide