This is the call from the xml to render it:

<center> <algebra>$function</algebra></center>

The algebra element has its own syntax. I do not know if it is documented, but we can look at the code at
http://source.lon-capa.org/cgi-bin/cvsweb.cgi/loncom/xml/algebra/AlgParser.pm?rev=1.18

The regular expressions used to recognized functions are:
my $trigfname = '(?:(?:a(?:rc)?)?(?:sin|cos|tan|sec|csc|cot)h?)';
my $otherfunc = '(?:exp|abs|logten|log|ln|sqrt|sgn|step|fact|int|lim|fun[a-zA-Z])';

There is no sum. To display a sum, you could use the TeX syntax as Gerd suggested, within <m>$ $</m>.

Damien
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

Reply via email to