search for: thederiv

Displaying 2 results from an estimated 2 matches for "thederiv".

Did you mean: tderiv
2006 Aug 15
0
Help with workaround for: Function '`[`' is not in thederivatives table
...--Original Message----- > From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Earl F. Glynn > Sent: Tuesday, 15 August 2006 8:44 AM > To: r-help at stat.math.ethz.ch > Subject: [R] Help with workaround for: Function '`[`' is not in thederivatives table > > # This works fine: > > a <- 1 > > b <- 2 > > c <- 3 > > E <- expression(a * exp(b*X) + c) > > X <- c(0.5, 1.0, 2.0) > > eval(E) > [1] 5.718282 10.389056 57.598150 > > D(E, "b") > a * (exp(b * X) * X) &g...
2006 Aug 14
1
Help with workaround for: Function '`[`' is not in the derivatives table
# This works fine: > a <- 1 > b <- 2 > c <- 3 > E <- expression(a * exp(b*X) + c) > X <- c(0.5, 1.0, 2.0) > eval(E) [1] 5.718282 10.389056 57.598150 > D(E, "b") a * (exp(b * X) * X) > eval(D(E, "b")) [1] 1.359141 7.389056 109.196300 # But if (a,b,c) are replaced with (A[1], A[2], A[3]), how can I get a derivative