Skip to content

Commit

Permalink
Use lower case 'add'
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Aug 14, 2023
1 parent d6e6ac1 commit fb2660c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/functions.tex
Expand Up @@ -875,14 +875,14 @@ \subsection{Automatic Vectorization}\label{scalar-functions-applied-to-array-arg
= [sin(1), sin(2); sin(3), sin(4)]
\end{lstlisting}
\begin{lstlisting}[language=modelica]
function Add
function add
input Real e1, e2;
output Real sum1;
algorithm
sum1 := e1 + e2;
end Add;
end add;
\end{lstlisting}
\lstinline!Add(1, [1,2,3])! adds one to each of the elements of the second argument giving the result \lstinline![2,3,4]!.
\lstinline!add(1, [1,2,3])! adds one to each of the elements of the second argument giving the result \lstinline![2,3,4]!.
For built-in operators one can do this with \lstinline!1 .+ [1,2,3]! but not with \lstinline!1 + [1,2,3]!, because the rules for the built-in operators are more restrictive.
\end{example}

Expand Down

0 comments on commit fb2660c

Please sign in to comment.