SlideShare uma empresa Scribd logo
1 de 27
Scilab: Computing Tool for Engineers
P. R. Naren
School of Chemical & Biotechnology
SASTRA University
E-mail: prnaren@scbt.sastra.edu
National Conference on Advances in Process Engineering
CAPE-2015
SASTRA University
Thanjavur, Tamilnadu 613 401 INDIA
9th October 2015
Progress Through Quality Education
Why are we here?
• To learn about Scilab
– Syntax
– Advantages
– Limitation
• To master programming skills
• To become efficient programmer
Familiarize
programming tool
Scilab
and
complement our
learning process !
9-Oct-15 Scilab - A Computing Tool for Engineers
2
Outline
• What is Scilab ?
• Basics
– Variables, Matrices,
– Std. I/O function
• Linear algebra
• Functions and Subroutines
• Control / Looping statements
• ODE
• File operations and GUI
• Plot Functions
9-Oct-15 Scilab - A Computing Tool for Engineers
3
Scilab
• Computing tool
– Scripts / programming environment
– Mathematical operations
A place where we can compute / calculate !!!
Numerically solve equations
• Free and Open source
http://www.scilab.org
– Free to download
– Lot of help material available over net
http://wiki.scilab.org/
http://help.scilab.org/docs/5.5.2/en_US/index.html
9-Oct-15 Scilab - A Computing Tool for Engineers
4
FOSSEE Project
• Free and Open Source Software for Education
• FOSSEE on Scilab: http://www.scilab.in
– Spoken Tutorials
10 min short videos on scilab functions http://spoken-tutorial.org/
Take workshop and attend objective test
IITB MHRD certificate
– Textbook Companion Project
http://www.scilab.in/Textbook_Companion_Project
 Code all solved examples of standard textbook
– Codes for most textbooks already available – Use and learn !!
Get paid ! Honorarium (INR 12k) from IITB
– Lab Migration Project
Convert lab exercises to Scilab
9-Oct-15 Scilab - A Computing Tool for Engineers
5
Familiarization
• Version 5.5.2
Console
Variable
List
Command
History
File
Browser
9-Oct-15 Scilab - A Computing Tool for Engineers
6
Basic Operators and Functions
• Operators : +, -, *, /, ^
• sqrt
• %e
• %i
• %pi
• log
– This is based on “e” -
Natural logarithm
• log10
• Colon “:” operator
• sin cos tan
– sind cosd tand
– asin acos atan
• factorial
• sum
• product
• Relational
– > >= < <= == ~= <>
• Logical
– & | ~
9-Oct-15 Scilab - A Computing Tool for Engineers
7
Variables
• No class/type definitions or declarations
-->a = 3;
-->a
a =
3.
-->a = "Workshop";
-->a
a =
Workshop
9-Oct-15 Scilab - A Computing Tool for Engineers
8
Matrices
• Every variable is n dimension in nature
– No need to specify the dimensions / length / size
h = [ 1 24 -5]
-->h = [1 24 -5]
h =
1. 24. - 5.
-->h = 1;
-->h(1,2) = 24;
-->h(1,3) = - 5;
-->h
h =
1. 24. - 5.
-->h = [1 24];
-->h(1,3) = - 5;
-->h
h =
1. 24. - 5.
9-Oct-15 Scilab - A Computing Tool for Engineers
9
Matrices Cont.
-->x = [2 -3 4; 5 10 24]
x =
2. - 3. 4.
5. 10. 24.
-->x = [2 -3 4];
-->x(2,:) = [5 10 24];
-->x
x =
2. - 3. 4.
5. 10. 24.
-->x(2,:) = [5 10 24];
-->x
x =
0. 0. 0.
5. 10. 24.
-->x(1,:)=[2 -3 4]
x =
2. - 3. 4.
5. 10. 24.
9-Oct-15 Scilab - A Computing Tool for Engineers
10
Script Files
• Script file
– .sce
– .sci
 e - executable i – functions
 e – main script files i - for functions or sub-rountines
• “//” comment a statement
– Good programing etiquettes !
• clc
• clear
9-Oct-15 Scilab - A Computing Tool for Engineers
11
Tutorials
• Tut1: Product of two nos.
• Tut2: Product of two nos. + user input
• Tut3: Matrix calculations based on user
choice
• Tut4: Matrix calculations based on user
choice with condition check
• Tut5: Spline curves
• Tut6: Building blocks
• Tut7: Equation of motion : v
• Tut8: Equation of motion: v and x
• Tut9: Roots of polynomial
• Tut10: Smart Input for Tut4
• Tut11: Write output into text file
• Tut12: Sum on n numbers
• Tut1: Print statements
• Tut2: Input function
• Tut3: Switch case
• Tut4: If then else
• Tut5: Plot functions
• Tut6: Function (Sub routines)
• Tut7: ODE function : I order
• Tut8: Simultaneous ODE : Two I order
• Tut9: Inbuilt function fsolve
• Tut10: GUI
• Tut11: File operations
• Tut12: For looping
9-Oct-15 Scilab - A Computing Tool for Engineers
12
Tutorial 1
Multiplication of two numbers (23.4 and 21) and get
their product
• Objective
– General programming structure
clear
clc
different sections in program
– Different options for output (result display on console)
disp
mprintf
Tutorial-1 Script File
9-Oct-15 Scilab - A Computing Tool for Engineers
13
Tutorial 2
Multiplication of two numbers (user input) and get their
product
• Objective
– input function
Obtain user input and then perform computation
 Makes program more generic
 reusable !!
Tutorial-2 Script File
9-Oct-15 Scilab - A Computing Tool for Engineers
14
Tutorial 3
Perform operations on matrix based on user choice
• Objective
– Control statement – “select – case – end”
Obtain two matrices from user
 Perform arithmetic operations on the matrices based on user
choice
– Add two matrix
– Matrix multiplication
– Element wise multiplication
Tutorial-3 Script File
9-Oct-15 Scilab - A Computing Tool for Engineers
15
Tutorial 4
Perform operations on matrix based on user choice
with conditional check
• Objective
– Control statement – “if - then – else - end”
Obtain two matrices from user
 Perform arithmetic operations on the matrices based on user
choice
– Add two matrix / Matrix multiplication / Element wise multiplication
Check whether the user entered value is within bounds / range !!
Tutorial-4 Script File
9-Oct-15 Scilab - A Computing Tool for Engineers
16
Tutorial 5
Graphical nature of functions
• Objective
– Plot functions
Generate equi-spaced data (data range)
 Generate splines
– Smooth polynomial
Plot the generated spline to know its nature
Tutorial-5 Script File
9-Oct-15 Scilab - A Computing Tool for Engineers
17
Tutorial 6
Building Block
• Objective
– Use of sub-routines or functions
 Define function once and call it wherever required
 Given dimensions of unit building block, how many blocks are
required to build a wall
Tutorial-6 Script File
9-Oct-15 Scilab - A Computing Tool for Engineers
18
Tutorial 7
Equation of motion : Velocity of a moving body under
constant linear acceleration
• Objective
– Solve first order ODE
 Equation of motion for a moving body under constant acceleration
Acceleration “a”
– Constant
– Variable
Tutorial-7 Script File
0 0t t u u 
9-Oct-15 Scilab - A Computing Tool for Engineers
19
Tutorial 8
Equation of motion : Velocity and Location of a moving
body under constant linear acceleration
• Objective
– Solve two first order ODE’s
 Equation of motion for a moving body under constant acceleration
Acceleration “a”
– Constant
– Variable
Tutorial-8 Script File
0 0t t u u 
9-Oct-15 Scilab - A Computing Tool for Engineers
20
Tutorial 9
Roots of Polynomial
• Objective
– To determine the roots of polynomial
 Find x such that f(x) = 0
 Quadratic equation
– Define f(x)
– Guess a value for xroot such that f (xroot) = 0
– Use in-built function fsolve to determine a actual root
Tutorial-9Script File
0 0t t u u 
2
0 1 2f (x) a a x a x  
9-Oct-15 Scilab - A Computing Tool for Engineers
21
Tutorial 10
Perform operations on matrix based on user choice
! Obtain data in Smart Way !
• Objective
– Use of simple GUI function to obtain data
Avoids error previously encountered in Tutorial 4 !
Tutorial-10 Script File
9-Oct-15 Scilab - A Computing Tool for Engineers
22
Tutorial 11
Write output data into a file
• Objective
– Use file I/O commands and write result into a file
 Water tank of known dimensions (B X W X H) at elevated position
Z from ground level
 Fluid of known density ( r )
Compute Total and specific potential energy
Tutorial11-File-operation.sce
tank tank
t
V BW H m V
U
U mg Z U
m
  r
 
9-Oct-15 Scilab - A Computing Tool for Engineers
23
Tutorial 12
Sum on N numbers
• Objective
– Use looping statement – For loop
 Determine the sum of N numbers
Tutorial12-File-operation.sce
N
i
i 1
S x

 
9-Oct-15 Scilab - A Computing Tool for Engineers
24
To Sum Up
• Scilab as computing tool for engineers
• Basic arithmetic operations
• Computing abilities in Scilab
• Generic programming etiquette
• Use Tutorials and Web documents
• Improvise, learn (re-learn / un-learn)
• Use Scilab to complement your engineering
education
9-Oct-15 Scilab - A Computing Tool for Engineers
25
Gratitude
• CAPE-2015 and IIChE Student Chapter
– For this wonderful opportunity
• PR Team for their registration drive !!
• Technical and Infra support team
• Audience
9-Oct-15 Scilab - A Computing Tool for Engineers
26
THANK YOU
A person who never made a mistake never tried
anything new
- Albert Einstein
- 1879 -1955
Entities must not be
multiplied beyond necessity
- William of Ockham
- 12th A.D.
9-Oct-15 Scilab - A Computing Tool for Engineers
27

Mais conteúdo relacionado

Mais procurados

Scilab Modelica conference 20150921
Scilab Modelica conference 20150921Scilab Modelica conference 20150921
Scilab Modelica conference 20150921Scilab
 
Scilab for real dummies
Scilab for real dummiesScilab for real dummies
Scilab for real dummiesSunu Pradana
 
Modelica Tutorial with PowerSystems: A tutorial for Modelica simulation
Modelica Tutorial with PowerSystems: A tutorial for Modelica simulationModelica Tutorial with PowerSystems: A tutorial for Modelica simulation
Modelica Tutorial with PowerSystems: A tutorial for Modelica simulation智哉 今西
 
ScilabTEC 2015 - Scilab
ScilabTEC 2015 - ScilabScilabTEC 2015 - Scilab
ScilabTEC 2015 - ScilabScilab
 
ScilabTEC 2015 - KIT
ScilabTEC 2015 - KITScilabTEC 2015 - KIT
ScilabTEC 2015 - KITScilab
 
Incubating Apache Hivemall
Incubating Apache HivemallIncubating Apache Hivemall
Incubating Apache HivemallMakoto Yui
 
R4ML: An R Based Scalable Machine Learning Framework
R4ML: An R Based Scalable Machine Learning FrameworkR4ML: An R Based Scalable Machine Learning Framework
R4ML: An R Based Scalable Machine Learning FrameworkAlok Singh
 
ScilabTEC 2015 - CEA/CESTA
ScilabTEC 2015 - CEA/CESTAScilabTEC 2015 - CEA/CESTA
ScilabTEC 2015 - CEA/CESTAScilab
 
Tech Days 2015: User Presentation Vermont Technical College
Tech Days 2015: User Presentation Vermont Technical CollegeTech Days 2015: User Presentation Vermont Technical College
Tech Days 2015: User Presentation Vermont Technical CollegeAdaCore
 
Hivemall meets Digdag @Hackertackle 2018-02-17
Hivemall meets Digdag @Hackertackle 2018-02-17Hivemall meets Digdag @Hackertackle 2018-02-17
Hivemall meets Digdag @Hackertackle 2018-02-17Makoto Yui
 
Nd4 j slides.pptx
Nd4 j slides.pptxNd4 j slides.pptx
Nd4 j slides.pptxAdam Gibson
 
Practical Aggregate Programming in Scala
Practical Aggregate Programming in ScalaPractical Aggregate Programming in Scala
Practical Aggregate Programming in ScalaRoberto Casadei
 
Innovative Solar Array Drive Assembly for CubeSat Satellite
Innovative Solar Array Drive Assembly for CubeSat SatelliteInnovative Solar Array Drive Assembly for CubeSat Satellite
Innovative Solar Array Drive Assembly for CubeSat SatelliteMichele Marino
 
Scientific instrument control with F#
Scientific instrument control with F#Scientific instrument control with F#
Scientific instrument control with F#ant_pt
 
Cilk - An Efficient Multithreaded Runtime System
Cilk - An Efficient Multithreaded Runtime SystemCilk - An Efficient Multithreaded Runtime System
Cilk - An Efficient Multithreaded Runtime SystemShareek Ahamed
 
Reactive Programming with RxJava
Reactive Programming with RxJavaReactive Programming with RxJava
Reactive Programming with RxJavaGrand Parade Poland
 

Mais procurados (20)

Scilab Modelica conference 20150921
Scilab Modelica conference 20150921Scilab Modelica conference 20150921
Scilab Modelica conference 20150921
 
Scilab for real dummies
Scilab for real dummiesScilab for real dummies
Scilab for real dummies
 
Modelica Tutorial with PowerSystems: A tutorial for Modelica simulation
Modelica Tutorial with PowerSystems: A tutorial for Modelica simulationModelica Tutorial with PowerSystems: A tutorial for Modelica simulation
Modelica Tutorial with PowerSystems: A tutorial for Modelica simulation
 
Sivp presentation
Sivp presentationSivp presentation
Sivp presentation
 
ScilabTEC 2015 - Scilab
ScilabTEC 2015 - ScilabScilabTEC 2015 - Scilab
ScilabTEC 2015 - Scilab
 
ScilabTEC 2015 - KIT
ScilabTEC 2015 - KITScilabTEC 2015 - KIT
ScilabTEC 2015 - KIT
 
Incubating Apache Hivemall
Incubating Apache HivemallIncubating Apache Hivemall
Incubating Apache Hivemall
 
R4ML: An R Based Scalable Machine Learning Framework
R4ML: An R Based Scalable Machine Learning FrameworkR4ML: An R Based Scalable Machine Learning Framework
R4ML: An R Based Scalable Machine Learning Framework
 
ScilabTEC 2015 - CEA/CESTA
ScilabTEC 2015 - CEA/CESTAScilabTEC 2015 - CEA/CESTA
ScilabTEC 2015 - CEA/CESTA
 
Tech Days 2015: User Presentation Vermont Technical College
Tech Days 2015: User Presentation Vermont Technical CollegeTech Days 2015: User Presentation Vermont Technical College
Tech Days 2015: User Presentation Vermont Technical College
 
Hivemall meets Digdag @Hackertackle 2018-02-17
Hivemall meets Digdag @Hackertackle 2018-02-17Hivemall meets Digdag @Hackertackle 2018-02-17
Hivemall meets Digdag @Hackertackle 2018-02-17
 
Nd4 j slides
Nd4 j slidesNd4 j slides
Nd4 j slides
 
Nd4 j slides.pptx
Nd4 j slides.pptxNd4 j slides.pptx
Nd4 j slides.pptx
 
Practical Aggregate Programming in Scala
Practical Aggregate Programming in ScalaPractical Aggregate Programming in Scala
Practical Aggregate Programming in Scala
 
Innovative Solar Array Drive Assembly for CubeSat Satellite
Innovative Solar Array Drive Assembly for CubeSat SatelliteInnovative Solar Array Drive Assembly for CubeSat Satellite
Innovative Solar Array Drive Assembly for CubeSat Satellite
 
Stack Data structure
Stack Data structureStack Data structure
Stack Data structure
 
Scientific instrument control with F#
Scientific instrument control with F#Scientific instrument control with F#
Scientific instrument control with F#
 
Cilk - An Efficient Multithreaded Runtime System
Cilk - An Efficient Multithreaded Runtime SystemCilk - An Efficient Multithreaded Runtime System
Cilk - An Efficient Multithreaded Runtime System
 
Callgraph analysis
Callgraph analysisCallgraph analysis
Callgraph analysis
 
Reactive Programming with RxJava
Reactive Programming with RxJavaReactive Programming with RxJava
Reactive Programming with RxJava
 

Destaque

Gpgpu tomoaki-fp16
Gpgpu tomoaki-fp16Gpgpu tomoaki-fp16
Gpgpu tomoaki-fp16tomoaki0705
 
ディジタル信号処理 課題解説 その8
ディジタル信号処理 課題解説 その8ディジタル信号処理 課題解説 その8
ディジタル信号処理 課題解説 その8noname409
 
アセンブラ漢文
アセンブラ漢文アセンブラ漢文
アセンブラ漢文kozossakai
 
Hough forestを用いた物体検出
Hough forestを用いた物体検出Hough forestを用いた物体検出
Hough forestを用いた物体検出MPRG_Chubu_University
 
Cloud frontの概要と勘所
Cloud frontの概要と勘所Cloud frontの概要と勘所
Cloud frontの概要と勘所Kei Hirata
 
機械学習モデルフォーマットの話:さようならPMML、こんにちはPFA
機械学習モデルフォーマットの話:さようならPMML、こんにちはPFA機械学習モデルフォーマットの話:さようならPMML、こんにちはPFA
機械学習モデルフォーマットの話:さようならPMML、こんにちはPFAShohei Hido
 
TensorFlowプログラミングと分類アルゴリズムの基礎
TensorFlowプログラミングと分類アルゴリズムの基礎TensorFlowプログラミングと分類アルゴリズムの基礎
TensorFlowプログラミングと分類アルゴリズムの基礎Etsuji Nakai
 
最先端NLP勉強会 “Learning Language Games through Interaction” Sida I. Wang, Percy L...
最先端NLP勉強会“Learning Language Games through Interaction”Sida I. Wang, Percy L...最先端NLP勉強会“Learning Language Games through Interaction”Sida I. Wang, Percy L...
最先端NLP勉強会 “Learning Language Games through Interaction” Sida I. Wang, Percy L...Yuya Unno
 
【関東GPGPU勉強会#4】GTX 1080でComputer Vision アルゴリズムを色々動かしてみる
【関東GPGPU勉強会#4】GTX 1080でComputer Visionアルゴリズムを色々動かしてみる【関東GPGPU勉強会#4】GTX 1080でComputer Visionアルゴリズムを色々動かしてみる
【関東GPGPU勉強会#4】GTX 1080でComputer Vision アルゴリズムを色々動かしてみるYasuhiro Yoshimura
 
20161203 cv 3_d_recon_tracking_eventcamera
20161203 cv 3_d_recon_tracking_eventcamera20161203 cv 3_d_recon_tracking_eventcamera
20161203 cv 3_d_recon_tracking_eventcameraKyohei Unno
 
関東コンピュータビジョン勉強会
関東コンピュータビジョン勉強会関東コンピュータビジョン勉強会
関東コンピュータビジョン勉強会nonane
 
畳み込みLstm
畳み込みLstm畳み込みLstm
畳み込みLstmtak9029
 
有名論文から学ぶディープラーニング 2016.03.25
有名論文から学ぶディープラーニング 2016.03.25有名論文から学ぶディープラーニング 2016.03.25
有名論文から学ぶディープラーニング 2016.03.25Minoru Chikamune
 
最近やった事とこれからやりたい事 2016年度年末版
最近やった事とこれからやりたい事 2016年度年末版最近やった事とこれからやりたい事 2016年度年末版
最近やった事とこれからやりたい事 2016年度年末版Netwalker lab kapper
 
ディジタル信号処理 課題解説 その9
ディジタル信号処理 課題解説 その9ディジタル信号処理 課題解説 その9
ディジタル信号処理 課題解説 その9noname409
 
続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)
続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)
続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)kozossakai
 
【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみた
【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみた【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみた
【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみたYasuhiro Yoshimura
 
深層学習とTensorFlow入門
深層学習とTensorFlow入門深層学習とTensorFlow入門
深層学習とTensorFlow入門tak9029
 
「機械学習 By スタンフォード大学」勉強会 2015.09.11
「機械学習 By スタンフォード大学」勉強会 2015.09.11「機械学習 By スタンフォード大学」勉強会 2015.09.11
「機械学習 By スタンフォード大学」勉強会 2015.09.11Minoru Chikamune
 
Chainer, Cupy入門
Chainer, Cupy入門Chainer, Cupy入門
Chainer, Cupy入門Yuya Unno
 

Destaque (20)

Gpgpu tomoaki-fp16
Gpgpu tomoaki-fp16Gpgpu tomoaki-fp16
Gpgpu tomoaki-fp16
 
ディジタル信号処理 課題解説 その8
ディジタル信号処理 課題解説 その8ディジタル信号処理 課題解説 その8
ディジタル信号処理 課題解説 その8
 
アセンブラ漢文
アセンブラ漢文アセンブラ漢文
アセンブラ漢文
 
Hough forestを用いた物体検出
Hough forestを用いた物体検出Hough forestを用いた物体検出
Hough forestを用いた物体検出
 
Cloud frontの概要と勘所
Cloud frontの概要と勘所Cloud frontの概要と勘所
Cloud frontの概要と勘所
 
機械学習モデルフォーマットの話:さようならPMML、こんにちはPFA
機械学習モデルフォーマットの話:さようならPMML、こんにちはPFA機械学習モデルフォーマットの話:さようならPMML、こんにちはPFA
機械学習モデルフォーマットの話:さようならPMML、こんにちはPFA
 
TensorFlowプログラミングと分類アルゴリズムの基礎
TensorFlowプログラミングと分類アルゴリズムの基礎TensorFlowプログラミングと分類アルゴリズムの基礎
TensorFlowプログラミングと分類アルゴリズムの基礎
 
最先端NLP勉強会 “Learning Language Games through Interaction” Sida I. Wang, Percy L...
最先端NLP勉強会“Learning Language Games through Interaction”Sida I. Wang, Percy L...最先端NLP勉強会“Learning Language Games through Interaction”Sida I. Wang, Percy L...
最先端NLP勉強会 “Learning Language Games through Interaction” Sida I. Wang, Percy L...
 
【関東GPGPU勉強会#4】GTX 1080でComputer Vision アルゴリズムを色々動かしてみる
【関東GPGPU勉強会#4】GTX 1080でComputer Visionアルゴリズムを色々動かしてみる【関東GPGPU勉強会#4】GTX 1080でComputer Visionアルゴリズムを色々動かしてみる
【関東GPGPU勉強会#4】GTX 1080でComputer Vision アルゴリズムを色々動かしてみる
 
20161203 cv 3_d_recon_tracking_eventcamera
20161203 cv 3_d_recon_tracking_eventcamera20161203 cv 3_d_recon_tracking_eventcamera
20161203 cv 3_d_recon_tracking_eventcamera
 
関東コンピュータビジョン勉強会
関東コンピュータビジョン勉強会関東コンピュータビジョン勉強会
関東コンピュータビジョン勉強会
 
畳み込みLstm
畳み込みLstm畳み込みLstm
畳み込みLstm
 
有名論文から学ぶディープラーニング 2016.03.25
有名論文から学ぶディープラーニング 2016.03.25有名論文から学ぶディープラーニング 2016.03.25
有名論文から学ぶディープラーニング 2016.03.25
 
最近やった事とこれからやりたい事 2016年度年末版
最近やった事とこれからやりたい事 2016年度年末版最近やった事とこれからやりたい事 2016年度年末版
最近やった事とこれからやりたい事 2016年度年末版
 
ディジタル信号処理 課題解説 その9
ディジタル信号処理 課題解説 その9ディジタル信号処理 課題解説 その9
ディジタル信号処理 課題解説 その9
 
続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)
続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)
続・ハロー・ワールド入門(オープンソースカンファレンス2016 Tokyo/Spring ライトニングトーク)
 
【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみた
【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみた【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみた
【第33回コンピュータビジョン勉強会@関東】OpenVX、 NVIDIA VisionWorks使ってみた
 
深層学習とTensorFlow入門
深層学習とTensorFlow入門深層学習とTensorFlow入門
深層学習とTensorFlow入門
 
「機械学習 By スタンフォード大学」勉強会 2015.09.11
「機械学習 By スタンフォード大学」勉強会 2015.09.11「機械学習 By スタンフォード大学」勉強会 2015.09.11
「機械学習 By スタンフォード大学」勉強会 2015.09.11
 
Chainer, Cupy入門
Chainer, Cupy入門Chainer, Cupy入門
Chainer, Cupy入門
 

Semelhante a Scilab: Computing Tool For Engineers

Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...
Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...
Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...Databricks
 
A Hands-on Intro to Data Science and R Presentation.ppt
A Hands-on Intro to Data Science and R Presentation.pptA Hands-on Intro to Data Science and R Presentation.ppt
A Hands-on Intro to Data Science and R Presentation.pptSanket Shikhar
 
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.pptComputer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.pptHermellaGashaw
 
Unit 3-pipelining &amp; vector processing
Unit 3-pipelining &amp; vector processingUnit 3-pipelining &amp; vector processing
Unit 3-pipelining &amp; vector processingvishal choudhary
 
Pitfalls of machine learning in production
Pitfalls of machine learning in productionPitfalls of machine learning in production
Pitfalls of machine learning in productionAntoine Sauray
 
CS304PC:Computer Organization and Architecture Session 33 demo 1 ppt.pdf
CS304PC:Computer Organization and Architecture  Session 33 demo 1 ppt.pdfCS304PC:Computer Organization and Architecture  Session 33 demo 1 ppt.pdf
CS304PC:Computer Organization and Architecture Session 33 demo 1 ppt.pdfAsst.prof M.Gokilavani
 
Parallel Processing Techniques Pipelining
Parallel Processing Techniques PipeliningParallel Processing Techniques Pipelining
Parallel Processing Techniques PipeliningRNShukla7
 
Fast federated SQL with Apache Calcite
Fast federated SQL with Apache CalciteFast federated SQL with Apache Calcite
Fast federated SQL with Apache CalciteChris Baynes
 
Porting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen II
Porting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen IIPorting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen II
Porting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen IIGeorge Markomanolis
 
Track A-2 基於 Spark 的數據分析
Track A-2 基於 Spark 的數據分析Track A-2 基於 Spark 的數據分析
Track A-2 基於 Spark 的數據分析Etu Solution
 
Fundamentals of Programming in C++.ppt
Fundamentals of Programming in C++.pptFundamentals of Programming in C++.ppt
Fundamentals of Programming in C++.pptAamirShahzad527024
 
SUTOL 2015 - Utilizing the OpenNTF Domino API
SUTOL 2015 - Utilizing the OpenNTF Domino APISUTOL 2015 - Utilizing the OpenNTF Domino API
SUTOL 2015 - Utilizing the OpenNTF Domino APIOliver Busse
 
Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...
Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...
Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...InfluxData
 
Lec16-CS110 Computational Engineering
Lec16-CS110 Computational EngineeringLec16-CS110 Computational Engineering
Lec16-CS110 Computational EngineeringSri Harsha Pamu
 
WiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitr
WiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitrWiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitr
WiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitrAnn Loraine
 
DAWN and Scientific Workflows
DAWN and Scientific WorkflowsDAWN and Scientific Workflows
DAWN and Scientific WorkflowsMatthew Gerring
 

Semelhante a Scilab: Computing Tool For Engineers (20)

Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...
Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...
Apache Spark Performance Troubleshooting at Scale, Challenges, Tools, and Met...
 
A Hands-on Intro to Data Science and R Presentation.ppt
A Hands-on Intro to Data Science and R Presentation.pptA Hands-on Intro to Data Science and R Presentation.ppt
A Hands-on Intro to Data Science and R Presentation.ppt
 
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.pptComputer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_09.ppt
 
Unit 3-pipelining &amp; vector processing
Unit 3-pipelining &amp; vector processingUnit 3-pipelining &amp; vector processing
Unit 3-pipelining &amp; vector processing
 
Pitfalls of machine learning in production
Pitfalls of machine learning in productionPitfalls of machine learning in production
Pitfalls of machine learning in production
 
CS304PC:Computer Organization and Architecture Session 33 demo 1 ppt.pdf
CS304PC:Computer Organization and Architecture  Session 33 demo 1 ppt.pdfCS304PC:Computer Organization and Architecture  Session 33 demo 1 ppt.pdf
CS304PC:Computer Organization and Architecture Session 33 demo 1 ppt.pdf
 
Parallel Processing Techniques Pipelining
Parallel Processing Techniques PipeliningParallel Processing Techniques Pipelining
Parallel Processing Techniques Pipelining
 
Fast federated SQL with Apache Calcite
Fast federated SQL with Apache CalciteFast federated SQL with Apache Calcite
Fast federated SQL with Apache Calcite
 
Porting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen II
Porting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen IIPorting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen II
Porting an MPI application to hybrid MPI+OpenMP with Reveal tool on Shaheen II
 
Track A-2 基於 Spark 的數據分析
Track A-2 基於 Spark 的數據分析Track A-2 基於 Spark 的數據分析
Track A-2 基於 Spark 的數據分析
 
Step By Step Guide to Learn R
Step By Step Guide to Learn RStep By Step Guide to Learn R
Step By Step Guide to Learn R
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
 
Lecture1
Lecture1Lecture1
Lecture1
 
Fundamentals of Programming in C++.ppt
Fundamentals of Programming in C++.pptFundamentals of Programming in C++.ppt
Fundamentals of Programming in C++.ppt
 
SUTOL 2015 - Utilizing the OpenNTF Domino API
SUTOL 2015 - Utilizing the OpenNTF Domino APISUTOL 2015 - Utilizing the OpenNTF Domino API
SUTOL 2015 - Utilizing the OpenNTF Domino API
 
Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...
Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...
Michael Hall [InfluxData] | Become an InfluxDB Pro in 20 Minutes | InfluxDays...
 
data structure
data structuredata structure
data structure
 
Lec16-CS110 Computational Engineering
Lec16-CS110 Computational EngineeringLec16-CS110 Computational Engineering
Lec16-CS110 Computational Engineering
 
WiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitr
WiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitrWiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitr
WiNGS 2014 Workshop 2 R, RStudio, and reproducible research with knitr
 
DAWN and Scientific Workflows
DAWN and Scientific WorkflowsDAWN and Scientific Workflows
DAWN and Scientific Workflows
 

Último

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Último (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

Scilab: Computing Tool For Engineers

  • 1. Scilab: Computing Tool for Engineers P. R. Naren School of Chemical & Biotechnology SASTRA University E-mail: prnaren@scbt.sastra.edu National Conference on Advances in Process Engineering CAPE-2015 SASTRA University Thanjavur, Tamilnadu 613 401 INDIA 9th October 2015 Progress Through Quality Education
  • 2. Why are we here? • To learn about Scilab – Syntax – Advantages – Limitation • To master programming skills • To become efficient programmer Familiarize programming tool Scilab and complement our learning process ! 9-Oct-15 Scilab - A Computing Tool for Engineers 2
  • 3. Outline • What is Scilab ? • Basics – Variables, Matrices, – Std. I/O function • Linear algebra • Functions and Subroutines • Control / Looping statements • ODE • File operations and GUI • Plot Functions 9-Oct-15 Scilab - A Computing Tool for Engineers 3
  • 4. Scilab • Computing tool – Scripts / programming environment – Mathematical operations A place where we can compute / calculate !!! Numerically solve equations • Free and Open source http://www.scilab.org – Free to download – Lot of help material available over net http://wiki.scilab.org/ http://help.scilab.org/docs/5.5.2/en_US/index.html 9-Oct-15 Scilab - A Computing Tool for Engineers 4
  • 5. FOSSEE Project • Free and Open Source Software for Education • FOSSEE on Scilab: http://www.scilab.in – Spoken Tutorials 10 min short videos on scilab functions http://spoken-tutorial.org/ Take workshop and attend objective test IITB MHRD certificate – Textbook Companion Project http://www.scilab.in/Textbook_Companion_Project  Code all solved examples of standard textbook – Codes for most textbooks already available – Use and learn !! Get paid ! Honorarium (INR 12k) from IITB – Lab Migration Project Convert lab exercises to Scilab 9-Oct-15 Scilab - A Computing Tool for Engineers 5
  • 7. Basic Operators and Functions • Operators : +, -, *, /, ^ • sqrt • %e • %i • %pi • log – This is based on “e” - Natural logarithm • log10 • Colon “:” operator • sin cos tan – sind cosd tand – asin acos atan • factorial • sum • product • Relational – > >= < <= == ~= <> • Logical – & | ~ 9-Oct-15 Scilab - A Computing Tool for Engineers 7
  • 8. Variables • No class/type definitions or declarations -->a = 3; -->a a = 3. -->a = "Workshop"; -->a a = Workshop 9-Oct-15 Scilab - A Computing Tool for Engineers 8
  • 9. Matrices • Every variable is n dimension in nature – No need to specify the dimensions / length / size h = [ 1 24 -5] -->h = [1 24 -5] h = 1. 24. - 5. -->h = 1; -->h(1,2) = 24; -->h(1,3) = - 5; -->h h = 1. 24. - 5. -->h = [1 24]; -->h(1,3) = - 5; -->h h = 1. 24. - 5. 9-Oct-15 Scilab - A Computing Tool for Engineers 9
  • 10. Matrices Cont. -->x = [2 -3 4; 5 10 24] x = 2. - 3. 4. 5. 10. 24. -->x = [2 -3 4]; -->x(2,:) = [5 10 24]; -->x x = 2. - 3. 4. 5. 10. 24. -->x(2,:) = [5 10 24]; -->x x = 0. 0. 0. 5. 10. 24. -->x(1,:)=[2 -3 4] x = 2. - 3. 4. 5. 10. 24. 9-Oct-15 Scilab - A Computing Tool for Engineers 10
  • 11. Script Files • Script file – .sce – .sci  e - executable i – functions  e – main script files i - for functions or sub-rountines • “//” comment a statement – Good programing etiquettes ! • clc • clear 9-Oct-15 Scilab - A Computing Tool for Engineers 11
  • 12. Tutorials • Tut1: Product of two nos. • Tut2: Product of two nos. + user input • Tut3: Matrix calculations based on user choice • Tut4: Matrix calculations based on user choice with condition check • Tut5: Spline curves • Tut6: Building blocks • Tut7: Equation of motion : v • Tut8: Equation of motion: v and x • Tut9: Roots of polynomial • Tut10: Smart Input for Tut4 • Tut11: Write output into text file • Tut12: Sum on n numbers • Tut1: Print statements • Tut2: Input function • Tut3: Switch case • Tut4: If then else • Tut5: Plot functions • Tut6: Function (Sub routines) • Tut7: ODE function : I order • Tut8: Simultaneous ODE : Two I order • Tut9: Inbuilt function fsolve • Tut10: GUI • Tut11: File operations • Tut12: For looping 9-Oct-15 Scilab - A Computing Tool for Engineers 12
  • 13. Tutorial 1 Multiplication of two numbers (23.4 and 21) and get their product • Objective – General programming structure clear clc different sections in program – Different options for output (result display on console) disp mprintf Tutorial-1 Script File 9-Oct-15 Scilab - A Computing Tool for Engineers 13
  • 14. Tutorial 2 Multiplication of two numbers (user input) and get their product • Objective – input function Obtain user input and then perform computation  Makes program more generic  reusable !! Tutorial-2 Script File 9-Oct-15 Scilab - A Computing Tool for Engineers 14
  • 15. Tutorial 3 Perform operations on matrix based on user choice • Objective – Control statement – “select – case – end” Obtain two matrices from user  Perform arithmetic operations on the matrices based on user choice – Add two matrix – Matrix multiplication – Element wise multiplication Tutorial-3 Script File 9-Oct-15 Scilab - A Computing Tool for Engineers 15
  • 16. Tutorial 4 Perform operations on matrix based on user choice with conditional check • Objective – Control statement – “if - then – else - end” Obtain two matrices from user  Perform arithmetic operations on the matrices based on user choice – Add two matrix / Matrix multiplication / Element wise multiplication Check whether the user entered value is within bounds / range !! Tutorial-4 Script File 9-Oct-15 Scilab - A Computing Tool for Engineers 16
  • 17. Tutorial 5 Graphical nature of functions • Objective – Plot functions Generate equi-spaced data (data range)  Generate splines – Smooth polynomial Plot the generated spline to know its nature Tutorial-5 Script File 9-Oct-15 Scilab - A Computing Tool for Engineers 17
  • 18. Tutorial 6 Building Block • Objective – Use of sub-routines or functions  Define function once and call it wherever required  Given dimensions of unit building block, how many blocks are required to build a wall Tutorial-6 Script File 9-Oct-15 Scilab - A Computing Tool for Engineers 18
  • 19. Tutorial 7 Equation of motion : Velocity of a moving body under constant linear acceleration • Objective – Solve first order ODE  Equation of motion for a moving body under constant acceleration Acceleration “a” – Constant – Variable Tutorial-7 Script File 0 0t t u u  9-Oct-15 Scilab - A Computing Tool for Engineers 19
  • 20. Tutorial 8 Equation of motion : Velocity and Location of a moving body under constant linear acceleration • Objective – Solve two first order ODE’s  Equation of motion for a moving body under constant acceleration Acceleration “a” – Constant – Variable Tutorial-8 Script File 0 0t t u u  9-Oct-15 Scilab - A Computing Tool for Engineers 20
  • 21. Tutorial 9 Roots of Polynomial • Objective – To determine the roots of polynomial  Find x such that f(x) = 0  Quadratic equation – Define f(x) – Guess a value for xroot such that f (xroot) = 0 – Use in-built function fsolve to determine a actual root Tutorial-9Script File 0 0t t u u  2 0 1 2f (x) a a x a x   9-Oct-15 Scilab - A Computing Tool for Engineers 21
  • 22. Tutorial 10 Perform operations on matrix based on user choice ! Obtain data in Smart Way ! • Objective – Use of simple GUI function to obtain data Avoids error previously encountered in Tutorial 4 ! Tutorial-10 Script File 9-Oct-15 Scilab - A Computing Tool for Engineers 22
  • 23. Tutorial 11 Write output data into a file • Objective – Use file I/O commands and write result into a file  Water tank of known dimensions (B X W X H) at elevated position Z from ground level  Fluid of known density ( r ) Compute Total and specific potential energy Tutorial11-File-operation.sce tank tank t V BW H m V U U mg Z U m   r   9-Oct-15 Scilab - A Computing Tool for Engineers 23
  • 24. Tutorial 12 Sum on N numbers • Objective – Use looping statement – For loop  Determine the sum of N numbers Tutorial12-File-operation.sce N i i 1 S x    9-Oct-15 Scilab - A Computing Tool for Engineers 24
  • 25. To Sum Up • Scilab as computing tool for engineers • Basic arithmetic operations • Computing abilities in Scilab • Generic programming etiquette • Use Tutorials and Web documents • Improvise, learn (re-learn / un-learn) • Use Scilab to complement your engineering education 9-Oct-15 Scilab - A Computing Tool for Engineers 25
  • 26. Gratitude • CAPE-2015 and IIChE Student Chapter – For this wonderful opportunity • PR Team for their registration drive !! • Technical and Infra support team • Audience 9-Oct-15 Scilab - A Computing Tool for Engineers 26
  • 27. THANK YOU A person who never made a mistake never tried anything new - Albert Einstein - 1879 -1955 Entities must not be multiplied beyond necessity - William of Ockham - 12th A.D. 9-Oct-15 Scilab - A Computing Tool for Engineers 27

Notas do Editor

  1. Console: Simple arithmetic operations can be directly performed on console / Output is displayed on console Command history stores all commands from console ! Variable browser window lists all the variable that are currently in use
  2. Semi-colon “;” is used to suppress printing / display on the command window. For instance, command “a=3” assigns 3 to variable “a” and also displays the output on console In contrast, “a=3;” assigns 3 to variable a but suppress the display on console
  3. Q: How to retrieve the elements of matrix? Extraction of elements from matrix Colon “:” operator