Chapter 5 Simple Equations

Example 5_1 pgno:62

In [1]:
print'expr=6*x-5=2*x+9'
#by solving 
x=14./4.;
print x
expr=6*x-5=2*x+9
3.5

Example 5_2 pgno:62

In [2]:
print'expr=10(x-4)=4(2x-1)+5'
#by solving 
x=41./2.;
print x
expr=10(x-4)=4(2x-1)+5
20.5

Example 5_3 pgno:63

In [3]:
print'expr=3*x/5+x/2=5*x/2-3'
#by solving 
x=60/3;
print x
expr=3*x/5+x/2=5*x/2-3
20

Example 5_4 pgno:63

In [4]:
print'expr=4*x-((x-2)/3)=5+((2*x+1)/4)'
#by solving 
x=55./38.;
print x
expr=4*x-((x-2)/3)=5+((2*x+1)/4)
1.44736842105