Message Boards Message Boards

Solve a System of equations using matrix inverse

Posted 3 years ago
Attachments:
6 Replies
Posted 3 years ago

Hi Willy,

There are at least a couple of problems.

Dimensions@system1
(* 24 *)

but there are 23 equations. The problem is that equation13 is repeated in the system1 list.

C = Inverse[A];
(* Set::wrsym: Symbol C is Protected. *)

The symbol C is a built-in WL symbol. All WL built-in symbols start with an uppercase letter, so avoid using symbol names that start with an uppercase letter. Use c instead.

POSTED BY: Rohit Namjoshi

Your matrix A is not a square matrix, so it has no inverse

Dimensions[A]
POSTED BY: Hans Dolhaine
POSTED BY: Hans Dolhaine

Thank you so much for the assistance. I'm brand new to Mathematica, so I didn't even notice I had equation 13 in there twice, in my system1 statement.

Thank you! I have another question as I am ew to using Wolfram Mathematica. Is there another way for me to display a linear equation as a matrix other than the way I used it below?

(*times1Style@Column[{TraditionalForm@DisplayForm[GridBox[{{"\
\[Piecewise]",Column[system1]}}]],
Row[{"A = ",MatrixForm[A],"; b = ",MatrixForm[B]}]
}]*)

display a linear equation as a matrix other than the way I used it below?

What exactly do you mean?

POSTED BY: Hans Dolhaine
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract