Message Boards Message Boards

0
|
12738 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Solve::ivar: -1+5 x is not a valid variable.

Posted 9 years ago

In[54]:= g1 = -x + 1; g2 = 5 x - 1; g3 = 2 x - 3; Plot[{g1, g3, g2}, {x, -1, 2}, AspectRatio -> 1/2]

In[62]:= Pointt = Solve[{y = g1, y = g2}, {x, y}]

In[62]:= Solve::ivar: -1+5 x is not a valid variable.

Out[62]= Solve[{-1 + 5 x, -1 + 5 x}, {x, -1 + 5 x}]

Attachments:

For equations use == instead of =, which is used for assignments:

Clear[y]
Solve[{y == g1, y == g2}, {x, y}]
POSTED BY: Gianluca Gorni
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