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

« back to all changes in this revision

Viewing changes to examples/interface-tour-so/ex02.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
// C 
 
2
//--------------------------------------------------
 
3
 
 
4
a=ex2c_1([1,2,3]+%i*[4,5,5]);
 
5
if norm(a-2*[1,2,3]-%i*[4,5,5]*3) > %eps then pause,end
 
6
 
 
7
a=ex2c_1([1,2,3]);
 
8
if norm(a-2*[1,2,3]) > %eps then pause,end
 
9
 
 
10
// Complex matrix as complex array 
 
11
 
 
12
a=ex2c_2([1,2,3]+%i*[4,5,5]);
 
13
if norm(a-2*[1,2,3]-%i*[4,5,5]*3) > %eps then pause,end
 
14
 
 
15
 
 
16
 
 
17
a=ex2f_1([1,2,3]+%i*[4,5,5]);
 
18
if norm(a-2*[1,2,3]-%i*[4,5,5]*3) > %eps then pause,end
 
19
 
 
20
a=ex2f_1([1,2,3]);
 
21
if norm(a-2*[1,2,3]) > %eps then pause,end
 
22
 
 
23
// Complex matrix as complex array 
 
24
 
 
25
a=ex2f_2([1,2,3]+%i*[4,5,5]);
 
26
if norm(a-2*[1,2,3]-%i*[4,5,5]*3) > %eps then pause,end
 
27
 
 
28
 
 
29
 
 
30
 
 
31
 
 
32
 
 
33
 
 
34
 
 
35
 
 
36
 
 
37
 
 
38
 
 
39
 
 
40
 
 
41
 
 
42
 
 
43
 
 
44