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.
d→udx=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