Scilab : Teaching mathematics with a computational tool

27
SCILAB: TEACHING MATHEMATICS WITH A COMPUTATIONAL TOOL David Angulo Rubio

description

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. - PowerPoint PPT Presentation

Transcript of Scilab : Teaching mathematics with a computational tool

Page 1: Scilab : Teaching mathematics with a computational tool

SCILAB: TEACHING MATHEMATICS WITH A COMPUTATIONAL TOOLDavid Angulo Rubio

Page 2: Scilab : Teaching mathematics with a computational tool

WHAT IS SCILAB

Page 3: Scilab : Teaching mathematics with a computational tool

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

TOOLBOXES AVAILABLE

Page 5: Scilab : Teaching mathematics with a computational tool

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

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

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

LOOPS IN SCILAB FOR

WHILE:

Page 9: Scilab : Teaching mathematics with a computational tool

CONDITIONAL CONSTRUCTS IN SCILAB

Page 10: Scilab : Teaching mathematics with a computational tool

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

MATRIX OPERATIONS

Page 12: Scilab : Teaching mathematics with a computational tool

SUB-MATRICES

Page 13: Scilab : Teaching mathematics with a computational tool

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

STATISTICS

Page 15: Scilab : Teaching mathematics with a computational tool

FUNCTIONS IN SCILAB

Page 16: Scilab : Teaching mathematics with a computational tool

FUNCTION EXAMPLE: CALCULATION OF FROBENIUS NORM OF A MATRIX

Page 17: Scilab : Teaching mathematics with a computational tool

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

PLOT COMMAND: SIMPLE X-Y PLOTS

Page 19: Scilab : Teaching mathematics with a computational tool

PLOTTING DATA IN 3D

3D GRAPHS USING GRIDS

Page 20: Scilab : Teaching mathematics with a computational tool

DATA FITTING AND INTERPOLATION

SIMPLE LINEAR INTERPOLATION

Page 21: Scilab : Teaching mathematics with a computational tool

SIMPLE LINEAR INTERPOLATION

Page 22: Scilab : Teaching mathematics with a computational tool

SIMPLE LINEAR INTERPOLATION

Page 23: Scilab : Teaching mathematics with a computational tool

POLYNOMIALS IN SCILABDEFINING A POLYNOMIAL : IDENTIFYING VARIABLE, DEGREE AND COEFFICIENTS

Page 24: Scilab : Teaching mathematics with a computational tool

OPERATIONS WITH POLYNOMIALS

Page 25: Scilab : Teaching mathematics with a computational tool

POLYNOMIAL FRACTIONS

MATRICES WITH POLYNOMIAL ELEMENTS

Page 26: Scilab : Teaching mathematics with a computational tool

DETERMINANT OF A POLYNOMIAL MATRIX

EVALUATING A POLYNOMIAL OR POLYNOMIAL MATRIX

Page 27: Scilab : Teaching mathematics with a computational tool

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”