Scilab is an open source software for numerical computation provided by the National Mission on Education through ICT. This document provides examples of scripts and functions to create in Scilab, including:
1) A script to display the current time using the clock() function.
2) A script to display the product of a matrix and the inverse of the same matrix.
3) A function to calculate the sum and difference of any two input numbers.
4) A function to calculate the row-wise and column-wise mean and standard deviation of a user-defined matrix.
Scilab is an open source software for numerical computation provided by the National Mission on Education through ICT. This document provides examples of scripts and functions to create in Scilab, including:
1) A script to display the current time using the clock() function.
2) A script to display the product of a matrix and the inverse of the same matrix.
3) A function to calculate the sum and difference of any two input numbers.
4) A function to calculate the row-wise and column-wise mean and standard deviation of a user-defined matrix.
Funded by the National Mission on Education through ICT
Indian Institute of Technology Bombay, Organised by FOSSEE Group, IIT Bombay, http://scilab.in (The sequence of spoken tutorials to be listened/followed is same as that of exercise sets below.) Scripts and Functions Solve the following examples on the Scilab Console as soon as the relevant topic is explained in the tutorial. 1. Create a scilab script file to display time on console window. (hint: clock()) 2. Create a scilab script file to display product of a matrix A and inverse of A. A = [1, 1; 1, 1] 3. Create a function file to calculate sum and difference of any two numbers. The output should be the sum and the difference of numbers. 4. Create a function file to calculate the rowwise and columnwise mean and standard deviation of a user defined matrix. Display the matrix, its mean and standard deviation in output. (hint; mean(), stdev() ) 5. Create an inline function to sort the elements of a random vector in descending order. (hint: gsort()) 6. Create an inline function to round off the elements of a vector [1.9, 2.3, -1.1, 50.5] to the nearest integer. (hint: round()) 7. Create a function file to calculate LU factorization of a matrix. (hint: lu()).
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More