equal
deleted
inserted
replaced
1 "{ Encoding: utf8 }" |
|
2 |
|
3 " |
1 " |
4 COPYRIGHT (c) 2007 by eXept Software AG |
2 COPYRIGHT (c) 2007 by eXept Software AG |
5 All Rights Reserved |
3 All Rights Reserved |
6 |
4 |
7 This software is furnished under a license and may be used |
5 This software is furnished under a license and may be used |
65 " |
63 " |
66 ! |
64 ! |
67 |
65 |
68 examples |
66 examples |
69 " |
67 " |
70 Notice, how the errors accumulate... |
68 Instance creation message in number: |
|
69 [exBegin] |
|
70 (10 +/- 1) |
|
71 [exEnd] |
|
72 |
|
73 arithmetic; notice, how the errors accumulate: |
|
74 [exBegin] |
|
75 (100 +/- 5) * 2 |
|
76 (100 +/- 5) * (100 +/- 10) |
|
77 (100 +/- 5) + (100 +/- 10) |
|
78 (100 +/- 5) - (100 +/- 10) |
|
79 [exEnd] |
|
80 |
|
81 again see, how the errors accumulate... |
71 [exBegin] |
82 [exBegin] |
72 |voltage current power| |
83 |voltage current power| |
73 |
84 |
74 voltage := MeasurementValue value:10 error:0.05. |
85 voltage := MeasurementValue value:10 error:0.05. |
75 current := MeasurementValue value:2 error:0.1. |
86 current := MeasurementValue value:2 error:0.1. |
117 |
128 |
118 ^ self new value:valueArg minValue:minArg maxValue:maxArg |
129 ^ self new value:valueArg minValue:minArg maxValue:maxArg |
119 |
130 |
120 "an order of magnitude error: |
131 "an order of magnitude error: |
121 |
132 |
122 MeasurementValue value:5 minValue:1 maxValue:10 |
133 MeasurementValue value:5 minValue:1 maxValue:10 |
123 " |
134 |
|
135 10 percent: |
|
136 |
|
137 MeasurementValue value:10 minValue:9 maxValue:11 |
|
138 " |
|
139 |
|
140 "Modified (comment): / 01-07-2017 / 19:28:32 / cg" |
124 ! ! |
141 ! ! |
125 |
142 |
126 !MeasurementValue class methodsFor:'constants'! |
143 !MeasurementValue class methodsFor:'constants'! |
127 |
144 |
128 unity |
145 unity |