Skip to content

Commit

Permalink
Break long line in 'cardinality' example
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 11, 2020
1 parent a240071 commit 4abb11b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chapters/operatorsandexpressions.tex
Expand Up @@ -858,10 +858,10 @@ \subsubsection{spatialDistribution}\label{spatialdistribution}
*/
if positiveVelocity then
out1 := interpolate(points, values, 1 - (x - x0));
out0 := values[1]; // similar to in0 but avoiding algebraic loop
out0 := values[1]; // Similar to in0 but avoiding algebraic loop.
else
out0 := interpolate(points, values, 0 - (x - x0));
out1 := values[end]; // similar to in1 but avoiding algebraic loop
out1 := values[end]; // Similar to in1 but avoiding algebraic loop.
end if;
when <acceptedStep> then
if x > x0 then
Expand Down Expand Up @@ -938,7 +938,8 @@ \subsubsection{cardinality (deprecated)}\label{cardinality-deprecated}
model Resistor
Pin p, n;
equation
assert(cardinality(p) > 0 and cardinality(n) > 0, "Connectors p and n of Resistor must be connected");
assert(cardinality(p) > 0 and cardinality(n) > 0,
"Connectors p and n of Resistor must be connected");
// Equations of resistor
...
end Resistor;
Expand Down

0 comments on commit 4abb11b

Please sign in to comment.