cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Program with one line for gebugging

ValeryOchkov
Ruby I

Program with one line for gebugging

Hi all!
It is possible to create the program, not with using the command Add Line, but with using an array.
Such technology of creation of the programs allows easily it to debug (to search for mistakes, if the user has made them at record of the formulas).
See the attached file.
Valery Ochkov
http://twt.mpei.ac.ru/ochkov
7 REPLIES 7

Program with one line with if and for

Hi all!
It is possible to create the program with if and cycle, not using the command Add Line, but using a nested array.
See the attached file.
Valery Ochkov
http://twt.mpei.ac.ru/ochkov

Program with one line with units

Hi all!
It is possible to see all local variables with units in one-line (or single-line: I do not know english so good) program.
See the attached file.
Valery Ochkov
http://twt.mpei.ac.ru/ochkov

Program-spreadsheet for debugging

Hi all who like programming in Mathcad!
In attached file we can see the one-line (single-line) Program ("Program-array!", "Program-spreadsheet", Program-Excel etc.) that returns all local variables and answer.
Valery Ochkov
http://twt.mpei.ac.ru/ochkov

Program-spreadsheet for debugging

Hi!
It is possible to use the if-function in one-line Spreadsheet-program for the check of the input data.
Valery Ochkov
http://twt.mpei.ac.ru/ochkov

Program-spreadsheet for debugging

of course you can also use this with
IF(L>R,"Yes",error("Length should be larger then the radius (or whatever"))
, preventing the function to continue.

maarten

Program-spreadsheet for debugging

Thank, Maarten!
But with function *error* we cannot see the values of all local variables.
Valery Ochkov
http://twt.mpei.ac.ru/ochkov

Debugging with animatoin

Hi!
It is possible to see a change of all local variables in cycle through ANIMATION (Movie "Matrix"). See the attached file.
Valery Ochkov
http://twt.mpei.ac.ru/ochkov
PS
I know about the function rkfixed in Mathcad.
Announcements