Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 11 years ago

Tomas gravatar image

vector derivative returns a scalar

Trying to obtain the derivative of u=[1,1] using the following code:

u = matrix(1,2,[-1, 1])

r = derivative(u,x); r

I get a scalar value 0.

Although according the following relation it should be a 2-dimensional zero vector.

dudx=ddx[1,1]=[ddx(1),ddx(1)]=[0,0]

Why does it happen? In the case it's a bug where I could report it?

Thanks

click to hide/show revision 2
No.2 Revision

vector derivative returns a scalar

Trying to obtain the derivative of u=[1,1] using the following code:

u = matrix(1,2,[-1, 1])

r = derivative(u,x); r

I get a scalar value 0.

Although according the following relation it should be a 2-dimensional zero vector.

dudx=ddx[1,1]=[ddx(1),ddx(1)]=[0,0]

Why does it happen? In the case it's a bug where could I could report it?

Thanks