~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to tests/elem.dia.ref

  • 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
// Copyright INRIA
 
3
 
 
4
a=-1
 
5
 a  =
 
6
 
 
7
  - 1.  
 
8
 
 
9
b=1+%i
 
10
 b  =
 
11
 
 
12
    1. + i    
 
13
 
 
14
c=[]
 
15
 c  =
 
16
 
 
17
     []
 
18
 
 
19
 
 
20
abs(a)
 
21
 ans  =
 
22
 
 
23
    1.  
 
24
 
 
25
abs(b)
 
26
 ans  =
 
27
 
 
28
    1.4142136  
 
29
 
 
30
abs(c)
 
31
 ans  =
 
32
 
 
33
     []
 
34
 
 
35
 
 
36
real(a)
 
37
 ans  =
 
38
 
 
39
  - 1.  
 
40
 
 
41
real(b)
 
42
 ans  =
 
43
 
 
44
    1.  
 
45
 
 
46
real(c)
 
47
 ans  =
 
48
 
 
49
     []
 
50
 
 
51
 
 
52
imag(a)
 
53
 ans  =
 
54
 
 
55
    0.  
 
56
 
 
57
imag(b)
 
58
 ans  =
 
59
 
 
60
    1.  
 
61
 
 
62
imag(c)
 
63
 ans  =
 
64
 
 
65
     []
 
66
 
 
67
 
 
68
conj(a)
 
69
 ans  =
 
70
 
 
71
  - 1.  
 
72
 
 
73
conj(b)
 
74
 ans  =
 
75
 
 
76
    1. - i    
 
77
 
 
78
conj(c)
 
79
 ans  =
 
80
 
 
81
     []
 
82
 
 
83
 
 
84
int(a)
 
85
 ans  =
 
86
 
 
87
  - 1.  
 
88
 
 
89
int(b)
 
90
 ans  =
 
91
 
 
92
    1. + i    
 
93
 
 
94
int(c)
 
95
 ans  =
 
96
 
 
97
     []
 
98