FAQ Database Discussion Community


solve derivative of summation on Maple

sum,maple,derivative
Is there any way to solve the derivative of summation on maple. For the example, y := qr->(1-qn-(sum(qn[j]-delta*qr, j))-c[r])*qr+(wn-c)*(qn+sum(qn[j], j)) I took the first partial derivative w.r.t qr, and I think the result was correct diff(y(qr), qr) But, when I solve the result of the derivative, the Maple did not...

calculating the Gradient and the Hessian in R

r,calculus,derivative
As you know, the Gradient of a function is the following vector: and the Hessian is the following matrix: Now, I wonder, is there any way to calculate these in R for a user defined function at a given point? First, I've found a package named numDeriv, which seems to...

Transforming Symbolic Derivatives into Actual Symbols

matlab,symbolic-math,derivative
I need to take derivatives in Matlab of a lot of equations w.r.t. generic functions, which will provide me with generic derivatives, of the type: diff(f(x,y),x) or D([1],f(x,y)). What I need is to transform these derivatives into actual symbolic variables, in order to be able to use solve, etc. What...

awk script to find local minimum and local maximum from 2 clomun data

awk,max,min,derivative
I want to know simple implementation of finding local extreme from a datafile. Specifically saying, My input data is: x y 163.858 14.0919 166.269 14.2113 168.688 14.2855 # local max. 171.109 14.2766 173.524 14.1439 178.353 13.7528 180.768 13.6166 183.189 13.5753 # local min. 185.61 13.6128 188.03 13.6525 190.454 13.776 195.281...

Calculating the Derivative of a Function

python,function,for-loop,derivative
I am brand new to programming and am really struggling to create functions in Python. While trying to calculate a derivative, I created an np.linspace for my x values and then created an empty list for the y values. I used a for-loop to created a list of y values...

Recursively find the second derivative

c,math,recursion,calculus,derivative
I'm attempting to write a program in C which finds the numeric value of the second derivative of f(x) where x is given. When I use my function to find the first derivative, everything seems to be working okay, but the recursive second derivative part always gives me 0.0. Here's...

Matlab: evaluate second derivative

matlab,derivative
After I take second partial derivative of function f, second_div = diff(f,pz,2); second_div now should be a function of pz and u I want to evaluate second_div at give (pz,u). How do I do that? ATTEMPTS second_div(2,3); <- failed because second_div is a 1*1 sym vpa(subs(second_div,pz,u_m,2,3)); <- failed vpa(subs(second_div,(pz,u_m),(2,3))); <-...