Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
17Activity
0 of .
Results for:
No results containing your search query
P. 1
Scilab Primer

Scilab Primer

Ratings:

4.33

(3)
|Views: 4,752 |Likes:
Published by richx7

More info:

Published by: richx7 on Jun 24, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2013

pdf

text

original

 
Introduction to Scilab
Graeme Chandler
Mathematics DepartmentThe University of Queensland
Stephen Roberts
Department of MathematicsAustralian National UniversityAugust 7, 2002
Contents
1.1 Learning Scilab. . . . . . . . . . . . . . . . . . . . . . . . . . 31.2 Further References. . . . . . . . . . . . . . . . . . . . . . . . 41.3 Starting Scilab. . . . . . . . . . . . . . . . . . . . . . . . . . 41.4 Typing Commands. . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Basic Arithmetic.. . . . . . . . . . . . . . . . . . . . . . . . . 62.2 Complex Numbers.. . . . . . . . . . . . . . . . . . . . . . . . 7
3.1 The Help Command. . . . . . . . . . . . . . . . . . . . . . . 83.2 The Help Window. . . . . . . . . . . . . . . . . . . . . . . . 93.3 Help on the Web. . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1 Adding a Line. . . . . . . . . . . . . . . . . . . . . . . . . . . 114.2 Hints for Good Graphs. . . . . . . . . . . . . . . . . . . . . . 114.2.1 Plot data as points. . . . . . . . . . . . . . . . . . . . 124.2.2 Choose a good scale. . . . . . . . . . . . . . . . . . . 13
5.1 Solving Equations.. . . . . . . . . . . . . . . . . . . . . . . . 145.2 Matrices and Vectors.. . . . . . . . . . . . . . . . . . . . . . . 165.3 Creating Matrices. . . . . . . . . . . . . . . . . . . . . . . . . 175.4 Systems of Equations. . . . . . . . . . . . . . . . . . . . . . . 181
 
7.1 Function Plotting. . . . . . . . . . . . . . . . . . . . . . . . . 217.2 Component Arithmetic. . . . . . . . . . . . . . . . . . . . . . 227.3 Printing Graphs. . . . . . . . . . . . . . . . . . . . . . . . . . 237.4 Graphs in Reports. . . . . . . . . . . . . . . . . . . . . . . . 247.5 Saving Graphs. . . . . . . . . . . . . . . . . . . . . . . . . . . 257.6 Advanced Graphics. . . . . . . . . . . . . . . . . . . . . . . . 252
 
1 Introduction.
High level scientific computing environments such as Matlab, Rlab, Octaveand Scilab are an enjoyable way to solve problems numerically. The compu-tational problems arising in most undergraduate courses can be solved muchmore quickly using these environments, than with the standard program-ming languages (Fortran, indexFortran C, Java, etc.). It is particularly easyto generate some results, draw graphs to look at the interesting features, andthen explore the problem further. By minimizing human time, it is partic-ularly useful in the initial investigation of real problems; even though theymay eventually have to be solved using more computationally efficient wayson super computers.Matlab is by far the most popular of these environments, it has a largeuser base and many resources are available on the Web. Indeed a versionof this document “An Introduction to Matlab” is available on the web at
.The other three packages are public domain or open source packages. Inthis document we concentrate on Scilab. Scilab provides an environmentwhich uses matrices (both full and sparse) as it basic data type. Algorithmsare available for the numerical solution of differential equations, optimisationproblems, interpolation and quadrature. High quality fortran and C codescan be easily linked into Scilab. The package provides excellent 2 and 3dimensional graphics which can be readily incorporated into reports andpublications. Simple user interfaces can be built using Scilab. The packageis also available for all standard machines, PC’s, Macs, LINUX and Unix.All these attributes (and more) lead us to use Scilab as the basic packagefor our computational science courses at the Australian National University.Indeed the ability for students to have access to the software on their homemachines is the main reason for a choice of open software. We feel that Scilabprovides the best compromise of free software and a sophisticated range of builtin facilities.
1.1 Learning Scilab
This introduction gives a quick way to become familiar with the most im-portant parts of Scilab. The first five sections emphasize simple arithmetic,matrix-vector operations (including solving systems of equations), and graph-ing functions and data. The later sections describe some more advancedfeatures, including 3D graphics. There are also some suggestions about us-ing Scilab to do larger projects, and including Scilab results and graphs inreports.3

Activity (17)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
c_nghia liked this
Adrian Buhu liked this
Rainier Trinidad liked this
sto.milos4886 liked this
tzolkin61 liked this
dbleak liked this
jaroslavito liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->