~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to examples/interface-tour/ex3456f.sce

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//matrix (double) created by C function
 
2
x1=ex3f();
 
3
if norm(x1-matrix((1:5*3),3,5)) > %eps then pause,end
 
4
 
 
5
//matrix (int) created by C function
 
6
x2=ex4f();
 
7
if norm(x2-matrix((1:5*3),3,5)) > %eps then pause,end
 
8
 
 
9
//Character string created by C function
 
10
x3=ex5f();
 
11
if x3<>"Scilab is ..." then pause,end
 
12
 
 
13
 
 
14
// all together 
 
15
 
 
16
[y1,y2,y3]=ex6f();
 
17
if y1<>x3 then pause,end
 
18
if norm(y2-x2) > %eps then pause,end
 
19
if norm(y3-x1) > %eps then pause,end