35 logicnor::logicnor () :
digital () {
37 setVariableSized (
true);
41 nr_double_t
v = getPropertyDouble (
"V");
42 nr_double_t
n = getSize () - 1;
44 for (x = 0,
i = 0;
i <
n;
i++) {
45 x += 2 / (1 - calcTransfer (
i));
51 nr_double_t
n = getSize () - 1;
53 for (
int k = 0; k <
n; k++) {
54 for (x = 0,
i = 0;
i <
n;
i++) {
55 x += 2 / (1 - calcTransfer (
i));
57 x *= (1 - calcTransfer (k));
58 g[k] = -2 * n * calcDerivative (k) / x /
x;
void calcDerivatives(void)
#define PROP_NO_SUBSTRATE