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

« back to all changes in this revision

Viewing changes to examples/interface-tour/ex3456c.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
 
 
2
//matrix (double) created by C function
 
3
x1=ex3c();
 
4
if norm(x1-matrix((1:5*3),3,5)) > %eps then pause,end
 
5
 
 
6
//matrix (int) created by C function
 
7
x2=ex4c();
 
8
if norm(x2-matrix((1:5*3),3,5)) > %eps then pause,end
 
9
 
 
10
//Character string created by C function
 
11
x3=ex5c();
 
12
if x3<>"Scilab is ..." then pause,end
 
13
 
 
14
// all together 
 
15
 
 
16
[y1,y2,y3]=ex6c();
 
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
 
20
 
 
21