--- loncom/html/adm/help/tex/all_functions_table.tex 2005/04/01 18:32:42 1.6 +++ loncom/html/adm/help/tex/all_functions_table.tex 2007/05/20 21:07:02 1.7 @@ -41,7 +41,9 @@ Not in CAPA &\&prettyprint(\$x,'nn','opt Not in CAPA &\&dollarformat(\$x,'optional target') &Reformats \$x to have a \$ (or $\backslash$\$ if in tex mode) and to have , grouping thousands. The 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank. &  \\ \hline roundto(x,n) &\&roundto(\$x,\$n) &Rounds a real number to n decimal points. \$x and \$n can be pure numbers &  \\ - \hline + \hline +&\&cas(\$s,\$e)&Evaluates the expression \$e inside the symbolic algebra system \$s. Currently, only the Maxima +symbolic math system is implemented. Example: \&cas('maxima','6*7')&\\ \hline web(``a'',''b'',''c'') or web(a,b,c) &\&web(``a'',''b'',''c'') or \&web(\$a,\$b,\$c) &Returns either a, b or c depending on the output medium. a is for plain ASCII, b for tex output and c for html output &  \\ \hline html(``a'') or html(a) &\&html(``a'') or \&html(\$a) &Output only if the output mode chosen is in html format &  \\ @@ -88,7 +90,7 @@ capa\_id(), class(), section(), set(), p \hline name(), student\_number() &\&name(), \&student\_number() &Return the full name in the following format: lastname, firstname initial. Student\_number returns the student 9-alphanumeric string. If undefined, the functions return null. &  \\ \hline -NOT IMPLEMENTED IN CAPA &\&check\_status(\$partid) &Returns a number identifing the current status of a part. Ture values mean that a part is ``done'' (either unanswerable becuase of tries exhuastion, or correct) or a false value if a part can still be attempted. If \$part is unspecfied, it will check either the current $<$part$>$'s status or if outside of a $<$part$>$, check the status of previous $<$part$>$. The full set of return codes are: 'undef' means it is unattempted, 0 means it is attmpted and wrong but still has tries, 1 means it is marked correct, 2 means they have exceed maximum number of tries, 3 means it after the answer date &  \\ +NOT IMPLEMENTED IN CAPA &\&check\_status(\$partid) &Returns a number identifying the current status of a part. True values mean that a part is ``done'' (either unanswerable because of tries exhaustion, or correct) or a false value if a part can still be attempted. If \$part is unspecified, it will check either the current $<$part$>$'s status or if outside of a $<$part$>$, check the status of previous $<$part$>$. The full set of return codes are: 'undef' means it is unattempted, 0 means it is attempted and wrong but still has tries, 1 means it is marked correct, 2 means the user has exceeded the maximum number of tries, and 3 means it is after the answer date &  \\ \hline open\_date(), due\_date(), answer\_date() &\&open\_date(), \&due\_date(), \&answer\_date() &Problem open date, due date and answer date. The time is also included in 24-hr format. &Output format for time is changed slightly. If pass noon, it displays ..pm else it displays ..am. So 23:59 is displayed as 11:59 pm. \\ \hline