1the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the string pi (String) = que j'aime à faire apprendre ce nombre utile aux sages
2copy constructors :
3the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the string pi (String) = que j'aime à faire apprendre ce nombre utile aux sages
4assignment operator = :
5the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the string pi (String) = que j'aime à faire apprendre ce nombre utile aux sages un = 1 pi = 3.1415926 i = (0,1) i (String) = une chaine
6accessors :
7i 7 1 3.1415926 (0,1) une chaine
8automatic cast :
9vn=3 vr=3.1415926 vj=(0,1) vs2=que j'aime à faire apprendre ce nombre utile aux sages
10vr=3 cn=(3,0) ci=(3.1415926,0)
11vn=3 vr=3.1415926 vj=(0,1) vs2=que j'aime à faire apprendre ce nombre utile aux sages
12test of assignment operator +=
13the int n = 4 the int n = 7 the int n = 8.5 the int n = (8.5,1) the real pi = 4.1415926 the real pi = 5.6415926 the real pi = 8.7831852 the real pi = (8.7831852,2) the imaginary i = (1,1) the imaginary i = (3,1) the imaginary i = (4,3) the imaginary i = (8,6) the string pi (String) = que j'aime à faire apprendre ce nombre utile aux sages other chars the string pi (String) = que j'aime à faire apprendre ce nombre utile aux sages other charsque j'aime à faire apprendre ce nombre utile aux sages other chars
14test of assignment operator -=
15the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the int n = 0 the int n = -1.5 the int n = (-1.5,-1) the real pi = 2.1415926 the real pi = 0.6415926 the real pi = -2.5 the real pi = (-2.5,-2) the imaginary i = (-1,1) the imaginary i = (-3,1) the imaginary i = (-4,-1) the imaginary i = (0,0)
16test of assignment operator *=
17the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the int n = 9 the int n = 13.5 the int n = (0,13.5) the real pi = 3.1415926 the real pi = 4.7123889 the real pi = 14.8044060966 the real pi = (0,29.6088121931) the imaginary i = (0,1) the imaginary i = (0,2) the imaginary i = (-4,2) the imaginary i = (12,-16) test of assignment operator /=
18the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the int n = 1 the int n = 0.666666666667 the int n = (0,-0.666666666667) the real pi = 3.1415926 the real pi = 2.09439506667 the real pi = 0.666666666667 the real pi = (0,-0.333333333333) the imaginary i = (0,1) the imaginary i = (0,0.5) the imaginary i = (0.2,0.1) the imaginary i = (1,0)
19test of operator +
20the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the int n = 4 the int n = 6 the int n = 4.5 the int n = (3,1) the int n = 6.1415926 the int n = (3,1) the real pi = 4.1415926 the real pi = 6.1415926 the real pi = 4.6415926 the real pi = (3.1415926,1) the real pi = 6.2831852 the real pi = (3.1415926,1) the imaginary i = (1,1) the imaginary i = (3,1) the imaginary i = (1.5,1) the imaginary i = (0,2) the imaginary i = (3.1415926,1) the imaginary i = (0,2) s2 (String) = a string a string
21test of operator -
22the int n = 3 the real pi = 3.1415926 the imaginary i = (0,1) the int n = 2 the int n = 0 the int n = 1.5 the int n = (3,-1) the int n = -0.1415926 the int n = (3,-1) the real pi = 2.1415926 the real pi = 0.1415926 the real pi = 1.6415926 the real pi = (3.1415926,-1) the real pi = 0 the real pi = (3.1415926,-1) the imaginary i = (-1,1) the imaginary i = (-3,1) the imaginary i = (-1.5,1) the imaginary i = (0,0) the imaginary i = (-3.1415926,1) the imaginary i = (0,0)
23test of operator *
24the int n = 3 the int n = 9 the int n = 4.5 the int n = (0,3) the int n = 9.4247778 the int n = (0,3) the real pi = 3.1415926 the real pi = 9.4247778 the real pi = 4.7123889 the real pi = (0,3.1415926) the real pi = 9.86960406437 the real pi = (0,3.1415926) the imaginary i = (0,1) the imaginary i = (0,3) the imaginary i = (0,1.5) the imaginary i = (-1,0) the imaginary i = (0,3.1415926) the imaginary i = (-1,0)
25test of operator /
26the int n = 3 the int n = 1 the int n = 2 the int n = (0,-3) the int n = 0.954929674841 the int n = (0,-3) the real pi = 3.1415926 the real pi = 1.04719753333 the real pi = 2.09439506667 the real pi = (0,-3.1415926) the real pi = 1 the real pi = (0,-3.1415926) the imaginary i = (0,1) the imaginary i = (0,0.333333333333) the imaginary i = (0,0.666666666667) the imaginary i = (1,0) the imaginary i = (0,0.318309891614) the imaginary i = (1,0)
27test of operator ==
28the int n = 3  == 1 ->0
29the int n = 3  == 3 ->1
30the int n = 3  == 1.5 ->0
31the int n = 3  == 3. ->1
32the int n = 3  == (0,1) ->0
33the int n = 3  == (3,0) ->1
34the int n = 3  == 'trois' ->0
35the int n = 3  == '3' ->1
36the int n = 3  == '3' ->1
37the int n = 3  == m ->1
38the int n = 3  == r ->0
39the int n = 3  == i ->0
40the real pi = 3.1415926  == 3 ->0
41the real pi = 3.1415926  == 1.5 ->0
42the real pi = 3.1415926  == 3.1415926 ->1
43the real pi = 3.1415926  == (0,1) ->0
44the real pi = 3.1415926  == (3.1415926,0) ->1
45the real pi = 3.1415926  == 'trois' ->0
46the real pi = 3.1415926  == '3.1415926' ->0
47the real pi = 3.1415926  == '3.1415926' ->0
48test of operator <=
49the int n = 3  <= 1 ->0
50the int n = 3  <= 3 ->1
51the int n = 3  <= 1.5 ->0
52the int n = 3  <= 3. ->1
53the int n = 3  <= m ->1
54the int n = 3  <= r ->1
55the real pi = 3.1415926  <= 3 ->0
56the real pi = 3.1415926  <= 1.5 ->0
57the real pi = 3.1415926  <= 3.1415926 ->1
58test of operator >=
59the int n = 3  >= 1 ->1
60the int n = 3  >= 3 ->1
61the int n = 3  >= 1.5 ->1
62the int n = 3  >= 3. ->1
63the int n = 3  >= m ->1
64the int n = 3  >= r ->0
65the real pi = 3.1415926  >= 3 ->1
66the real pi = 3.1415926  >= 1.5 ->1
67the real pi = 3.1415926  >= 3.1415926 ->1
68test of operator <
69the int n = 3  < 1 ->0
70the int n = 3  < 3 ->0
71the int n = 3  < 1.5 ->0
72the int n = 3  < 3. ->0
73the int n = 3  < m ->0
74the int n = 3  < r ->1
75the real pi = 3.1415926  < 3 ->0
76the real pi = 3.1415926  < 1.5 ->0
77the real pi = 3.1415926  < 3.1415926 ->0
78test of operator >
79the int n = 3  > 1 ->1
80the int n = 3  > 3 ->0
81the int n = 3  > 1.5 ->1
82the int n = 3  > 3. ->0
83the int n = 3  > m ->0
84the int n = 3  > r ->0
85the real pi = 3.1415926  > 3 ->1
86the real pi = 3.1415926  > 1.5 ->1
87the real pi = 3.1415926  > 3.1415926 ->0
88vecr=[ 1 1 1 1 1 1 1 1 1 1  ] -> pvecr (real vector) = [ 1 1 1 1 1 1 1 1 1 1  ]
89vecc=[ (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1)  ] -> pvecc (complex vector) = [ (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1)  ]
90matr (real matrix) =
91[                   1                 0.5       0.33333333333
92                 0.5       0.33333333333                0.25
93       0.33333333333                0.25                 0.2 ]
94matc (complex matrix) =
95[                                   (1,0)                                 (0.5,0)                       (0.33333333333,0)
96                                 (0.5,0)                       (0.33333333333,0)                                (0.25,0)
97                       (0.33333333333,0)                                (0.25,0)                                 (0.2,0) ]
98vecr (real vector) = [ 0.5 0.5 0.5 0.5 0.5  ]
99vecr (complex vector) = [ (0,1) (0,1) (0,1) (0,1) (0,1)  ]
100matr (real matrix) =
101[                   1                 0.5       0.33333333333
102                 0.5       0.33333333333                0.25
103       0.33333333333                0.25                 0.2 ]
104matc (complex matrix) =
105[                                   (1,0)                                 (0.5,0)                       (0.33333333333,0)
106                                 (0.5,0)                       (0.33333333333,0)                                (0.25,0)
107                       (0.33333333333,0)                                (0.25,0)                                 (0.2,0) ]
108pvecr = vector<Complex> -> pvecr (complex vector) = [ (1,2) (1,2) (1,2) (1,2) (1,2) (1,2) (1,2) (1,2) (1,2) (1,2)  ]
109pvecr = pvecc -> pvecc (complex vector) = [ (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1)  ]
110pvecr.get_cv() -> [ (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1)  ]
111 (string vector) = [ Gamma Sigma Sigma0  ]   (string vector) = [ eric nicolas  ]
112 (integer vector) = [ 10 20 30 40  ]   (integer vector) = [ 8 7 6  ]
113 (real vector) = [ 0.1 0.2 0.3  ]   (real vector) = [ 3.1415 2.718  ]
114test of class : Parameters
115one = 1 pi = 3.1415926 i = (0,1) material (String) = iron parameter1 = 1.4142135624 pars1->sqrt(2) = 1.4142135624
116pars1->sqrt(2) = 1.4142135624 parameter2 = 1.7320508076 parameter3 = (1,1)
117pars1->sqrt(2) = 1.4142135624 parameter2 = 1.7320508076 parameter3 = (1,1) parameter4 (String) = aluminium parameter5 (pointer) = not printed
118pars1->sqrt(2) = 1.4142135624 parameter2 = 1.7320508076 parameter3 = (1,1) parameter4 (String) = aluminium parameter5 (pointer) = not printed material (String) = iron
119pars1->sqrt(2) = 1.4142135624 parameter2 = 1.7320508076 parameter3 = (1,1) parameter4 (String) = aluminium parameter5 (pointer) = not printed material (String) = iron un (real vector) = [ 1 1 1 1 1  ]
120pars1->sqrt(2) = 1.4142135624 parameter2 = 1.7320508076 parameter3 = (1,1) parameter4 (String) = aluminium parameter5 (pointer) = not printed material (String) = iron un (real vector) = [ 1 1 1 1 1  ] hilbert matrix (complex matrix) =
121[                                   (1,0)                                 (0.5,0)                       (0.33333333333,0)
122                                 (0.5,0)                       (0.33333333333,0)                                (0.25,0)
123                       (0.33333333333,0)                                (0.25,0)                                 (0.2,0) ]
124sqrt(2) = 1.4142135624 parameter2 = 1.7320508076 sqrt(2) = 1.4142135624
125pars1("hilbert matrix") : hilbert matrix (complex matrix) =
126[                                   (1,0)                                 (0.5,0)                       (0.33333333333,0)
127                                 (0.5,0)                       (0.33333333333,0)                                (0.25,0)
128                       (0.33333333333,0)                                (0.25,0)                                 (0.2,0) ]
129pars1 contains p ? 1
130pars1 contains 'pi' ? 0
131pars1 contains 'pi' ? 0
132pars1('sqrt(2)')=1.4142135624
133pars1('material')=iron
134w= real 1 : 1
135 real 2 : 1
136 real 3 : 1
137 real 4 : 1
138 real 5 : 1
139 hmat=
140[                                   (1,0)                                 (0.5,0)                       (0.33333333333,0)
141                                 (0.5,0)                       (0.33333333333,0)                                (0.25,0)
142                       (0.33333333333,0)                                (0.25,0)                                 (0.2,0) ]
143Testing set method
144Testing get method
145pars2 one = 1 logarithm nepen = 2.718 i = (0,1) tree (String) = apple boolean = 1 vec_un (real vector) = [ 1 1 1 1 1  ]
1461
1472.718
148(0,1)
149apple
1501
151rose
152pars2.get("vec_un",vun) -> vun =  real 1 : 1
153 real 2 : 1
154 real 3 : 1
155 real 4 : 1
156 real 5 : 1
157
158