Message Boards Message Boards

0
|
3652 Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Using system of equations palette in the InputForm - Syntax error

Posted 3 years ago

I'd like to use the system of equations palette in the InputForm. When I try to solve a system I get a syntax error. How can I overcome it?

enter image description here

EDIT: the code obtained by copy and paste the object in the figure above is:

\!\(
TagBox[
StyleBox[
RowBox[{"{", 
StyleBox[GridBox[{
{
RowBox[{
RowBox[{"x", "+", "y"}], "=", "1"}]},
{
RowBox[{"y", "=", "2"}]}
}],
ShowAutoStyles->True]}],
ShowAutoStyles->False],
#& ]\)
POSTED BY: Gennaro Arguzzi
5 Replies
Posted 3 years ago

I'm not aware of a "system of equations palette", so I may be missing something, but I believe what is happening is that you are using a form from one of the palettes that is intended for styling and layout of stuff. By using it in an Input cell, Mathematica is expecting to be able to evaluate whatever you put there. I don't know what that left bracket thing is supposed to mean for evaluation, so I don't know specifically how to explain its use.

One thing I can point out is that you are using Set instead of Equal. If this thing really is supposed to solve a system of equations, then I suspect it expects Equal.

But if you really just want to solve a system of equations, you could use Solve:

Solve[{x + y == 1 && y == 2}, {x, y}]
(*{{x -> -1, y -> 2}}*)
POSTED BY: Eric Rimbey

Hello Eric, I edited my question. I'm wondering why I can use the palette which represents a matrix to perform matrix multiplication, and it seems that I cannot use the palette of system of equations. Both palettes are in the same line in Basic Typesetting (menĂ¹ Palettes-->Others-->Basic Typessing).

POSTED BY: Gennaro Arguzzi
Posted 3 years ago

If your objective is to solve a system of equations, use Solve. If your objective is to typeset something that doesn't need to be evaluated, put it in a text cell (or any cell type you want that does not have the Evaluatable property).

POSTED BY: Eric Rimbey
POSTED BY: Gennaro Arguzzi
Posted 3 years ago
POSTED BY: Eric Rimbey
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