Derivative of a function with vector arguments
- January 8, 2020
- 2 replies
- 2396 views
I'm using Mathcad Prime 5.0.
I have the following function defined.

The intent if for this function to be very generic and allow any number of inputs. Therefore, Vin and Rin are vectors of the same length. Here's how those are setup.

The function itself works fine.

Now, I need to take the derivative of that function with respect to the individual components of Rin. The intent is to estimate how much effect the variation of each individual component has on the overall output. Ultimately the expression and number of parameters will be bigger than what I've shown here. I just scaled everything back to a simpler example to illustrate the actual problem. I was hoping the derivative with respect to Rin would give me a vector of the numerically evaluated derivative with respect to each individual resistance. Instead it tells me everything has to be scalar.

I found some old posts similar to this dating back to 2004 and 2005. They basically said this isn't possible. I was hoping something may have changed in 14 to 15 years.
Thanks,
Jon

