Solver SOLVE a linear equation
Algebra
->
Equations
-> Solver SOLVE a linear equation
Log On
Algebra: Equations
Section
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'SOLVE a linear equation'
This Solver (SOLVE a linear equation)
was created by by
ichudov(507)
:
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]: <CENTER>*[input a=3]*x+*[input b=-2] = *[input c=1]</CENTER> ==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;