1)Set the unknowns as the variables.

2)Determine the objective function.

3)Write the constraints.

4)Convert to a system of equations with slack variables.

5)Write the Initial Simplex Tableau

6)Find the pivot column-Most negative entry in the last row-If there is a tie, use the column furthest to the left

7)Find the pivot row-Smallest nonnegative ratio of constants to pivot column entries.-If there is no nonnegative ratio, then there is no maximum.-If there is a tie, use the row closest to the top.

8)Pivot

9)Repeat until all entries in last row are nonnegative.-If there is a 0 in the bottom row of a non-basic variable, then another solution can be found using this column as another pivot column.

10)Read the solution

Does this help?

]]>Also, does this help?

]]>` ``Local x0,x1,q,t`

Also, what is b0? Do you mean to use b? You don't seem to have it declared anywhere. I hope you figure it out; I always like a good mod inverse :)

**EDIT:** Wow, I have no idea how I missed that you already had that Local definition at the top, sorry!

Don't reply to old threads (the last post is more than three months old); start a new thread instead.

Also, SnowBot doesn't have a 31 at the end of his username, it is the day for the post of January 31^{st}, 2020.

It sometimes workes, but 99% of the time it doesn´t.

It won´t even work with just 2 or 3 variables in the solve command.

I feel you SnowBot31

]]>` ``// Str1 contains "WHAT TIME IS IT If Str1="WHAT TIME IS IT Disp "Java: It is",getTmStr(getTmFmt)+".`

` ``#include <iostream> using namespace std; int mul_inv(int a, int b) { int b0 = b, t, q; int x0 = 0, x1 = 1; if (b == 1) return 1; while (a > 1) { q = a / b; t = b, b = a % b, a = t; t = x0, x0 = x1 - q * x0, x1 = t; } if (x1 < 0) x1 += b0; return x1; } int main(void) { cout<<mul_inv(42, 2017)<<endl; return 0; }`

in my TI-Nspire CX So far I have the following code but am getting variable not defined in if statement.

Here is the code I have in my Nspire CX so far.

` ``Define LibPub modinv(a,b)= Func Local b0,t,q,x0,x1 0→x0 1→x1 If b=1 Then Return 1 EndIf While a>1 q:=((a)/(b)) t:=b b:=mod(a,b) a:=t t:=x0 x0:=x1-q*x0 x1:=t EndWhile If x1<0 Then x1:=x1+b0 EndIf Return x1 EndFunc`

the inspire is throwing an error on this line.

` `` If x1<0 Then x1:=x1+b0 EndIf`

Not sure what I am doing wrong here! Any insight would be appreciated!

]]>