300 likes | 496 Views
Scilab : Teaching mathematics with a computational tool. David Angulo Rubio. What is SciLab. 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.
E N D
Scilab: Teaching mathematics with a computational tool David Angulo Rubio
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
Scilab Environment and Basic Functions Scilab has the ability to store values, so that they can be used later
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.
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
Loops in Scilab • FOR • WHILE:
Matrix Operations • Matrix Operations built-in into • SciLab: • Addition, • Subtraction • Multiplication • Transpose • Inversion • Determinant, • Trigonometric • Logarithmic • Exponential, and many others
Select-case Scilab Scripts or Programs. Type the following SCILAB script into a file called prog1.txt
Plot Command: Simple x-y Plots In the solutions of linear or nonlinear equations, it is often convenient to be able to plot the function to visualize the location of the roots of the function
Plotting Data in 3D 3D Graphs using grids
Data Fitting and Interpolation Simple Linear Interpolation
Polynomials in SciLab Defining a Polynomial : Identifying variable, degree and coefficients
Polynomial Fractions Matrices with Polynomial Elements
Determinant of a Polynomial Matrix Evaluating a Polynomial or Polynomial Matrix
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”