Scilab : Teaching mathematics with a computational tool
description
Transcript of Scilab : Teaching mathematics with a computational tool
![Page 1: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/1.jpg)
SCILAB: TEACHING MATHEMATICS WITH A COMPUTATIONAL TOOLDavid Angulo Rubio
![Page 2: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/2.jpg)
WHAT IS SCILAB
![Page 3: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/3.jpg)
MOTIVATION The way mathematics courses are being
developed. Students have to struggle to against abstractions and do not get to see any of the applications.
Mathematical concepts are important in order to understand the results supplied by Scilab
Teaching mathematics could be definitively more effective if suitable computational methodology and software were introduced
![Page 4: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/4.jpg)
TOOLBOXES AVAILABLE
![Page 5: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/5.jpg)
SCILAB ENVIRONMENT AND BASIC FUNCTIONS
Scilab has the ability to store values, so that they can be used later
![Page 6: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/6.jpg)
COMPARISONS AND LOGICAL OPERATORS ScilLab provides the user with a number of
programming constructs very similar to those available in Fortran and other high-level languages.
![Page 7: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/7.jpg)
WORKSPACE AND WORKING DIRECTORY Scilab Environment Visible Workspace Memory Space where all
variables and functions are stored. It’s useful to check this workspace to check
where a variable or function has been defined or not
![Page 8: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/8.jpg)
LOOPS IN SCILAB FOR
WHILE:
![Page 9: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/9.jpg)
CONDITIONAL CONSTRUCTS IN SCILAB
![Page 10: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/10.jpg)
MATRIX OPERATIONSMatrix Operations built-in into SciLab:•Addition, •Subtraction•Multiplication •Transpose •Inversion •Determinant,•Trigonometric •Logarithmic •Exponential, and many others
![Page 11: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/11.jpg)
MATRIX OPERATIONS
![Page 12: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/12.jpg)
SUB-MATRICES
![Page 13: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/13.jpg)
SELECT-CASE
SCILAB SCRIPTS OR PROGRAMS.
Type the following SCILAB script into afile called prog1.txt
![Page 14: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/14.jpg)
STATISTICS
![Page 15: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/15.jpg)
FUNCTIONS IN SCILAB
![Page 16: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/16.jpg)
FUNCTION EXAMPLE: CALCULATION OF FROBENIUS NORM OF A MATRIX
![Page 17: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/17.jpg)
PLOT COMMAND: SIMPLE X-Y PLOTSIn the solutions of linear or nonlinear equations, it is often convenientto be able to plot the function to visualize the location of the roots of the function
![Page 18: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/18.jpg)
PLOT COMMAND: SIMPLE X-Y PLOTS
![Page 19: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/19.jpg)
PLOTTING DATA IN 3D
3D GRAPHS USING GRIDS
![Page 20: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/20.jpg)
DATA FITTING AND INTERPOLATION
SIMPLE LINEAR INTERPOLATION
![Page 21: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/21.jpg)
SIMPLE LINEAR INTERPOLATION
![Page 22: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/22.jpg)
SIMPLE LINEAR INTERPOLATION
![Page 23: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/23.jpg)
POLYNOMIALS IN SCILABDEFINING A POLYNOMIAL : IDENTIFYING VARIABLE, DEGREE AND COEFFICIENTS
![Page 24: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/24.jpg)
OPERATIONS WITH POLYNOMIALS
![Page 25: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/25.jpg)
POLYNOMIAL FRACTIONS
MATRICES WITH POLYNOMIAL ELEMENTS
![Page 26: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/26.jpg)
DETERMINANT OF A POLYNOMIAL MATRIX
EVALUATING A POLYNOMIAL OR POLYNOMIAL MATRIX
![Page 27: Scilab : Teaching mathematics with a computational tool](https://reader036.fdocuments.net/reader036/viewer/2022062222/568162aa550346895dd32ccb/html5/thumbnails/27.jpg)
REFERENCES Urroz, G.,2001,“Programming with SCILAB” Urroz, G.,2001,“Graphics with SCILAB” Urroz, G.,2001,“Introduccion to SCILAB” Annigeri,S.,2004,“ SCILAB: A Hands On
Introduction” Urroz, G.,2001,“Data Fitting and Interpolation
with SCILAB” Benmahammed , K.,2010,“SCILAB” Campbell, L. Chancelier,J. and Nikoukhah,
R.,2006,“Modeling and Simulation in Scilab/Scicos”