[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex Script_Functions.tex all_functions_table.tex

www lon-capa-cvs-allow@mail.lon-capa.org
Sun, 20 May 2007 21:07:02 -0000


www		Sun May 20 17:07:02 2007 EDT

  Modified files:              
    /loncom/html/adm/help/tex	Script_Functions.tex 
                             	all_functions_table.tex 
  Log:
  Document &cas()
  
  
Index: loncom/html/adm/help/tex/Script_Functions.tex
diff -u loncom/html/adm/help/tex/Script_Functions.tex:1.5 loncom/html/adm/help/tex/Script_Functions.tex:1.6
--- loncom/html/adm/help/tex/Script_Functions.tex:1.5	Tue Jul 18 11:26:41 2006
+++ loncom/html/adm/help/tex/Script_Functions.tex	Sun May 20 17:07:02 2007
@@ -17,7 +17,8 @@
 \item N\%M (modulo function)
 \item sinh(x), cosh(x), tanh(x) 
 \item asinh(x), acosh(x), atanh(x) 
-\item roundto(x,n) 
+\item roundto(x,n)
+\item cas(s,e) 
 \item web({}``a'',''b'',''c'') or web(a,b,c) 
 \item html({}``a'') or html(a) 
 \item j0(x), j1(x), jn(n,x), jv(y,x) 
Index: loncom/html/adm/help/tex/all_functions_table.tex
diff -u loncom/html/adm/help/tex/all_functions_table.tex:1.6 loncom/html/adm/help/tex/all_functions_table.tex:1.7
--- loncom/html/adm/help/tex/all_functions_table.tex:1.6	Fri Apr  1 13:32:42 2005
+++ loncom/html/adm/help/tex/all_functions_table.tex	Sun May 20 17:07:02 2007
@@ -41,7 +41,9 @@
 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 @@
  \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