search for: firstderiv

Displaying 5 results from an estimated 5 matches for "firstderiv".

2017 Sep 19
1
symbolic computing example with Ryacas
...derstand it fully. Anyway, I have tried once again now. I am happy to say that I have got what I wanted. library(Ryacas) x <- Sym("x");U <- Sym("U");x0 <- Sym("x0");C <- Sym("C") my_func <- function(x,U,x0,C) { return (U/(1+exp(-(x-x0)/C)))} FirstDeriv <- deriv(my_func(x,U,x0,C), x) PrettyForm(FirstDeriv) #slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)") slope <- Subst(FirstDeriv,x,x0) #PrettyForm(slope) - gives errors PrettyForm(Simplify(slope)) I was confused by the references to the yacas command. Now, I have chos...
2017 Sep 19
2
symbolic computing example with Ryacas
...== 0, x, 'Real', true) pretty(solx2) slope2=subs(d1,solx2) I have tried the following : library(Ryacas) x <- Sym("x");U <- Sym("U");x0 <- Sym("x0");C <- Sym("C") my_func <- function(x,U,x0,C) { return (U/(1+exp(-(x-x0)/C)))} FirstDeriv <- deriv(my_func(x,U,x0,C), x) PrettyForm(FirstDeriv) slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)") PrettyForm(slope) I don't understand how I should use the Subst command. I want the slope of the first derivative at x=x0. How do I implement that? I would appre...
2017 Sep 19
0
symbolic computing example with Ryacas
...s(d1,solx2) > > > I have tried the following : > > library(Ryacas) > > x <- Sym("x");U <- Sym("U");x0 <- Sym("x0");C <- Sym("C") > > my_func <- function(x,U,x0,C) { > > return (U/(1+exp(-(x-x0)/C)))} > > FirstDeriv <- deriv(my_func(x,U,x0,C), x) > > PrettyForm(FirstDeriv) > > slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)") > > PrettyForm(slope) > > > I don't understand how I should use the Subst command. I want the slope of > the first derivative at...
2007 Oct 27
1
Newton method iteration problem
...accroding to the error message. I need help . Please suggest the cause or solution to this problem. Thanks. # code #generate target function (phi(x)-alpha) (allow input x and alpha) target<-function(x,alpha){ pnorm(x)-alpha } #generate the first derivative of the of the target function firstDerivative<-function(x){ exp(-(x^2)/2)/sqrt(2*pi) } # Finding the root by Newton method rootFinding<-function(initialX,setAlpha){ while(target(initialX,setAlpha)!=0){ initialX<-initialX-(target(initialX,setAlpha)/firstfirstDerivative(initialX) } initialX } -- View this message in context: h...
2009 May 29
3
Wine Fails to recognize DVD RW Drive
Greetings, thank you in advance for the help. I'm currently running the Jaunty Ubuntu release with Wine 1.1.22. P4, 1 DVD Drive, one DVD R/W drive, 1.5 GB Ram, 20 GB Ubuntu partition, 46 gb Windows 7 partition. After difficulties with getting Wine to find my DVD R/W drive, i added the drive manually through /media/cdrom01. However, now IMGBurn, which I am trying to use, recognizes my computer