Showing posts with the label derivative

[FIXED] sympy .subs() built-in function doesn't work

Issue I'm trying to implement the multivariate chain rule using python, when I try to substitut…

[FIXED] How do I compute derivative of a lambda expression using Sympy?

Issue How to compute a lambda expression's derivative ? For example: func = lambda x: x ** 3 …

[FIXED] Multivariate Linear Regression using gradient descent

Issue I am learning Multivariate Linear Regression using gradient descent. I have written below pyt…

[FIXED] R Derivatives of an Inverse

Issue I have an expression that contains several parts. However, for simplicity, consider only the …

[FIXED] Plotting derivative of nls model in R

Issue I have used nls function to fit the following equation y ~ (C + (A1*exp(-x/h1)) + (A2*exp(-…

[FIXED] Modelica, what's der(x)

Issue in the modelica language I found the time derivative of x used in this equation: der(x) = 1 …

[FIXED] Explanation of dFdx

Issue I am trying to understand the dFdx() and dFdy() functions in GLSL. I understand the follow…

[FIXED] How do you take a partial derivative symbolically in sympy while holding a parameter constant/having a fixed parameter?

Issue I am trying to get a partial derivative in the form seen here on page 2 in

[FIXED] Numpy or SciPy Derivative function for non-uniform spacing?

Issue I was wondering if numpy or scipy had a method in their libraries to find the numerical deriv…

[FIXED] algorithm to find derivative

Issue I'm writing program in Python and I need to find the derivative of a function (a function…

[FIXED] Imposing derivatives in Scipy cubic spline

Issue I am using scipy cubic spline ("scipy.interpolate.CubicSpline") for 1-dimensional i…

[FIXED] How to provide the Gekko Python with the first and second derivatives of the objective function?

Issue I am trying to minimize the difference of a function with a data point over different time po…

[FIXED] Evaluate Derivative of Negative Log Likelihood Python

Issue I am trying to evaluate the derivative of the negative log likelihood functionin python. I am…

[FIXED] How can I prevent OpenMDAO components from allocating large dense arrays for derivatives?

Issue I have some OpenMDAO components that do math on 1D lists of x-coordinates and 1D lists of y-c…

[FIXED] In OpenMDAO's ExecComp, is shape_by_conn compatible with has_diag_partials?

Issue I have an om.ExecComp that performs a simple operation: "d_sq = x**2 + y**2" whe…

[FIXED] Solve System of Equations with Python Sympy

Issue I am trying to solve a system of two equations in Python using Sympy. This is bit trickier th…

[FIXED] finding the derivative of function using scipy.misc.derivative

Issue I'm having a problem that the function and its derivative should have the same value. The…

[FIXED] Plot combining regression coefficients (partial derivatives) with CIs in R, lincom + coefplot or plotbeta?

Issue Most of the time we run a regression with interactive terms, we are interested in a partial d…

[FIXED] Second derivative using fft

Issue All, I am trying to take the laplacian of the following function: g(x,y) = 1/2cx^2+1/2dy2 T…

[FIXED] Solving Poisson equation FFT domain vs Finite difference

Issue I have two solutions of the current equation: src="https://i.stack.imgur.com/1tp41.png&…