#config clearmemory #config complexoff // This script can be used to multiply a matrix // with a vector. // To use it, first press the run button here. // Then you can run the script as often as you want by // pressing the run button of the script console // // Feel free to read or modify this code. // For further examples and more information, please // visit http://extcalc-linux.sourceforge.net/ // A=0; //matrix B=0; //Vector C=0; //lines matrix D=0; //rows matrix E=0; //vector dimensions F=0; //result vector G=0; //general loop counter H=0; //general status variable I=0; //general input variable J=0; //print height K=0; //absolute result //request lines first matrix clear; print("\n********** Matrix-Vector Product **********\n"); print("\nInsert number of lines for first matrix: "); while(1) { C=(int)getline; if(C<1 || C>=20) print("\nLine number must be greather than 0 and less than 20\n"); else break; } print("\nInsert number of rows for first matrix: "); while(1) { D=(int)getline; if(D<1 || D>=20) print("\nRow number must be greather than 0 and less than 20\n"); else break; } print("\n\nSize of Vector set to "); E=D; print(E); print("\nPress any key to continue ..."); getkey; clear; if(E>C) J=E; else J=C; G[0]=0; G[1]=0; G[2]=0; G[3]=0; H=0; while(1) { setcursor(0,0); print("\n********** Matrix-Vector Product **********\n"); for(G[0]=0; G[0]