Questions tagged [differentiation]

The process of finding a derivative.

In calculus, a branch of mathematics, the derivative is a measure of how a function changes as its input changes. Loosely speaking, a derivative can be thought of as how much one quantity is changing in response to changes in some other quantity.

The derivative of a function at a chosen input value describes the best linear approximation of the function near that input value. For a real-valued function of a single real variable, the derivative at a point equals the slope of the tangent line to the graph of the function at that point. In higher dimensions, the derivative of a function at a point is a linear transformation called the linearization.[1] A closely related notion is the differential of a function.

236 questions
0
votes
1 answer

Function gradients with gather operations in tensorflow

I am trying to write a complicated computational graph using tensorflow and compute symbolic gradients with respect to function parameters. However I am struggling with this when my function/graph involves gather operations of some of the…
sega_sai
  • 8,328
  • 1
  • 29
  • 38
0
votes
1 answer

Derivatives of indexed variables in Maple

Consider N variables, x_1, x_2, ... , x_N. Given i < N and j < N, it holds dx_i/dx_j=delta_i,j, i.e. the derivative is 1 when i=j and 0 otherwise. While diff(x[i],x[i]) returns 1, unfortunately diff(x[i],x[j]) returns 0 rather than delta_i,j and…
R_B
  • 103
  • 4
0
votes
1 answer

Differences in Differentiation Implementations in MATLAB

I'm trying to find the (numerical) curvature at specific points. I have data stored in an array, and I essentially want to find the local curvature at every separate point. I've searched around, and found three different implementations for this in…
vdogsandman
  • 5,289
  • 8
  • 21
  • 21
0
votes
0 answers

Matlab - derivation of function of variable, but no function defined

Sorry for the complicated headline. my basics idea is: I have a function, lets say z(t) = x(phi(t)) + y(phi(t)) The twist where I couldn't find anything is: suppose I want to calculate the symbolic derivation dz(t)/dt BUT without knowing neither…
Andreas K.
  • 389
  • 4
  • 17
0
votes
0 answers

probability and diffrentiation plot

we were given a class activity to do following: Plot pf (f) and df/dg which are supposed to be inverse of each other. Verify that pg(g) = pf (f) df/dg is more uniform. Please can someone explain to me what it means? I have to plot it in matlab which…
0
votes
0 answers

Making an AbstractOdeSolver class library to solve differential equations numerically (c++)

I am trying to make and ode solver using c++ and numerical methods (euler, heun and runge kutta). first i made and abstract class for ode solving requirements then i made a separate class for each solver inheriting from the ABClass. there is no…
MostafaBakr
  • 107
  • 11
0
votes
0 answers

Decompose 2 basic factors from a risk severity

I have 2 matrices of values: Matrix A size 2x4 and matrix B size 2x4 as follows: Main Matrix B Scales 0.00 2.50 2.50 5.00 5.00 11.25 11.25 25.00 the other matrix A is: 0.00 1.25 1.25 2.50 2.50 7.50 7.50 …
0
votes
1 answer

How to find the value of a function after interpolation and differentiation of it in Maxima

There is such Maxima code kill(all);load("interpol")$ q1:[[0,0.1], [0.25,0.2], [0.5,0.3], [0.75,0.4]]; f1(x):=''(cspline(q1)); qt1(x):=''(diff(f1(x),x,1)); I want to find the value of the obtained function qt1(x) for x=1. Then I write qt1(0.3);…
goshanoob
  • 75
  • 8
0
votes
1 answer

Finding and plotting the second steepest part of a curve in r

I have some data which I've undertaken a 7 order polynomial regression on using r; the plot resembles a bell curve. I need to find the two steepest parts of the curve. So far I have managed to find and show the steepest ascending slope, now I need…
A.Benson
  • 465
  • 1
  • 6
  • 16
0
votes
1 answer

Output of numpy.diff is wrong

here's my problem: I am trying to use numpy to compute (numerical) derivatives, but I am finding some problems in the value the function numpy.diff returns (and numpy.gradient as well). What I find is that the values are totally wrong! here's a…
mmonti
  • 93
  • 2
  • 13
0
votes
1 answer

Partial differentiation/gradient of anonymous function with array input

I have following anonymous function (with x as an array): f = @(x) 312*x(2) - 240*x(1) + 30*x(3) - 24*x(4) + 282*x(1)*x(2) + 30*x(1)*x(3) + 18*x(1)*x(4) + 54*x(2)*x(3) + 6*x(2)*x(4) + 6*x(3)*x(4) + 638*x(1)^2 + 207*x(2)^2 + 6*x(3)^2 + 3*x(4)^2 +…
AnJ
  • 581
  • 1
  • 6
  • 29
0
votes
1 answer

Method for finding max. point on linear plot

This is in astronomy, but I think my question is probably very elementary - I'm not very experienced, I apologise. I am plotting the relationship between the colour of a star-forming galaxy (y axis) with the redshift (x axis). The plot is a line…
albc
  • 23
  • 2
  • 6
0
votes
1 answer

Double Integration of a custom equation by fit() Matlab

Is it possible to double integrate a function that is a result of a fit() (the type of function is cfit). The differentiation is easy using the following function differentiate(myfit,points); While Integration using integrate(myfit,points,start);…
Mofasa E
  • 49
  • 10
0
votes
1 answer

Issues with diff(f,x,n) in MacLaurin series

We had an assignment asking us to estimate exp(2) using MacLaurin series and I've taken it a bit further trying to develop and function where you can input an equation, the value of x you wish to estimate and to how many significant figures you…
DarkRiot43
  • 31
  • 8
0
votes
1 answer

Matlab - polyval data differentiation

I am working on some problems with curve fitting ect, and need to find the derivative of a cubic fit of 50 points. The questions asks to find the growth rate of bacteria given data. My current code is time = [1,2,4,5,7,9]; bacteria =…
Vladamir
  • 247
  • 1
  • 3
  • 11