A pig weighting 200 pounds gains 5 pounds per day and costs 45 cents a day to keep. The market peice for pigs is 65 cents per pound,but is falling 1 cent per day. When should the pig be sold?
x=0:0.001:100;
w=200+5*x; %weight
p=0.65-0.01*x
A pig weighting 200 pounds gains 5 pounds per day and costs 45 cents a day to keep. The market peice for pigs is 65 cents per pound,but is falling 1 cent per day. When should the pig be sold?
x=0:0.001:100;
w=200+5*x; %weight
p=0.65-0.01*x