1 Pages (4 items)
Derivaive of Matrix - Messages
#1 Posted: 11/14/2009 9:29:51 PM
Hi.
In using your (great) program I encounered an annoying thing: I was unable to derivate a Matrix. Please add this feature if possible sice working with large matrixes is quite timeconsuming
In using your (great) program I encounered an annoying thing: I was unable to derivate a Matrix. Please add this feature if possible sice working with large matrixes is quite timeconsuming
#2 Posted: 11/14/2009 9:49:02 PM
Hello,
Please look at the examples included in SMath Studio and the wiki page diff. If this is not what you need, please be more specific about the problem you would like to be solved.
Regards,
Radovan
Please look at the examples included in SMath Studio and the wiki page diff. If this is not what you need, please be more specific about the problem you would like to be solved.
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 11/15/2009 8:11:02 PM
The thing I am trying to do is turn this: d/dx(x^2, x, x+1)
into (2x, 1, 1). but with bigger matrixes as well, not only vectors (or 1x3 matrix)
into (2x, 1, 1). but with bigger matrixes as well, not only vectors (or 1x3 matrix)
#4 Posted: 11/15/2009 10:00:17 PM
Try this,
[MATH]M(x)←mat(x^2;1-x;x;x^3+e^x;2;2)[/MATH]
[MATH]r←rows(M(x))[/MATH]
[MATH]c←cols(M(x))[/MATH]
[MATH]for(i;range(1;r);for(j;range(1;c);el(dM;i;j)←diff(el(M(x);i;j);x)))[/MATH]
[MATH]Mprime(x)←dM[/MATH]
[MATH]Mprime(x)—mat(2*x;-1;1;3*x^2+e^x;2;2)[/MATH]
[MATH]Mprime(2)=mat(4;-1;1;19,3891;2;2)[/MATH]
Try with a matrix function M(x) with more rows and columns.
Regards,
Radovan
[MATH]M(x)←mat(x^2;1-x;x;x^3+e^x;2;2)[/MATH]
[MATH]r←rows(M(x))[/MATH]
[MATH]c←cols(M(x))[/MATH]
[MATH]for(i;range(1;r);for(j;range(1;c);el(dM;i;j)←diff(el(M(x);i;j);x)))[/MATH]
[MATH]Mprime(x)←dM[/MATH]
[MATH]Mprime(x)—mat(2*x;-1;1;3*x^2+e^x;2;2)[/MATH]
[MATH]Mprime(2)=mat(4;-1;1;19,3891;2;2)[/MATH]
Try with a matrix function M(x) with more rows and columns.
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 Pages (4 items)
-
New Posts
-
No New Posts