Ticket #4973: TestComplex.mo

File TestComplex.mo, 619 bytes (added by Francesco Casella, 6 years ago)
Line 
1package TestComplex
2 model Basic
3 Complex z, w, v, y, q(re = time, im = 2),r,s;
4 Real x;
5 equation
6 x = 2*time;
7 z = Complex(time);
8 w = Complex(time, 1);
9 v = z*w;
10 y = time*w;
11 r = q;
12 s = x*w;
13 end Basic;
14
15
16 model Reduced
17 Complex z, w, v, y, p, q(re = time, im = 2), r, s;
18 Real x;
19 equation
20 x = 2 * time;
21 z = Complex(time);
22 w = Complex(time, 1);
23 v = z * w;
24 y = time * w;
25 p = sqrt(3) * w;
26 r = q;
27 s = x * w;
28 end Reduced;
29
30
31
32
33
34
35
36 model Test
37 Basic M1;
38 Basic M2[2];
39 end Test;
40end TestComplex;