Dear all,
I am reading the documentation about how to solve a multivariable problem, defined as $ A u = L$, where $u$ and $L$ are not single vectors, but matrices. I'd like, in other words, to solve for different values. I can do this in Wolfram Alpha, for instance:
$$
A = (\, ( -1, \; 1 ), \, (\, 0,\, 1 )\, )
$$
by rows (See the note below),
$$
x = \left( x_1, \; x_2 \right)\,, u = \left( u_1, \; u_2 \right)\,,
$$
and
$$
L_x = \left( 3, \; -1 \right)\,, L_u = \left( 1, \; 0 \right)\,,
$$
Can be rewritten easily as $A X = L$, with $A$ as before (obviously), and $X$ and $L$ being matrices whose columns are $X = \left( x, \; u \right)$, and $L = \left( L_x, \; L_u \right)$. In Wolfram Alpha is here only for x, only for u, and finally the whole system at once.
I'm not sure how I can implement this in fenics, can you help me in figuring out the right way to approach the problem?
Thanks & Cheers!
PS. I cannot write a matrix here:
$$
A =
\left(
\begin{matrix}
-1 & 1 \
0 & 1
\end{matrix}
\right)\,,
$$
I've tried array, matrix, \matrix, but none of those produced a matrix, instead, they all put the rows one after the other, no new line added. weird...