This experiment compares numerical and analytical solutions in MATLAB. The student learned MATLAB functions for numerical solutions like print, loops, and if/else statements. They used these functions to factor numbers numerically in a script and loop. This produced answers faster than analytical solutions and with less human error, though analytical solutions provide understanding. Both methods have advantages, so using them together cancels out disadvantages.
This experiment compares numerical and analytical solutions in MATLAB. The student learned MATLAB functions for numerical solutions like print, loops, and if/else statements. They used these functions to factor numbers numerically in a script and loop. This produced answers faster than analytical solutions and with less human error, though analytical solutions provide understanding. Both methods have advantages, so using them together cancels out disadvantages.
This experiment compares numerical and analytical solutions in MATLAB. The student learned MATLAB functions for numerical solutions like print, loops, and if/else statements. They used these functions to factor numbers numerically in a script and loop. This produced answers faster than analytical solutions and with less human error, though analytical solutions provide understanding. Both methods have advantages, so using them together cancels out disadvantages.
MODULE #: 2 MODULE NAME: NUMERICAL VS ANALYTICAL SOLUTION
STUDENT NAME: IAN JASPER R. SIVAM
SECTION: L21 INSTITUTION: ALABANG
INSTRUCTOR: DR. POCHOLO JAMES LORESCO
DATA & RESULTS-SCREENSHOTS OF COMMAND LISTING Command Listing 2.1
Command Listing 2.2
Command Listing 2.3
ANALYSIS
For this experiment we were given a task to determine the features of
MATLAB for Numerical and Analytical solution. In analytical solution it is solved by hand thinking through the problem, this time we are going to determine if our answers are correct by solving the analytical solution first and then testing the numerical solution via computer program. First thing is first, familiarization of the functions of MATLAB in Numerical solutions. We learned the basics of the print function, to display certain details of your solution, after that next is the familiarization of format string, escape characters, loops and even an if, else if, else statement configuration. After familiarization here comes the main event, the application of numerical solution. The first solution we tried is factoring using a loop, we were tasked to make a new script for this loop function to work. After typing the components of the loop function next is declaring the value of ‘n’ to start factoring, after defining ‘n’ next is to run the script note that the script is not a continuous loop because of the ‘end’ function so every time you need to use the script you need to run it. After the script has done its job it will display the answer on the next line. CONCLUSION
In this experiment we therefore conclude that using numerical solutions
method is easier than analytical because it produces less human error at the faction of the time it takes using analytical solution. For analytical solution it gives you the understanding of what really happens inside the solution but one mistake in values it can change the final answer in an instant and it also takes time to solve depending on the problem given, for numerical solution it takes the same amount of time for any problem. We can conclude that using both methods give a slight advantage by cancelling the disadvantages both solutions has offered.