version 1.5, 2016/01/03 04:51:10
|
version 1.6, 2016/08/28 20:35:37
|
Line 3
|
Line 3
|
\textbf{How to deal with multi-part problems} |
\textbf{How to deal with multi-part problems} |
|
|
Often, there are several parts in a specific problem. For example, a |
Often, there are several parts in a specific problem. For example, a |
problem with four parts may have parts 0, 11, 12, and 13. For a |
problem with three parts may have parts 0, 11, 12, and 13, where |
|
part 0, is the part ID reserved for the problem as a whole. For a |
general spreadsheet, it is often desirable to sum up all of these |
general spreadsheet, it is often desirable to sum up all of these |
parts, while not knowing how many parts there are as the spreadsheet |
parts, while not knowing how many parts there are as the spreadsheet |
is written. |
is written. |
Line 13 expression over all symbolic names that
|
Line 14 expression over all symbolic names that
|
\index{EXPANDSUM} \texttt{[\&EXPANDSUM(VARNAME;expression)]}. |
\index{EXPANDSUM} \texttt{[\&EXPANDSUM(VARNAME;expression)]}. |
|
|
\noindent |
\noindent |
For example, for the above assessment with four parts,\\ |
For example, for the above assessment with three parts,\\ |
|
|
\noindent |
\noindent |
\texttt{\&EXPANDSUM(}\texttt{\textbf{PART}}\texttt{;parameter\_}\texttt{\textbf{PART}}\texttt{\_weight{*}stores\_}\texttt{\textbf{PART}}\texttt{\_awarded)}\\ |
\texttt{\&EXPANDSUM(}\texttt{\textbf{PART}}\texttt{;parameter\_}\texttt{\textbf{PART}}\texttt{\_weight{*}stores\_}\texttt{\textbf{PART}}\texttt{\_awarded)}\\ |
Line 26 would become\\
|
Line 27 would become\\
|
\texttt{parameter\_11\_weight{*}stores\_11\_awarded +}~\\ |
\texttt{parameter\_11\_weight{*}stores\_11\_awarded +}~\\ |
\texttt{parameter\_12\_weight{*}stores\_12\_awarded +}~\\ |
\texttt{parameter\_12\_weight{*}stores\_12\_awarded +}~\\ |
\texttt{parameter\_13\_weight{*}stores\_13\_awarded +}~\\ |
\texttt{parameter\_13\_weight{*}stores\_13\_awarded +}~\\ |
% bold does not show |
where \textbf{bolded text} is used to highlight (PDF version of manual excluded) what the \texttt{\&EXPANDSUM} function is doing.\\ |
% where \textbf{bolded text} is used to highlight what the \texttt{\&EXPANDSUM} function is doing. |
|
|
|
|
|
\noindent |
\noindent |