SDA Operator’s Manual
SDA-OM-E Rev H
255
Order of Calculations
Operations are performed in the following order:
1. Contents of brackets
2. Exponentiation
3. Division
and
multiplication
4. Addition
and
subtraction
If there is any doubt as to how the calculation will be done, use brackets. These will also make
the order of the calculations clear to any reader of the program, which is desirable if you are to
give it to a customer, who will want to know what was intended.
Here are some examples of the uses of brackets:
Brackets are worked out before any other operations are performed.
Use brackets to force the result you want, and also to clarify a
calculation.
A 1 1 1 1 1 1 1 1 255 0 1 0 1 1 0 1 0 90
(B OR C) AND (D OR E)
B 1 1 1 1 0 0 0 0 240 0 0 0 0 0 0 0 0 0
B OR (C AND D) OR E
C 1 0 1 0 1 0 1 0 130 1 1 1 1 1 0 1 0 250 B OR (C AND (D OR E))
D 0 1 0 1 0 1 0 1 85 0 1 0 1 1 1 1 1 95
((B OR C) AND D) OR E)
E 0 0 0 0 1 1 1 1 15
F 0 0 0 0 0 0 0 0 0
A 7
315 A * B * (C / D) * E * F
B 6
8.75 A * B * C / (D * E * F)
C 5
35
A * B * (C / (D * E) ) * F
D 4
E 3
F 2
Check these results to see whether any errors, deliberate or otherwise, have been introduced.
VBS Controls
Do
. . . .
Loop
Do Until
. . . .
Loop
. . . .
Do
. . . .
Loop Until . . . .
Do While
. . . .
Loop
. . . .
Do
. . . .
Loop While
Exit Do
For . . . Next Exit For
GoTo__
This is not allowed in instrument VBS.
If . . . . Then . . . . _' On one line
__
If . . . Then
ElseIf . . . Then
End If
Содержание SDA
Страница 1: ...SERIAL DATA ANALYZER OPERATOR S MANUAL December 2007 ...
Страница 148: ...Standard Horizontal Parameter Help Markers Standard Vertical Parameter Help Markers 148 SDA OM E Rev H ...
Страница 223: ...SDA Operator s Manual Example 6 SDA OM E Rev H 223 ...
Страница 225: ...SDA Operator s Manual SDA OM E Rev H 225 ...
Страница 232: ...In this figure the panel has been pasted onto the Excel sheet for comparison 232 SDA OM E Rev H ...
Страница 243: ...SDA Operator s Manual This example used the CORREL Array1 Array2 function of Excel as depicted below SDA OM E Rev H 243 ...
Страница 246: ...246 SDA OM E Rev H ...
Страница 247: ...SDA Operator s Manual Excel Example 5 Using a Surface Plot SDA OM E Rev H 247 ...
Страница 279: ...SDA Operator s Manual Convolving two signals SDA OM E Rev H 279 ...
Страница 310: ...The jitter wizard is accessed from the Analysis drop down menu 310 SDA OM E Rev H ...
Страница 327: ...SDA Operator s Manual SDA OM E Rev H 327 ...
Страница 328: ...328 SDA OM E Rev H ...
Страница 394: ...394 SDA OM E Rev H ...
Страница 395: ...SDA Operator s Manual SDA OM E Rev H 395 ...