Programming Tools 2
Section outline
-
This module, Programming Tools 2, introduces essential computational skills with Scilab that are increasingly vital for mathematics students.
This course reflects six years of teaching experience in the Department of Mathematics at Djilali Bounaâma University, Khemis-Miliana, and is designed for second-year undergraduate students majoring in Mathematics.
The goal is not to make students specialists in programming, but to show how Scilab can be used effectively to perform numerical calculations, manipulate vectors and matrices, solve equations, analyze functions, and visualize mathematical concepts efficiently. By integrating programming with mathematical reasoning, students can deepen their understanding, explore complex problems, and develop practical skills that are indispensable in both academic research and real-world applications.
Each chapter includes exercises with detailed solutions to support classroom learning and laboratory works.
The material follows the official syllabus outlined in the most recent Canevas for the 2018–2019 academic year. Programming techniques are introduced step by step, with emphasis on two main aspects: mastering commands and practicing them to solve exercises. The presentation is limited to what is necessary, ensuring clarity without oversimplification.
The primary bibliographic source used in preparing this course is the help documentation of the latest version of Scilab (Scilab-2025.1.0), available at [https://help.scilab.org/docs/2025.1.0/en_US/]. Other works cited in the bibliography have also been used as supporting material to enrich and complement the content presented here.
Students are expected to have a basic background in algorithms, data structures, and programming languages to fully benefit from this course.
The recommended weekly schedule includes 1 hour and 30 minutes of lectures and 1 hour and 30 minutes of laboratory work. Assessment consists of continuous evaluation and a final exam. The module carries a coefficient of 1 and is worth 3 academic credits.
-
In this chapter, we introduce the basic tools needed to start working with Scilab. First, we explain how to start Scilab and how to use the help system to understand variables and commands. Next, we study variables and how to define and manipulate them. We also explain how to manage the working directory and organize files. Then, we show how to save the work environment to keep your results. Finally, we present the main functions and commands used in Scilab.
-
In this chapter, we study how numbers are represented and manipulated in Scilab. First, we introduce natural integers and how they are handled in the software. Then, we explain the representation of real numbers and discuss precision and approximation. Finally, we present complex numbers and show how to perform basic operations with them in Scilab.
-
In this chapter, we introduce vectors and matrices, which are fundamental objects in Scilab. We study the main operations on vectors and matrices, such as addition, multiplication, and transposition. We also present basic mathematical functions and show how to apply them to vectors and matrices.
-
In this chapter, we introduce the basic concepts of programming in Scilab. First, we explain scripts and functions, and how to write and organize programs. Then, we study control loops and conditional statements, which allow us to control the execution of a program. Finally, we present how to read input data and display results (input and output).
-
In this chapter, we study polynomials in Scilab. First, we explain how to define and represent polynomials in the software. Then, we show how to compute the zeros of a polynomial. Finally, we present the main operations on polynomials, such as addition, multiplication, and factorization.
-
In this chapter, we introduce graphical tools in Scilab. First, we explain how to display 2D and 3D plots. Then, we show how to draw graphs of functions. Finally, we present analytical surfaces and how to visualize them in three dimensions.
-
In this chapter, we introduce symbolic computation in Scilab using the symbolic toolbox. First, we explain how to use the toolbox to define and manipulate symbolic expressions. Then, we show how to expand and transform an expression into a function. We also study how to compute derivatives and integrals symbolically. Finally, we explain how to calculate the Taylor expansion of a function.