Group Abstract Group Abstract

Message Boards Message Boards

Solve a System of equations using matrix inverse

Posted 5 years ago

Hello, I am attempting to solve a system of equations by using the matrix inverse. I was able to create a system and separate the system into two matrices, but I am having issues generating the matrix inverse. I have attached the nb file containing my code.

Attachments:
6 Replies

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

What exactly do you mean?

POSTED BY: Hans Dolhaine
POSTED BY: Hans Dolhaine

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]}]
}]*)

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

Dimensions[A]
POSTED BY: Hans Dolhaine
Posted 5 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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard