1
2
3
4
5
6
7
8
|
%DESCRIPTION Sensitivity version of lin
% One port version for historical reasons
OPERATOR slin;
FOR ALL gain_causality, gain, causality, input, other_causality
LET slin(gain_causality, gain, other_causality, 1, input, causality, 1)
= lin(gain_causality, gain, other_causality, 1, input,
causality, 1);
|
>
>
|
1
2
3
4
5
6
7
8
9
10
|
%DESCRIPTION Sensitivity version of lin
in "$MTT_CRS/r/lin.cr";
% One port version for historical reasons
OPERATOR slin;
FOR ALL gain_causality, gain, causality, input, other_causality
LET slin(gain_causality, gain, other_causality, 1, input, causality, 1)
= lin(gain_causality, gain, other_causality, 1, input,
causality, 1);
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
sinput, causality, 2)
= lin(gain_causality, gain, other_causality, 1,
input, causality, 1);
% Port 2 - sensitivity
FOR ALL gain_causality, gain, sgain, causality, input, sinput, other_causality
LET slin(gain_causality, gain, sgain, other_causality, 2,
input, causality, 1,
sinput, causality, 2)
= lin(gain_causality, gain, other_causality, 1,
sinput, causality, 1)
+ sgain*df(lin(gain_causality, gain, other_causality, 1,
input, causality, 1), gain);
END;;
|
>
>
>
>
>
>
>
>
>
>
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
sinput, causality, 2)
= lin(gain_causality, gain, other_causality, 1,
input, causality, 1);
% Port 2 - sensitivity
FOR ALL gain_causality, gain, sgain, causality, input, sinput, other_causality
SUCH THAT sgain NEQ 0
LET slin(gain_causality, gain, sgain, other_causality, 2,
input, causality, 1,
sinput, causality, 2)
= lin(gain_causality, gain, other_causality, 1,
sinput, causality, 1)
+ sgain*df(lin(gain_causality, gain, other_causality, 1,
input, causality, 1), gain);
%% Don't compute the derivative in this case
FOR ALL gain_causality, gain, sgain, causality, input, sinput, other_causality
SUCH THAT sgain EQ 0
LET slin(gain_causality, gain, sgain, other_causality, 2,
input, causality, 1,
sinput, causality, 2)
= lin(gain_causality, gain, other_causality, 1,
sinput, causality, 1);
END;;
|