0% found this document useful (0 votes)
93 views

Computing with Scilab

The document outlines a course on 'Computing with Scilab' for B.Sc. IV Year students in the 2024-25 session, detailing prerequisites, learning outcomes, and course content. Students will learn to implement vectors and matrices, apply programming concepts, visualize data, and use Scilab tools for modeling and simulations. The course includes practical lab sessions focusing on matrix manipulation, graphing, and simulations using Scicos/Simulink.

Uploaded by

kushwahamit74
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
93 views

Computing with Scilab

The document outlines a course on 'Computing with Scilab' for B.Sc. IV Year students in the 2024-25 session, detailing prerequisites, learning outcomes, and course content. Students will learn to implement vectors and matrices, apply programming concepts, visualize data, and use Scilab tools for modeling and simulations. The course includes practical lab sessions focusing on matrix manipulation, graphing, and simulations using Scicos/Simulink.

Uploaded by

kushwahamit74
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
PART A: Introduction : Program: Honours/Researeh | Class: B.Se. Year: IV Year Session: 2024-25 Subject: Computer Science T. | Course Code S4-COSCAD 2. | Course Title ‘Computing with Seilab 3. | Course Type (Core (Discipline Specific Elective) - Course/Discipline SpecificElective/Generic Elective/ Vocational 4. | Pre-Requisite To study this course, a student must have prior knowledge of matrix and its operations. This course can be opted as an elective by the students of Computer Science only. 5. | Course Learning Outcomes | On successful completion of the course, the students shall be (CLO) able to: © Implement the concept of vectors & matrices in Seilab programming. © Able to apply the programming concept like branching, iteration & functions in a Scilab program. © Use the inbuilt functions of Scilab for trigonometric & statistical calculations. © Analyze and visualize the data through various 2-D and 3-D plots. © Apply Scilab tools in modelling and simulations. © Use Scicos visual editor (Xcos)Simulink Editor in various simulations of scientific importance. 6 | Credit Value Theory - 3 Credits 7. Total Marks Max. Marks: (30+70) 100 | Min. Passing Marks: 35 PART B: Content of the Course ~ No. of Lectures (in hours per week): 9, hoursper week i Total No. of Lectures:45 (G Hour Each) Module Topics No. of Lectures | T/Introduetion to Seilab: What is Scilab, environment of Scilab. Command prompt, | 8 Scilab as interactive calculator, script editor, some useful commands for directory file’s view: pwd, who, whos, Is, dir, ed; clearing command window: cle, clearing variables: clear. Data types and Special variables: Fundamental data type and object data types, arrays and matrices, operators (arithmetic, relational & logical), predefined special variables/constants: imaginary number, Euler’s constant, pi (x), infinity, not a number (NaN). Working with Arrays and Matrices: Defining variables as matrix, accessing an clement, @ row, a column, and a submatrix of a matrix, Create row vector and column vector using colon operator. Matrix operations: addition(+), subtraction(-), transpose(’), multiplication(*), left division (), right division(), exponent("), elementwise multiplication (*), elementwise left division (.\),elementwise right division(./),_elementwise exponent(.*); functions to find inverse(inv), determinant (der), diagonal (diag), trace(trace), upper triangular (ériu/), lower triangular (tril) and eigen value(spec). Array operations vs matrix operations, length, size of matrix functions. Special matrices: All clement zeros: zeros(m.n), all element ones: ones(m,n), identity matrix: eye(m,n), random number matrix: rand(im,n). TT |Scilab Programming Language: Scripting in Scilab, comment, conditional |” 8 branching (if.else), switch, loops (while, do. ..while, for). User defined functions. Inbuilt Scilab functions: Trigonometrie: sind, sind), cos, cosd0, tand, rand, sinh), coshQ, tanh(), acos(), asin(, atan() Statistical: max(, minQ,sum(), meand, stdev(), median(), correl(), variance), cov(), covar(), princomp(), reglin() Cell: Ceil() and Data Struetures:Siruct() in Scilab. Computation through Scilab/: Solving linear algebraic equations through matrix method, Gauss Elimination, LU decomposition and partial pivoting, Iterative methods: Gauss Siedel Method. Ii | Data Visualization with 2-D and 3-D Plots: 8 Creating 2-D Plots: The plots command plor(, plotting multiple graphs in the same figure. Various other 2D plots: Histograms: histplot(), pie chart: pie(), bar chart: bar(), horizontal bar chart: barh(), polar plot: polarplot(), 2D plot of a matrix using color: matplot(), counter plot: contour2d(), contourf(), scatter plot: scatter), add error bar on 2D plot: errorbar() Creating 3-D Plots: Surface plot: suff), plor3d(), contour plot:contour(, mesh plot:mesh(), 3D histogram: hist3d(). Managing the properties and attributes of figure/plot: title, xlabel, ylabel, legends, font and font color, line color, line width, aspect ratio, background color and other properties of figure/plots. File operations in Scilab: Importing/exporting data in CSV format and spreadsheet files. Saving and loading variables. IV | Working with polynomial: poly(), residue(), roots), detr(), degree(), coef. 8 Interpolation: Linear interpolation, cubic spline interpolation, smoothing by spline functions, weighted least squares cubic spline fitting. Solving differential equations: Differential algebraic equations solver, differential algebraic equation, DAE solver with zero crossing, boundary value problems. Solving Ordinary Differential Equations: Ordinary differential equation solver, | ordinary differential equation solver with roots finding, discrete/continuous ODE solver. Numerical Integration through Scilab: — Definite integral, Cauchy integral, integration of experimental data by spline interpolation, integration of experimental data by trapezoidal interpolation. V__ | Scicos/Simulink Introduction: 7 |_ © Construction of a Simple Diagram, Running Scicos, editing a Model, Diagram Hives ly Simulation, Changing Block Parameters (developing SIR Model for Spread of Disease) Symbolic Parameters and Context © Hierarchy: Placing a Super Block in a Diagram, Editing a Super Block © Save and Load:Scicos File Formats, Super Block and Palette ® Synchronism and Special Blocks Scicos/Simulink Formalism * Activation Signal: Block Activation, Activation Generation © Inheritance © Always Active Blocks © Constant Blocks © Conditional Blocks VI__| Scicos Visual Rditor (Xeos)/Simulink Editor 6 Types of Palettes: Source & Sink Palettes, Continuous time systems, Discontinuities, Discrete time systems, Branching Palettes, Event handling Palettes, Lookup Tables, Matrix Palettes, Mathematical Operations, Electrical, Implicit, Demonstration Blocks, User-Defined functions, etc, Demo Simulations: Simple demo of Sin & Cos, Bouncing Ball model, Signal builder, Fibonacci Numbers, Xcos data type, If Block, etc. PART C: Learning Resources [ Textbooks, Reference Books, Other Resources Suggested Readings Textbooks: ‘* Stephen L, Campbell, Jean-Philippe Chancelier and Ramine Nikoukhah, “Modeling and Simulation in Scilab/Scicos”, 2010, Springer * ACHUTHSANKAR S. NAIR, SCILAB (A Free Software To MATLAB), Kindle Edition, (2011). * Sandeep Nagar, Introduction to Scilab: For Engineers and Scientists, (2017), Kindle Edition, Apress * Satish Annigeri, Introduction to Scilab, 2009, scilab.org, Reference Books + Rachna Verma & Arvind Kumar Verma, “Introduction to Scilab”, 2018, ebook on Kindle * Editors: Gomez, Claude (Ed.), Engineering and Scientific Computing with Scilab, ISBN 978-1-4612- 1584-4 Suggestive digital platform web links hitps:/Avww.scilab.org/tutorials ilab.or plications htps://www.scilab.org/basic-statistic jpart-2 hutps:/www. seilab.org/iutorials/modeli hups://www scilab.org/programmir https:/nptel.ac.in/content/storage2/course: ‘downloads/partll/SScilab pdf Av lue— ://spoken-tutorial.org/watch/Scilab/Introduction+o# omizing-xcos-new-blocks-and-paleite jabtand its+benefits/English/ hitps://spoken-tutorial org/watch/Scilaby Self+learning+of+Seilab+through+Spoken+Tutorials/English/ https://spoken-tuto htips:/spoken-tutorial.org/watch/Scilab/ hitps://spoken-tutorial.org/watch/Scilab/Vector=Operations/English/ hups://spoken-tutorial.ora/watch/Scilab/Matrix+Operations/Eng https://spoken-tutorial.org/watch/Scilab/Condit ng/English/ https://spok: / watch! https://spoken-tutorial.org/wateh/Scilab/Scripis*and+Funetions/English/ hitps://spoken-tutorial org/wateh/Scilab/Plotting+2D+eraphs/English/ https://spoken-tutorial.org/watch/Scilaby ntroduction/English/ bitps://www.mathworks.com/help Suggested equivalent online courses Swayam-NPTEL Course: Scilab Swayam-NPTEL Course: Computational Approach to Materials Science and Engineerins Part D: Assessment and Evaluation Suggested Continuous Evaluation Methods: ‘Maximum Marks: 100 Continuous Comprehensive Evaluation (CCE): 30 Marks University Exam (UE): 70 Marks Internal Assessment: Class Test Total Marks: 30 Continuous Comprehensive AssignmentPresentation Evaluation (CCE) External Assessment: University Exam (UE) Section (A): Objective type Time: 03.00 Hours Section (B): Short Questions Total Marks: 70 Section (C): Long Questions hatin PART A: Introduction Program: Honours/ Research] Class: B.Se. Year: IV Year Session: 2024-25 Subject: Computer Science 1. | Course Code S4-COSCAQ 2. | Course Title ‘Scilab Lab 3. | Course Type (Core (Wiscipline Specific Elective) — Course/Discipline SpecificElective/Generic Elective/ Vocational 4, | Pre-Requisite To study this course, a student must have prior knowledge of matrix and its operations. This course can be opted as an elective by the students of Computer Science only. 5. | Course Learning Outcomes | On successful completion of the course, the students shall be (CLO) able to: 1, Implement the concept of vectors & matrices in Scilabprogramming. 2. Able to apply the programming concept like branching, iteration & functions in a Scilab program, 3. Use the inbuilt functions of Scilab for trigonometric & statistical calculations. 4. Analyze and visualize the data through various 2-D and 3-D plots. 5. Apply Scilab tools in modelling and simulations. 6. Use Scicos visual editor (XcosySimulink Editor in various simulations of scientific importance. 6. | Credit Value Practical -1Credit 7. | Total Marks Max. Marks: 100 (30+70) | Min. Passing Marks: 35 PART B: Content of the Course No. of Lab Practicals (in hours per week): 2 Mouprg Per week Total No. of Labs: 15 Suggestive List of Practicals No. of Labs. Hi a1 Hand on practice & programs to be based on the following: 15 A) Matrix Construction and Manipulation: © Use followingset of functions for creating matrices: ‘and’, diag, eye, grand, int, linspace or‘, logspace, matrix, ones, rand, zeros, .*, © Extraction, Insertion, and Deletion in the matrix © Elementary Matrix Operations: Transpose, Multiplication, Kronecker product, ete © Use of string matrix functions: ascii, execstr, grep, part, msscanf msprinif, strindex, string, strcat, length, ete. Boolean Matrices hota ©) Basie Graphing: D) Modeling and Simulation in Scilab: E) SCICOS/Simulink ‘© Polynomial Matrices © Lists: list, ist, and mlist functions b Programming: © Creating files with extensions .sci and sce © Branching: © if then end © if then else end © Iterations © for = end © while end © Functions ©. function [, endfunction (, , © Calling a function ‘Through using keywords like - varargin, varargout © Input and Output Functions: Display of Variables (disp or print) © Formatted Input and Output funetions: mprintf, mfpringf; msprinif, mscanf, fscanf, msscanf, fprinfMat, fscanfMat, mgetl, mputl, mopen&melose. ¢ Input Output in Binary Mode: mget, mpui, mgetstr, mtell, mseek, meof, © Graphical User Interfacezaddmenu, delmenu, setmenu, or unsetmenu, x choose, x dialog, x choices, ete Scilab graphic commands and their visible properties: plot2d, plor2d(xy), plot2d2, plot2d3, plot2d4, elf, subplot, plot3d_fplot3déxy,f), param3d, " param3dl, paramfplot2d, sfgrayplot, sgrayplot, histplot, hist3d, isoview, legends, matplot, polarplot, xrect, xrects, xpoly, polys, xfpolvs, get, gdf) &gda(), sdaQ), etc. along with the graphics primitives. Application of the following tools will be discussed in the Lab: (i) Ordinary Differential Equations [ode/iype7, odeoptions(), ode_root] (ii) Boundary Value Problems [bvode] (iii) Difference Equations (iv) Differential Algebraic Equations [dasrt, dassl] (v) Hybrid Systems [odede] ¢ Familiarisation with Scicos/Simulink and its Blocks © Developing SIR Model for Spread of Disease © Source & Sink Palettes: © Sinusoid generator © Saw tooth generator © Square wave generator © Activation Clock (red clock) © Scope blocks and display blocks © Clock generator & Step generator © Linear and Non-Linear Palettes: © Sum (block) can be used to sum and/or subtract signals © Gain can be used to achieve multiplication by a constant © Integrator is used to time-integrate signals © PID isa PID controller (Proportional + Integral + Derivative) © Continuous fix delay (Time delay) represents a time delay © Continuous-time (Laplace transform) transfer function © Discrete-time (z-transform) transfer function © Unit delay block (with symbol 1/2 inside) which implement delay of one-time step. © Mathematical Expression — used to implement any Scilab function. © Product — used to implements multiplication or division. © Lookup tables — Interp implements interpolation or table lookup between tabular data, Branching Palettes: Select, Mux, Demux, Switch, Goto, Relay, ete © Event Palettes: Clock, Endblk, End, Halt, Andblk, SampleCLK, ete ¢ Demo Simulation: Bouncing Ball Model, ete © Standard demos: Simple demo of sinus & square wave, Signal builder, Fibonacci Numbers, Xcos/Simulink data types, If Block. Zero Crossing, Goto/From Block. _| PART C: Learning Resources Textbooks, Reference Books, Other Resourees Suggested Readings Textbooks: * Stephen L. Campbell, Jean-Philippe Chancelier and Ramine Nikoukhah, “Modeling and Simulation in Scilab/Scicos”, 2010, Springer + ACHUTHSANKAR S. NAIR, SCILAB (A Free Software To MATLAB), Kindle Edition, (2011). * Sandeep Nagar.Introduction to Scilab: For Engineers and Scientists, (2017), Kindle Edition, Apress * Satish Annigeri, Introduction to Scilab, 2009, scilab.org, Reference Books: * Rachna Verma & Arvind Kumar Verma, “Introduction to Scilab”, 2018, ebook on Kindle * Editors: Gomez, Claude (Ed.), Engineering and Scientific Computing with Scilab, ISBN 978-1-4612- 1584-4 Suggestive digital platform web Tinks htips:www.se ions Hho https://www.scilab.org/ statisties-and-probability hups:/www.seilab.org/introduction-scilah-gilberto-e-urroz, https:/hvww scilab.org/tutorials/tutorial-%f2%80%93-numerical-analysis-using-seilab-numerical- stability-and-conditioning htps://www scilab.org/tutorials/modeling-ode-3-different-approaches-%E2%80%93-part-1 hups:/vww.scilab.org/tutorials/modeling-ode-3-diflerent-approaches-%E2%80%93-part-2 hups://www scilab.org/programming-scilab hups:/ptel.ac.in/content/storave2/courses/113101002/downloads/partll/SSeilab.pdt hups://www.scilab.ore/tutorials/tutorial-V4E2%80%93-customizing-xcos-new-blocks-and-palette hups://spoken-tutorial.ore/watch/Scilab/Introduction }to+Scilab+and-its+benefits/English/ hutpsy/spoken-tutorial.org/watch/ScilabSelf*+learning+of Scilab+through+Spoken+ Tutorialy/Englis! hups:/spoken-tutorial.org/watch/Scilab/Installing/English hups:/spoken-tutorial.org/wateh/Scilab/Getting: Started/English/ hups://spoken-tutorial hutps://spoken-tutorial.org/watch/Scilab/Conditional-+Branching/English/ htips://spoken-tutorial.org/wateh/Scilab/Iteration/English/ bhuips://spoken-tutorial.ore/wateh/Scilab/Scriptstand+Functions/English’ hutps://spoken-tutorial, org/watch/ScilabyPlotting:2D+graphs/English/ hnps://spoken-tutorial.org/watch/Scilab/Xcos‘+Introduction/English/ butps://www.mathworks.com/help | Suggested equivalent online courses Swayam-NPTEL Course: Seilab Swayam-NPTEL Course: Computational Approach to Materials Science and Engineering PART D: Assessment and Evaluation Suggested Continuous Evaluation Methods: Internal Assessment Marks External Assessment Marks Class Interaction/Quiz Viva Voce on Practical Attendance Practical Record File 30 70 Assignments (Charts/Model/Seminars / Technology Dissemination/ Excursion/ Table Work / Exercise Assigned Lab visit/ Industrial Visit) Total Marks: 100 She ela

You might also like