New answers tagged linear-algebra
0
To clear up ambiguities, the following code finds the transformation from the points in xy space $(0,1),(1,0)$ and $(0,0)$ to the points in uv space $a,b$ and $c$ projected onto $\overline{ab}$ respectively.
With[{a = {ax, ay}, b = {bx, by}, c = {cx, cy},
m = {{mx, mxy}, {myx, myy}}},
With[{v = Projection[c - b, a - b, Dot] + b},
m /. Simplify@
First@...
8
Your question seems to miss some points in What topics can I ask about here?. This answer is for helping you to write the code by yourself and if you encounter any problem, feel free to post another question.
In Mathematica use:
(* comment *) syntax for commenting your code
LowerTriangularize function for accessing the lower triangular part of a matrix
...
3
If you have got all your matrices in matrices then use ResourceFunction["LinearlyIndependent"] for example:
LinearlyIndependent = ResourceFunction["LinearlyIndependent"];
matrices = RandomInteger[20, {16, 4, 4}];
LinearlyIndependent[Flatten /@ matrices]
To extract your matrices you can do this:
onebigmatrix = RandomInteger[20, {4, 64}];
...
2
As suggested by @bill s, you can write
x = Array[a, 3];
deriv = D[x . x, {x}]
(* {2 a[1], 2 a[2], 2 a[3]} *)
Note that the you need to put {x} rather than x (otherwise it will attempt to interpret the 2nd item in the list as the order of the derivative - see the help for D - the syntax is rather over loaded).
The easiest way to substitute values is perhaps
...
1
A simple way to solve your equations is:
e1 == W1 /. {x -> 0};
e2 == (D[W1, {x, 1}]) /. {x -> 1};
e3 = (W1 /. {x -> z}) - (W2 /. {x -> z});
e4 = ((D[W1, {x}]) /. {x -> z}) - ((D[W2, {x}]) /. {x -> z});
Solve[{e1, e2, e3, e4} == {0, 0, 0, 1}, {A1, A2, B1, B2}]
However, look at your equations:
TableForm[Transpose[Append[Transpose[R], {0, 0, ...
Top 50 recent answers are included
Related Tags
linear-algebra × 1286matrix × 668
equation-solving × 162
eigenvalues × 130
performance-tuning × 92
numerics × 69
symbolic × 64
sparse-arrays × 59
plotting × 51
list-manipulation × 51
mathematical-optimization × 48
tensors × 39
vector × 37
simplifying-expressions × 27
differential-equations × 26
algebraic-manipulation × 25
functions × 24
bugs × 24
inverse × 22
polynomials × 21
function-construction × 19
calculus-and-analysis × 18
physics × 17
programming × 16
precision-and-accuracy × 16