Annotation of loncom/html/adm/help/tex/Spreadsheet_Op_On_All_Problem_Parts.tex, revision 1.2

1.2     ! bowersj2    1: \label{Spreadsheet_Op_On_All_Problem_Parts}
1.1       bowersj2    2: Often, there are several parts in a specific problem. For example, a
                      3: problem with three parts would have parts 0, 11, 12, and 13. For a
                      4: general spreadsheet, it is not often desirable to sum up all of these
                      5: parts, while not knowing how many parts there are as the spreadsheet
                      6: is written.
                      7: 
                      8: The spreadsheet has a preprocessor which an expand a symbolic
                      9: expression over all symbolic names that fit. The general syntax is
                     10: \texttt{[\&EXPANDSUM(VARNAME;expression)]}. 
                     11: 
                     12: For example, for the above assessment with three parts,
                     13: 
                     14: \texttt{[\&EXPANDSUM(\textbf{PART};parameter_\textbf{PART}_weight*stores_\textbf{PART}_awarded)]}
                     15: 
                     16: would become
                     17: 
                     18: \texttt{parameter_\textbf{0}_weight*stores_\textbf{0}_awarded +
                     19: parameter_\textbf{11}_weight*stores_\textbf{11}_awarded +
                     20: parameter_\textbf{12}_weight*stores_\textbf{12}_awarded +
                     21: parameter_\textbf{13}_weight*stores_\textbf{13}_awarded}
                     22: 
                     23: where \textbf{bolded text} is used to highlight what the
                     24: \texttt{\&EXPANDSUM} function is doing.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>