c(x)=60-10*x
r(x)=12*x
print('the cost when the company produces 0 units is')
N(c(0))
print('the revenue when the company produces 0 units is')
N(r(0))
print('the cost when the company produces 50 units is')
N(c(50))
print('the revenue when the company produces 50 units is')
N(r(50))
p(x)=c(x)-r(x)
print(p(50))
p1=plot(c(x), -20,20, ymin=-50, ymax=50,gridlines='minor')
p2=plot(r(x), -20,20, ymin=-50, ymax=50,gridlines='minor')
show(p1+p2)
x,y,z=var('x,y,z')
f(x)=2*x+8*y+4*z==2
k(x)=2*x+5*y+z==5
g(x)=4*x+10*y-z==1
print(f(x))
print(k(x))
print(g(x))
B=matrix(3,4,[2,8,4,2,2,5,1,5,4,10,-1,1])
print('the matrix of these three equations is')
print(B)
print('when in reduced echelon form looks like this')
D=B.rref()
print(D)
print('This means the solution to the equations are x=11, y=-4, and z=3')
v(x)=(4*x+12*y)/1650==14200
simplify(v(x))
the cost when the company produces 0 units is
60.0000000000000
the revenue when the company produces 0 units is
0.000000000000000
the cost when the company produces 50 units is
-440.000000000000
the revenue when the company produces 50 units is
600.000000000000
-1040

2*x + 8*y + 4*z == 2
2*x + 5*y + z == 5
4*x + 10*y - z == 1
the matrix of these three equations is
[ 2 8 4 2]
[ 2 5 1 5]
[ 4 10 -1 1]
when in reduced echelon form looks like this
[ 1 0 0 11]
[ 0 1 0 -4]
[ 0 0 1 3]
This means the solution to the equations are x=11, y=-4, and z=3
2/825*x + 2/275*y == 14200