Mathematica I dont quite understand the mathematica language. linear equations

AI Thread Summary
To solve linear equations and systems in the form y=ax+b, the discussion emphasizes the use of specific syntax, particularly brackets "[]" and double equal signs "==". For simple equations, the command "Solve[y == 5/4 x - 2, x]" is recommended, which allows for direct solving for x. In contrast, "LinearSolve" is intended for larger systems of equations represented in matrix form. The user experienced confusion when inputting equations, receiving results like {x -> (4 (2 + y))/5} for a linear system. The discussion highlights the importance of understanding the appropriate commands and syntax for different types of equations to achieve accurate results.
offtheleft
Messages
130
Reaction score
1
how would i get it to solve linear equations and linear systems, especially in the form;
y=ax+b

my professor and i found out that it likes brackets "[ . . . ]" and double equal signs "=="

i know its probably painfully obvious but any input would be tremendous!
 
Physics news on Phys.org
Just use LinearSolve
 
that would be under the algebraic manipulation palette?

so i would just type out y=\frac{5}{4}x-2 and press linear solve or do i have to type out;

y=\frac{5}{4}x-2 and give a set like {x, 3, 4} or something?
 
If your equation is that simple then you can use:

Solve[y == 5/4 x - 2, x]

LinearSolve is for solving large systems of linear equations in matrix form.
 
i put that in and i get this.

{x -> (4 (2 + y))/5}

its quite confusing.
 
i put in "Solve[2x-y==0]" and i got:<br /> <br /> {{y \rightarrow 8}}
 

Similar threads

Replies
3
Views
2K
Replies
1
Views
2K
Replies
6
Views
10K
Replies
3
Views
7K
Back
Top