Numerical Methods Programs using Octave by Pritika Malhotra
Today, we had discussion on Numerical Methods using Octave programming.
The first method discussed was Bisection method and suggestions were provided which are listed later in the report. Then one by one others others methods were shown.
To add Functions folder, addpath method was used. To avoid it, alternative of copying function file or user creating symbolic link was suggested. There should be a fixed function file which user can use or edit the function, if required.
- Can one run program without octave through executable?
Executable can be run directly without compilation but will require Octave to be installed.
Executable Octave programs:
- What is the relevance of texinfo in the function file?
Texinfo uses a single source file to produce output in a number of formats, both online and printed (dvi, html, info, pdf, xml, etc.). This means that instead of writing different documents for online information and another for a printed manual, you need write only one document. And when the work is revised, you need revise only that one document. https://www.gnu.org/software/octave/doc/v4.0.1/Documentation-Tips.html#Documentation-Tips
Then Sir assigned the task of running these programs in vpl and even trying the plots on vpl to Shweta.
Suggestions given by Sir:
To add plot between iteration and roots.
Make user friendly comments so that user knows how to define everything.
Supply default value to variables i.e. either he can use default value or he can chose to input values.
Proper variables names to be defined and standard style to be followed.
Give reference of book for algorithm followed (and provide record of everything so that one can compare.)
Keep input in entirely separate file (with minimum related info, instruction should be given).
Follow styling guidelines and beautify the program.
User should not addpath every time. Rather user should be given instruction to copy a particular function file to the specified folder of that method.
Statements common to all files should be kept in a single file and it should be included.
He said to rewrite the programs again by incorporating all of the above changes and provide relevant documentation or instructions so that any user can use these programs directly.