About 50 results
Open links in new tab
  1. How do I compute derivative using Numpy? - Stack Overflow

    Mar 26, 2012 · How do I calculate the derivative of a function, for example y = x2+1 using numpy? Let's say, I want the value of derivative at x = 5...

  2. Derivatives in C/C++? - Stack Overflow

    Jan 8, 2009 · To calculate higher order derivatives should be done using truncated taylor series. You could also apply above mentioned class to itself -- the type for the value and derivative values should …

  3. Interpolate eigen splines with derivatives - Stack Overflow

    Apr 2, 2024 · Eigen::MatrixXd derivatives(2, 1); derivatives.setZero(); // Derivatives zero for this example. Since these are parametric splines, you have to provide derivatives for both x and y, for …

  4. mgcv - Gratia derivatives of a factor smooth - Stack Overflow

    Oct 14, 2025 · To confirm, should gratia::derivatives support factor smooths with bs="sz" or is that not implemented yet? I noticed that the updates to gratia specify that derivatives () now work with 'fs', but …

  5. Modelica - Derivatives of input variables problem with dymola

    May 27, 2024 · Modelica - Derivatives of input variables problem with dymola Asked 1 year, 8 months ago Modified 1 year, 8 months ago Viewed 185 times

  6. Gradient computation with PyTorch autograd with 1st and 2nd order ...

    Feb 12, 2025 · TLDR doesn't matter how you extract the derivatives either with slicing or the scalar multiplication alternative, you are breaking the graph in either case. Either allow unused values in the …

  7. A few questions about derivatives of functions in Isabelle

    Nov 22, 2024 · Here, derivative_eq_intros is a dynamic rule collection of introduction rules that are set up in such a way that proving derivatives is relatively pain-free most of the time. Side conditions do …

  8. calculus - Python partial derivatives easy - Stack Overflow

    I'm interested in computing partial derivatives in Python. I've seen functions which compute derivatives for single variable functions, but not others. It would be great to find something that did...

  9. how to use Savitzky-Golay smooth coefficient to calculate derivatives

    Aug 26, 2010 · To calculate the derivatives using Savitzky-Golay smoothing filter, the polynomial coefficients computation has a parameter b, the value b [derivative] must be set to 1.0, the array be …

  10. how to get derivatives from 1D interpolation - Stack Overflow

    Is there a way to get scipy's interp1d (in linear mode) to return the derivative at each interpolated point? I could certainly write my own 1D interpolation routine that does, but presumably scipy'...