# Solver SOLVE a linear equation

Algebra ->  Linear-equations -> Solver SOLVE a linear equation      Log On

 Ad: Mathway solves algebra homework problems with step-by-step help! Ad: Algebrator™ solves your algebra problems and provides step-by-step explanations!

 Algebra: Linear Equations, Graphs, Slope Solvers Lessons Answers archive Quiz In Depth

### Source code of 'SOLVE a linear equation'

This Solver (SOLVE a linear equation) was created by by ichudov(499)  : View Source, Show, Put on YOUR site
About ichudov: I am not a paid tutor, I am the owner of this web site.

 ==section input Solve for variable *[input X=x]:
*[input a=3]*x+*[input b=-2] = *[input c=1]
==section solution perl \$x = (\$c-\$b)/\$a; print "Solve {{{\$a*\$X+\$b=\$c}}}. Move \$b to the right: {{{\$a*\$X=\$c-\$b}}}. Divide by \$a: {{{\$X=(\$c-\$b)/\$a=" . (\$c-\$b) . "/\$a = \$x}}}"; ==section output x ==section check x=x a=3 b=-2 c=1 x=1 ==section practice perl \$X=(qw( x y a b c ) )[randint( 0, 4 ) ]; \$a = randint( 1, 5 ); \$b = randint( -2, 8 ); \$c = \$a*randint( 1, 5 )+\$b;