Hi everyone! I'm a 20 year old Business Major and I am taking an Econ test this Tuesday. I am writing a program that will save me a lot of time on the test, as this teacher is notorious for having his tests go to the minute, and students not completing them in time.
Enough with the sympathy. What I am doing is taking the (y,x) values given to us in L1 and L2 respectively (Don't ask me why he gives us y values before x values, I just wrote my program around this so my dyslexia isn't compounded).
Now what we are doing are drawing Production Possibility Curves, calculating the difference between the consecutive (y,x) values (I store those in L3 and L4 respectively), then to calculate the Price Per Unit for both the X and Y supply curve.
This brings in to my program the first two questions I will have. The first one is, is there a way to procedurally create consecutive lists without doing it manually? (My Ti-84 Plus only goes to L6 before you need to enter more).
The second questions is: To calculate the supply curves for X and Y, once I have additional lists to store the values in, I need to take the original (y,x) (L1,L2) Lists, and store then in say, (L7,L8), but with the catch that all the values put in to (L7,L8) be in the same order, but x<0. I need all 0 values to be deleted from their row. Now each one of these data sets has a zero The Y set has one at the bottom, and the X set has one at the top. It would look like this:
5 0
4 1
3 2
2 3
1 4
0 5
Once the negative values are removed, it needs to resemble
5 1
4 2
3 3
2 4
1 5
That ends my first two primary questions. The next question I have is for automatically ordering values so I can graph order of hiring for resources.
I need to be able to take a row, and use the SortA( command and store that in say, L12
Once I have that done, I need to be able to take my values from my lists that have had 0 removed and the SortA( list, and use Linear Regression to make a line of best first best fit, and store that somewhere.
I know this is asking a lot but this is my first time REALLY programming, and I need a bit of help.
Currently my program looks like:
PROGRAM:ECON
:changeList(-L1)->L2
:changeList(L2)->L3
:L3/L4->L5 (OPPORTUNITY COST PER 1 UNIT OF X AS DESCRIBED IN Y's)
:L4/L3->L6 (OPPORTUNITY COST PER 1 UNIT OF Y AS DESCRIBED IN X's)
:L1->L7 (For Manual Removal of Zeroes)
:L2->L8 (For Manual Removal of Zeroes)
:L5->L9 (Setting up for LinReg, Y values for best hiring for production of X)
:L6->L10 (Setting up for LinReg, X values for best hiring for production of Y)
I have hopefully described this as best as I can. Thanks for any help given! I have tried to be as specific as possible.
