C/C++ :: How To Use Formulas
Mar 24, 2014 I Have Formula As Given Below
f(z)= 1/(ā_1^nāćf(x),f(y)ć)
I Have Formula As Given Below
f(z)= 1/(ā_1^nāćf(x),f(y)ć)
Working on a program that converts infix to postfix math formulas. Ive successfully converted the infix to a postfix notation but now i am having trouble solving the equation from the postfix form. Im trying to set a result equal to three variables as shown below:
result = op1 ch op2;
where op1 and op2 are numbers and ch is the operator (+-*/) depending on what the user entered into a string. The error im getting is that it expected a ";" before postfix so clearly it doesn't understand what im trying to do. how to put the answer from op1 ch op2 into result.
int[ , ] Values; string[ , ] Formulas
ive tried this
string [,] formula=new string {[0,0]+[0,1]+[0,2]+[0,3]+[1,0]+[1,1]+[1,2]+[1,3],[2,0]+[2,1]+[2,2]+[2,3]+[3.0]+[3,1]+[3,2]+[3,3]};