Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed = to := in algorithms #2354

Merged
merged 1 commit into from Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion chapters/classes.tex
Expand Up @@ -865,7 +865,7 @@ \section{Specialized Classes}\doublelabel{specialized-classes}
input Complex c2;
output Complex result
algorithm
result = Complex(re=c1.re*c2.re - c1.im*c2.im,
result := Complex(re=c1.re*c2.re - c1.im*c2.im,
im=c1.re*c2.im + c1.im*c2.re);
end '*';
end Complex;
Expand Down
2 changes: 1 addition & 1 deletion chapters/connectors.tex
Expand Up @@ -1158,7 +1158,7 @@ \subsubsection{An Overdetermined Connector for 3-dimensional Mechanical Systems}
protected
Orientation R_rel "Relative Rotation from frame 1 to frame 2";
algorithm
R_rel = R2*transpose(R1);
R_rel := R2*transpose(R1);
/* If frame_1 and frame_2 are identical, R_rel must be
the unit matrix. If they are close together, R_rel can be
linearized yielding:
Expand Down
4 changes: 2 additions & 2 deletions chapters/functions.tex
Expand Up @@ -351,7 +351,7 @@ \section{Pure Modelica Functions}\doublelabel{pure-modelica-functions}
input Real x;
output Real y;
algorithm
y = a0 + a1*x;
y := a0 + a1*x;
end evaluateLinear;

impure function receiveRealSignal // impure function
Expand Down Expand Up @@ -543,7 +543,7 @@ \subsection{Functional Input Arguments to Functions}\doublelabel{functional-inpu
function Parabola
extends Integrand;
algorithm
y = x*x;
y := x*x;
end Parabola;
area = quadrature(0, 1, Parabola);
\end{lstlisting}
Expand Down