Annotation of doc/homework/homework6.html, revision 1.1
1.1 ! ng 1: <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
! 2: <html>
! 3: <head>
! 4: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! 5: <meta name="ProgId" content="Word.Document">
! 6: <meta name="Generator" content="Microsoft Word 9">
! 7: <meta name="Originator" content="Microsoft Word 9">
! 8: <meta name="GENERATOR" content="Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) [Netscape]">
! 9: <title>LON-CAPA Functions</title>
! 10: <link rel=File-List href="./LON-CAPA_Functions_files/filelist.xml">
! 11: <link rel=Edit-Time-Data href="./LON-CAPA_Functions_files/editdata.mso">
! 12: <link rel=OLE-Object-Data href="./LON-CAPA_Functions_files/oledata.mso">
! 13: <!--[if !mso]>
! 14: <style>
! 15: v\:* {behavior:url(#default#VML);}
! 16: o\:* {behavior:url(#default#VML);}
! 17: w\:* {behavior:url(#default#VML);}
! 18: .shape {behavior:url(#default#VML);}
! 19: </style>
! 20: <![endif]-->
! 21: <!--[if gte mso 9]><xml>
! 22: <o:DocumentProperties>
! 23: <o:Author>Neon</o:Author>
! 24: <o:LastAuthor>Neon</o:LastAuthor>
! 25: <o:Revision>2</o:Revision>
! 26: <o:TotalTime>288</o:TotalTime>
! 27: <o:LastPrinted>2001-05-31T17:33:00Z</o:LastPrinted>
! 28: <o:Created>2001-05-31T22:25:00Z</o:Created>
! 29: <o:LastSaved>2001-05-31T22:25:00Z</o:LastSaved>
! 30: <o:Pages>6</o:Pages>
! 31: <o:Words>974</o:Words>
! 32: <o:Characters>5555</o:Characters>
! 33: <o:Company>FSU</o:Company>
! 34: <o:Lines>46</o:Lines>
! 35: <o:Paragraphs>11</o:Paragraphs>
! 36: <o:CharactersWithSpaces>6821</o:CharactersWithSpaces>
! 37: <o:Version>9.2720</o:Version>
! 38: </o:DocumentProperties>
! 39: </xml><![endif]-->
! 40: <!--[if gte mso 9]><xml>
! 41: <w:WordDocument>
! 42: <w:ActiveWritingStyle Lang="EN-US" VendorID="64" DLLVersion="131077"
! 43: NLCheck="1">1</w:ActiveWritingStyle>
! 44: </w:WordDocument>
! 45: </xml><![endif]-->
! 46: <style>
! 47: <!--
! 48: /* Style Definitions */
! 49: p.MsoNormal, li.MsoNormal, div.MsoNormal
! 50: {mso-style-parent:"";
! 51: margin:0in;
! 52: margin-bottom:.0001pt;
! 53: mso-pagination:widow-orphan;
! 54: font-size:12.0pt;
! 55: font-family:"Times New Roman";
! 56: mso-fareast-font-family:"Times New Roman";}
! 57: h1
! 58: {mso-style-next:Normal;
! 59: margin:0in;
! 60: margin-bottom:.0001pt;
! 61: mso-pagination:widow-orphan;
! 62: page-break-after:avoid;
! 63: mso-outline-level:1;
! 64: font-size:12.0pt;
! 65: font-family:"Times New Roman";
! 66: mso-font-kerning:0pt;}
! 67: @page Section1
! 68: {size:8.5in 11.0in;
! 69: margin:1.0in 63.0pt 1.0in 1.0in;
! 70: mso-header-margin:.5in;
! 71: mso-footer-margin:.5in;
! 72: mso-paper-source:0;}
! 73: div.Section1
! 74: {page:Section1;}
! 75: -->
! 76: </style>
! 77: </head>
! 78: <body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000" lang="EN-US" style="tab-interval:.5in">
! 79:
! 80: <div class=Section1>
! 81: <h1>
! 82: <span style='font-size:14.0pt;mso-bidi-font-size:12.0pt'>LON-CAPA Functions<o:p></o:p></span></h1>
! 83:
! 84: <div class="MsoNormal">All LON-CAPA functions are called as &function_name.
! 85: Function names are case-sensitive. Variable names must be preceded by the
! 86: "$" sign.</div>
! 87:
! 88:
! 89: <p class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p>
! 90: <br>
! 91: <table BORDER CELLSPACING=0 CELLPADDING=0 style="border-collapse:collapse;
! 92: border:none;mso-border-alt:solid windowtext .5pt;mso-padding-alt:0in 5.4pt 0in 5.4pt" >
! 93: <tr>
! 94: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 95: padding:0in 5.4pt 0in 5.4pt">
! 96: <div class="MsoNormal"><b>CAPA Functions</b><o:p></o:p></div>
! 97: </td>
! 98:
! 99: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border:solid windowtext .5pt;
! 100: border-left:none;mso-border-left-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 101: <div class="MsoNormal"><b>LON-CAPA</b><o:p></o:p></div>
! 102: </td>
! 103:
! 104: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border:solid windowtext .5pt;
! 105: border-left:none;mso-border-left-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 106: <div class="MsoNormal"><b>Descriptions</b><o:p></o:p></div>
! 107: </td>
! 108:
! 109: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border:solid windowtext .5pt;
! 110: border-left:none;mso-border-left-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 111: <div class="MsoNormal"><b>Differences (if any)</b><o:p></o:p></div>
! 112: </td>
! 113: </tr>
! 114:
! 115: <tr>
! 116: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 117: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 118: <div class="MsoNormal">sin(x), cos(x), tan(x)</div>
! 119: </td>
! 120:
! 121: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 122: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 123: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 124: padding:0in 5.4pt 0in 5.4pt">
! 125: <div class="MsoNormal">&sin($x), &cos($x), &tan($x)</div>
! 126: </td>
! 127:
! 128: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 129: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 130: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 131: padding:0in 5.4pt 0in 5.4pt">
! 132: <div class="MsoNormal">Trigonometric functions where x is in radians. $x
! 133: can be a pure number, i.e., you can call &sin(3.1415).</div>
! 134: </td>
! 135:
! 136: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 137: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 138: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 139: padding:0in 5.4pt 0in 5.4pt">
! 140: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 141: </td>
! 142: </tr>
! 143:
! 144: <tr>
! 145: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 146: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 147: <div class="MsoNormal">asin(x), acos(x), atan(x), atan2(y,x)</div>
! 148: </td>
! 149:
! 150: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 151: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 152: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 153: padding:0in 5.4pt 0in 5.4pt">
! 154: <div class="MsoNormal">&asin($x), &acos($x), &atan($x), &atan2($y,$x)</div>
! 155: </td>
! 156:
! 157: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 158: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 159: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 160: padding:0in 5.4pt 0in 5.4pt">
! 161: <div class="MsoNormal">Inverse trigonometric functions. Return value is
! 162: in radians. For asin and acos the value of x must be between -1 and 1.
! 163: The atan2 returns a value between -pi and pi the sign of which is determined
! 164: by y. $x and $y can be pure numbers.</div>
! 165: </td>
! 166:
! 167: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 168: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 169: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 170: padding:0in 5.4pt 0in 5.4pt">
! 171: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 172: </td>
! 173: </tr>
! 174:
! 175: <tr>
! 176: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 177: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 178: <div class="MsoNormal">log(x), log10(x)</div>
! 179: </td>
! 180:
! 181: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 182: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 183: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 184: padding:0in 5.4pt 0in 5.4pt">
! 185: <div class="MsoNormal">&log($x), &log10($x)</div>
! 186: </td>
! 187:
! 188: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 189: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 190: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 191: padding:0in 5.4pt 0in 5.4pt">
! 192: <div class="MsoNormal">Natural and base-10 logarithm. $x can be a pure
! 193: number.</div>
! 194: </td>
! 195:
! 196: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 197: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 198: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 199: padding:0in 5.4pt 0in 5.4pt">
! 200: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 201: </td>
! 202: </tr>
! 203:
! 204: <tr>
! 205: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 206: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 207: <div class="MsoNormal">exp(x), pow(x,y), sqrt(x)</div>
! 208: </td>
! 209:
! 210: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 211: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 212: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 213: padding:0in 5.4pt 0in 5.4pt">
! 214: <div class="MsoNormal">&exp($x), &pow($x,$y), &sqrt($x)</div>
! 215: </td>
! 216:
! 217: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 218: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 219: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 220: padding:0in 5.4pt 0in 5.4pt">
! 221: <div class="MsoNormal">Exponential, power and square root, i.e.,ex, xy
! 222: and <!--[if gte vml 1]><v:shapetype
! 223: id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
! 224: path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
! 225: <v:stroke joinstyle="miter"/>
! 226: <v:formulas>
! 227: <v:f eqn="if lineDrawn pixelLineWidth 0"/>
! 228: <v:f eqn="sum @0 1 0"/>
! 229: <v:f eqn="sum 0 0 @1"/>
! 230: <v:f eqn="prod @2 1 2"/>
! 231: <v:f eqn="prod @3 21600 pixelWidth"/>
! 232: <v:f eqn="prod @3 21600 pixelHeight"/>
! 233: <v:f eqn="sum @0 0 1"/>
! 234: <v:f eqn="prod @6 1 2"/>
! 235: <v:f eqn="prod @7 21600 pixelWidth"/>
! 236: <v:f eqn="sum @8 21600 0"/>
! 237: <v:f eqn="prod @7 21600 pixelHeight"/>
! 238: <v:f eqn="sum @10 21600 0"/>
! 239: </v:formulas>
! 240: <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
! 241: <o:lock v:ext="edit" aspectratio="t"/>
! 242: </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:18.75pt;
! 243: height:18pt' o:ole="">
! 244: <v:imagedata src="./LON-CAPA_Functions_files/image001.wmz" o:title=""/>
! 245: </v:shape><![endif]--><![if !vml]><img SRC="image002.gif" v:shapes="_x0000_i1025" height=24 width=25><![endif]><!--[if gte mso 9]><xml>
! 246: <o:OLEObject Type="Embed" ProgID="Equation.3" ShapeID="_x0000_i1025"
! 247: DrawAspect="Content" ObjectID="_1052827907">
! 248: </o:OLEObject>
! 249: </xml><![endif]-->.
! 250: $x and $y can be pure numbers.</div>
! 251: </td>
! 252:
! 253: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 254: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 255: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 256: padding:0in 5.4pt 0in 5.4pt">
! 257: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 258: </td>
! 259: </tr>
! 260:
! 261: <tr>
! 262: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 263: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 264: <div class="MsoNormal">abs(x), sgn(x)</div>
! 265: </td>
! 266:
! 267: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 268: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 269: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 270: padding:0in 5.4pt 0in 5.4pt">
! 271: <div class="MsoNormal">&abs($x), &sgn($x)</div>
! 272: </td>
! 273:
! 274: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 275: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 276: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 277: padding:0in 5.4pt 0in 5.4pt">
! 278: <div class="MsoNormal">Abs takes the absolute value of x while sgn(x) returns
! 279: 1, 0 or -1 depending on the value of x. For x>0, sgn(x) = 1, for x=0, sgn(x)
! 280: = 0 and for x<0, sgn(x) = -1. $x can be a pure number.</div>
! 281: </td>
! 282:
! 283: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 284: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 285: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 286: padding:0in 5.4pt 0in 5.4pt">
! 287: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 288: </td>
! 289: </tr>
! 290:
! 291: <tr>
! 292: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 293: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 294: <div class="MsoNormal">erf(x), erfc(x)</div>
! 295: </td>
! 296:
! 297: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 298: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 299: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 300: padding:0in 5.4pt 0in 5.4pt">
! 301: <div class="MsoNormal">&erf($x), &erfc($x)</div>
! 302: </td>
! 303:
! 304: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 305: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 306: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 307: padding:0in 5.4pt 0in 5.4pt">
! 308: <div class="MsoNormal">Error function. <!--[if gte vml 1]><v:shape id="_x0000_i1027"
! 309: type="#_x0000_t75" style='width:105pt;height:33pt' o:ole="">
! 310: <v:imagedata src="./LON-CAPA_Functions_files/image003.wmz" o:title=""/>
! 311: </v:shape><![endif]--><![if !vml]><img SRC="image004.gif" v:shapes="_x0000_i1027" height=44 width=140><![endif]><!--[if gte mso 9]><xml>
! 312: <o:OLEObject Type="Embed" ProgID="Equation.3" ShapeID="_x0000_i1027"
! 313: DrawAspect="Content" ObjectID="_1052827908">
! 314: </o:OLEObject>
! 315: </xml><![endif]--><span style="mso-spacerun: yes"></span>and
! 316: <i>erfx(x)</i> = 1.0 - <i>erf(x)</i>. </div>
! 317:
! 318:
! 319: <p class="MsoNormal">$x can be a pure number.</td>
! 320:
! 321: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 322: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 323: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 324: padding:0in 5.4pt 0in 5.4pt">
! 325: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 326: </td>
! 327: </tr>
! 328:
! 329: <tr>
! 330: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 331: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 332: <div class="MsoNormal">ceil(x), floor(x)</div>
! 333: </td>
! 334:
! 335: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 336: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 337: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 338: padding:0in 5.4pt 0in 5.4pt">
! 339: <div class="MsoNormal">&ceil($x), &floor($x)</div>
! 340: </td>
! 341:
! 342: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 343: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 344: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 345: padding:0in 5.4pt 0in 5.4pt">
! 346: <div class="MsoNormal">Ceil function returns an integer rounded up whereas
! 347: floor function returns and integer rounded down. If x is an integer than
! 348: it returns the value of the integer. $x can be a pure number.</div>
! 349: </td>
! 350:
! 351: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 352: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 353: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 354: padding:0in 5.4pt 0in 5.4pt">
! 355: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 356: </td>
! 357: </tr>
! 358:
! 359: <tr>
! 360: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 361: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 362: <div class="MsoNormal">min(...), max(...)</div>
! 363: </td>
! 364:
! 365: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 366: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 367: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 368: padding:0in 5.4pt 0in 5.4pt">
! 369: <div class="MsoNormal">&min(...), &max(...)</div>
! 370: </td>
! 371:
! 372: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 373: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 374: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 375: padding:0in 5.4pt 0in 5.4pt">
! 376: <div class="MsoNormal">Returns the minimum/ maximum value of a list of
! 377: arguments if the arguments are numbers. If the arguments are strings then
! 378: it returns a string sorted according to the ASCII codes.</div>
! 379: </td>
! 380:
! 381: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 382: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 383: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 384: padding:0in 5.4pt 0in 5.4pt">
! 385: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 386: </td>
! 387: </tr>
! 388:
! 389: <tr>
! 390: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 391: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 392: <div class="MsoNormal">factorial(n)</div>
! 393: </td>
! 394:
! 395: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 396: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 397: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 398: padding:0in 5.4pt 0in 5.4pt">
! 399: <div class="MsoNormal">&factorial($n)</div>
! 400: </td>
! 401:
! 402: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 403: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 404: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 405: padding:0in 5.4pt 0in 5.4pt">
! 406: <div class="MsoNormal">Argument (n) must be an integer else it will round
! 407: down. The largest value for n is 170. $n can be a pure number.</div>
! 408: </td>
! 409:
! 410: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 411: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 412: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 413: padding:0in 5.4pt 0in 5.4pt">
! 414: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 415: </td>
! 416: </tr>
! 417:
! 418: <tr>
! 419: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 420: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 421: <div class="MsoNormal">N%M</div>
! 422: </td>
! 423:
! 424: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 425: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 426: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 427: padding:0in 5.4pt 0in 5.4pt">
! 428: <div class="MsoNormal">$N%$M</div>
! 429: </td>
! 430:
! 431: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 432: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 433: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 434: padding:0in 5.4pt 0in 5.4pt">
! 435: <div class="MsoNormal">N and M are integers and returns the remainder (in
! 436: integer) of N/M. $N and $M can be pure numbers.</div>
! 437: </td>
! 438:
! 439: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 440: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 441: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 442: padding:0in 5.4pt 0in 5.4pt">
! 443: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 444: </td>
! 445: </tr>
! 446:
! 447: <tr>
! 448: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 449: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 450: <div class="MsoNormal">sinh(x), cosh(x), tanh(x)</div>
! 451: </td>
! 452:
! 453: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 454: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 455: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 456: padding:0in 5.4pt 0in 5.4pt">
! 457: <div class="MsoNormal">&sinh($x), &cosh($x), &tanh($x)</div>
! 458: </td>
! 459:
! 460: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 461: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 462: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 463: padding:0in 5.4pt 0in 5.4pt">
! 464: <div class="MsoNormal">Hyperbolic functions. $x can be a pure number.</div>
! 465: </td>
! 466:
! 467: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 468: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 469: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 470: padding:0in 5.4pt 0in 5.4pt">
! 471: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 472: </td>
! 473: </tr>
! 474:
! 475: <tr>
! 476: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 477: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 478: <div class="MsoNormal">asinh(x), acosh(x), atanh(x)</div>
! 479: </td>
! 480:
! 481: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 482: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 483: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 484: padding:0in 5.4pt 0in 5.4pt">
! 485: <div class="MsoNormal">&asinh($x), &acosh($x), &atanh($x)</div>
! 486: </td>
! 487:
! 488: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 489: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 490: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 491: padding:0in 5.4pt 0in 5.4pt">
! 492: <div class="MsoNormal">Inverse hyperbolic functions. $x can be a pure number.</div>
! 493: </td>
! 494:
! 495: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 496: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 497: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 498: padding:0in 5.4pt 0in 5.4pt">
! 499: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 500: </td>
! 501: </tr>
! 502:
! 503: <tr>
! 504: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 505: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 506: <div class="MsoNormal">roundto(x,n)</div>
! 507: </td>
! 508:
! 509: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 510: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 511: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 512: padding:0in 5.4pt 0in 5.4pt">
! 513: <div class="MsoNormal">&roundto($x,$n)</div>
! 514: </td>
! 515:
! 516: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 517: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 518: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 519: padding:0in 5.4pt 0in 5.4pt">
! 520: <div class="MsoNormal">Rounds a real number to n decimal points. $x and
! 521: $n can be pure numbers.</div>
! 522: </td>
! 523:
! 524: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 525: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 526: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 527: padding:0in 5.4pt 0in 5.4pt">
! 528: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 529: </td>
! 530: </tr>
! 531:
! 532: <tr>
! 533: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 534: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 535: <div class="MsoNormal">web("a","b","c") or web(a,b,c)</div>
! 536: </td>
! 537:
! 538: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 539: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 540: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 541: padding:0in 5.4pt 0in 5.4pt">
! 542: <div class="MsoNormal">&web("a","b","c") or &web($a,$b,$c)</div>
! 543: </td>
! 544:
! 545: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 546: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 547: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 548: padding:0in 5.4pt 0in 5.4pt">
! 549: <div class="MsoNormal">Returns either a, b or c depending on the output
! 550: medium. a is for plain ASCII, b for tex output and c for html output.</div>
! 551: </td>
! 552:
! 553: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 554: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 555: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 556: padding:0in 5.4pt 0in 5.4pt">
! 557: <div class="MsoNormal"></div>
! 558: </td>
! 559: </tr>
! 560:
! 561: <tr>
! 562: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 563: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 564: <div class="MsoNormal">html("a") or html(a)</div>
! 565: </td>
! 566:
! 567: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 568: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 569: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 570: padding:0in 5.4pt 0in 5.4pt">
! 571: <div class="MsoNormal">&html("a") or &html($a)</div>
! 572: </td>
! 573:
! 574: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 575: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 576: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 577: padding:0in 5.4pt 0in 5.4pt">
! 578: <div class="MsoNormal">Output only if the output mode chosen is in html
! 579: format.</div>
! 580: </td>
! 581:
! 582: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 583: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 584: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 585: padding:0in 5.4pt 0in 5.4pt">
! 586: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 587: </td>
! 588: </tr>
! 589:
! 590: <tr>
! 591: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 592: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 593: <div class="MsoNormal">jn(m,x)</div>
! 594: </td>
! 595:
! 596: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 597: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 598: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 599: padding:0in 5.4pt 0in 5.4pt">
! 600: <div class="MsoNormal">&j0($x), &j1($x), &jn($m,$x), &jv($y,$x)</div>
! 601: </td>
! 602:
! 603: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 604: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 605: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 606: padding:0in 5.4pt 0in 5.4pt">
! 607: <div class="MsoNormal">Bessel functions of the first kind with orders 0,
! 608: 1 and m respectively. For jn(m,x), m must be an integer whereas for jv(y,x),
! 609: y is real. $x can be a pure number. $m must be an integer and can be a
! 610: pure integer number. $y can be a pure real number.</div>
! 611: </td>
! 612:
! 613: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 614: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 615: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 616: padding:0in 5.4pt 0in 5.4pt">
! 617: <div class="MsoNormal">In CAPA, j0, j1 and jn are contained in one function,
! 618: jn(m,x) where m takes the value of 0, 1 or 2. jv(y,x) was not implemented.</div>
! 619: </td>
! 620: </tr>
! 621:
! 622: <tr>
! 623: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 624: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 625: <div class="MsoNormal">yn(m,x)</div>
! 626: </td>
! 627:
! 628: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 629: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 630: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 631: padding:0in 5.4pt 0in 5.4pt">
! 632: <div class="MsoNormal">&y0($x), &y1($x), &yn($m,$x), &yv($y,$x)</div>
! 633: </td>
! 634:
! 635: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 636: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 637: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 638: padding:0in 5.4pt 0in 5.4pt">
! 639: <div class="MsoNormal">Bessel functions of the second kind with orders
! 640: 0, 1 and m respectively. For yn(m,x), m must be an integer whereas for
! 641: yv(y,x), y is real. $x can be a pure number. $m must be an integer and
! 642: can be a pure integer number. $y can be a pure real number.</div>
! 643: </td>
! 644:
! 645: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 646: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 647: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 648: padding:0in 5.4pt 0in 5.4pt">
! 649: <div class="MsoNormal">In CAPA, y0, y1 and yn are contained in one function,
! 650: yn(m,x) where m takes the value of 0, 1 or 2. yv(y,x) was not implemented.</div>
! 651: </td>
! 652: </tr>
! 653:
! 654: <tr>
! 655: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 656: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 657: <div class="MsoNormal">random(l,u,d)</div>
! 658: </td>
! 659:
! 660: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 661: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 662: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 663: padding:0in 5.4pt 0in 5.4pt">
! 664: <div class="MsoNormal">&random($l,$u,$d)</div>
! 665: </td>
! 666:
! 667: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 668: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 669: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 670: padding:0in 5.4pt 0in 5.4pt">
! 671: <div class="MsoNormal">Returns a uniformly distributed random number between
! 672: the lower bound, l and upper bound, u in steps of d. $l, $u and $d can
! 673: be pure numbers.</div>
! 674: </td>
! 675:
! 676: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 677: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 678: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 679: padding:0in 5.4pt 0in 5.4pt">
! 680: <div class="MsoNormal">In CAPA, all the 3 arguments must be of the same
! 681: type. However, now you can mix the type.</div>
! 682: </td>
! 683: </tr>
! 684:
! 685: <tr>
! 686: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 687: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 688: <div class="MsoNormal">choose(i,..)</div>
! 689: </td>
! 690:
! 691: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 692: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 693: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 694: padding:0in 5.4pt 0in 5.4pt">
! 695: <div class="MsoNormal">&choose($i,...)</div>
! 696: </td>
! 697:
! 698: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 699: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 700: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 701: padding:0in 5.4pt 0in 5.4pt">
! 702: <div class="MsoNormal">Choose the ith item from the argument list. i must
! 703: be an integer greater than 0 and the value of i should not exceed the number
! 704: of items. $i can be a pure integer.</div>
! 705: </td>
! 706:
! 707: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 708: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 709: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 710: padding:0in 5.4pt 0in 5.4pt">
! 711: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 712: </td>
! 713: </tr>
! 714:
! 715: <tr>
! 716: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 717: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 718: <div class="MsoNormal">tex(a,b), tex("a","b")</div>
! 719: </td>
! 720:
! 721: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 722: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 723: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 724: padding:0in 5.4pt 0in 5.4pt">
! 725: <div class="MsoNormal">&tex($a,$b), &tex("a","b")</div>
! 726: </td>
! 727:
! 728: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 729: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 730: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 731: padding:0in 5.4pt 0in 5.4pt">
! 732: <div class="MsoNormal">Returns a if the output mode is in tex otherwise
! 733: returns b.</div>
! 734: </td>
! 735:
! 736: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 737: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 738: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 739: padding:0in 5.4pt 0in 5.4pt">
! 740: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 741: </td>
! 742: </tr>
! 743:
! 744: <tr>
! 745: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 746: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 747: <div class="MsoNormal">var_in_tex(a)</div>
! 748: </td>
! 749:
! 750: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 751: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 752: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 753: padding:0in 5.4pt 0in 5.4pt">
! 754: <div class="MsoNormal">&var_in_tex($a)</div>
! 755: </td>
! 756:
! 757: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 758: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 759: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 760: padding:0in 5.4pt 0in 5.4pt">
! 761: <div class="MsoNormal">Equivalent to tex("a","")</div>
! 762: </td>
! 763:
! 764: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 765: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 766: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 767: padding:0in 5.4pt 0in 5.4pt">
! 768: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 769: </td>
! 770: </tr>
! 771:
! 772: <tr>
! 773: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 774: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 775: <div class="MsoNormal">to_string(x), to_string(x,y)</div>
! 776: </td>
! 777:
! 778: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 779: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 780: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 781: padding:0in 5.4pt 0in 5.4pt">
! 782: <div class="MsoNormal">&to_string($x), &to_string($x,$y)</div>
! 783: </td>
! 784:
! 785: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 786: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 787: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 788: padding:0in 5.4pt 0in 5.4pt">
! 789: <div class="MsoNormal">If x is an integer, returns a string. If x is real
! 790: than the output is a string with format given by y. For example, if x =
! 791: 12.3456, &to_string(x,".3F") = 12.345 and &to_string(x,".3E") =
! 792: 1.234E+01.</div>
! 793: </td>
! 794:
! 795: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 796: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 797: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 798: padding:0in 5.4pt 0in 5.4pt">
! 799: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 800: </td>
! 801: </tr>
! 802:
! 803: <tr>
! 804: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 805: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 806: <div class="MsoNormal">capa_id(), class(), section(), set(), problem()</div>
! 807: </td>
! 808:
! 809: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 810: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 811: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 812: padding:0in 5.4pt 0in 5.4pt">
! 813: <div class="MsoNormal">&class(), &section()</div>
! 814: </td>
! 815:
! 816: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 817: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 818: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 819: padding:0in 5.4pt 0in 5.4pt">
! 820: <div class="MsoNormal">Returns null string, class descriptive name, section
! 821: number, set number and null string.</div>
! 822: </td>
! 823:
! 824: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 825: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 826: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 827: padding:0in 5.4pt 0in 5.4pt">
! 828: <div class="MsoNormal">capa_id(), set() and problem() are no longer used.
! 829: Currently, they return a null value.</div>
! 830: </td>
! 831: </tr>
! 832:
! 833: <tr>
! 834: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 835: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 836: <div class="MsoNormal">name(), student_number()</div>
! 837: </td>
! 838:
! 839: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 840: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 841: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 842: padding:0in 5.4pt 0in 5.4pt">
! 843: <div class="MsoNormal">&name(), &student_number()</div>
! 844: </td>
! 845:
! 846: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 847: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 848: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 849: padding:0in 5.4pt 0in 5.4pt">
! 850: <div class="MsoNormal">Return the full name in the following format: lastname,
! 851: firstname initial. Student_number returns the student 9-alphanumeric string.
! 852: If undefined, the functions return null.</div>
! 853: </td>
! 854:
! 855: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 856: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 857: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 858: padding:0in 5.4pt 0in 5.4pt">
! 859: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 860: </td>
! 861: </tr>
! 862:
! 863: <tr>
! 864: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 865: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 866: <div class="MsoNormal">open_date(), due_date(), answer_date()</div>
! 867: </td>
! 868:
! 869: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 870: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 871: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 872: padding:0in 5.4pt 0in 5.4pt">
! 873: <div class="MsoNormal">&open_date(), &due_date(), &answer_date()</div>
! 874: </td>
! 875:
! 876: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 877: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 878: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 879: padding:0in 5.4pt 0in 5.4pt">
! 880: <div class="MsoNormal">Problem open date, due date and answer date. The
! 881: time is also included in 24-hr format.</div>
! 882: </td>
! 883:
! 884: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 885: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 886: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 887: padding:0in 5.4pt 0in 5.4pt">
! 888: <div class="MsoNormal">Output format for time is changed slightly. If pass
! 889: noon, it displays ..pm else it displays ..am. So 23:59 is displayed as
! 890: 11:59 pm.</div>
! 891: </td>
! 892: </tr>
! 893:
! 894: <tr>
! 895: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 896: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 897: <div class="MsoNormal">get_seed(), set_seed()</div>
! 898: </td>
! 899:
! 900: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 901: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 902: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 903: padding:0in 5.4pt 0in 5.4pt">
! 904: <div class="MsoNormal">Not implemented</div>
! 905: </td>
! 906:
! 907: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 908: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 909: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 910: padding:0in 5.4pt 0in 5.4pt">
! 911: <div class="MsoNormal">Get and set the random seed.</div>
! 912: </td>
! 913:
! 914: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 915: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 916: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 917: padding:0in 5.4pt 0in 5.4pt">
! 918: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 919: </td>
! 920: </tr>
! 921:
! 922: <tr>
! 923: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 924: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 925: <div class="MsoNormal">sub_string(a,b,c)</div>
! 926: </td>
! 927:
! 928: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 929: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 930: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 931: padding:0in 5.4pt 0in 5.4pt">
! 932: <div class="MsoNormal">&sub_string($a,$b,$c)</div>
! 933:
! 934:
! 935: <p class="MsoNormal">perl
! 936:
! 937: <p class="MsoNormal">substr function. However, note the differences.</td>
! 938:
! 939: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 940: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 941: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 942: padding:0in 5.4pt 0in 5.4pt">
! 943: <div class="MsoNormal">Retrieve a portion of string a starting from b and
! 944: length c. For example, </div>
! 945:
! 946:
! 947: <p class="MsoNormal">$a = "Welcome to LON-CAPA";
! 948:
! 949: <p class="MsoNormal">$result=&sub_string($a,4,4);
! 950:
! 951: <p class="MsoNormal">then $result is "come".</td>
! 952:
! 953: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 954: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 955: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 956: padding:0in 5.4pt 0in 5.4pt">
! 957: <div class="MsoNormal">Perl intrinsic function, substr(string,b,c) starts
! 958: counting from 0 (as opposed to 1). In the example to the left, substr($a,4,4)
! 959: returns "ome ".</div>
! 960: </td>
! 961: </tr>
! 962:
! 963: <tr>
! 964: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 965: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 966: <div class="MsoNormal">array[xx]</div>
! 967: </td>
! 968:
! 969: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 970: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 971: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 972: padding:0in 5.4pt 0in 5.4pt">
! 973: <div class="MsoNormal">@arrayname</div>
! 974:
! 975:
! 976: <p class="MsoNormal">Array is intrinsic in perl.<span style="mso-spacerun:
! 977: yes"></span>
! 978:
! 979: <p class="MsoNormal">To access a specific element use $arrayname[$n] where
! 980: $n is the $n+1 element since the array count starts from 0.</td>
! 981:
! 982: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 983: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 984: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 985: padding:0in 5.4pt 0in 5.4pt">
! 986: <div class="MsoNormal">"xx" can be a variable or a calculation.</div>
! 987: </td>
! 988:
! 989: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 990: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 991: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 992: padding:0in 5.4pt 0in 5.4pt">
! 993: <div class="MsoNormal">In LON-CAPA, an array is defined by @arrayname.
! 994: It is not necessary to specify the dimension of the array. </div>
! 995: </td>
! 996: </tr>
! 997:
! 998: <tr>
! 999: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 1000: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 1001: <div class="MsoNormal">array_moments(B,A)</div>
! 1002: </td>
! 1003:
! 1004: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 1005: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1006: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1007: padding:0in 5.4pt 0in 5.4pt">
! 1008: <div class="MsoNormal">@B=&array_moments(@A)</div>
! 1009: </td>
! 1010:
! 1011: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 1012: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1013: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1014: padding:0in 5.4pt 0in 5.4pt">
! 1015: <div class="MsoNormal">Evaluates the moments of an array A and place the
! 1016: result in array B[i] where i = 0 to 4. The contents of B are as follows:
! 1017: B[0] = number of elements, B[1] = mean, B[2] = variance, B[3] = skewness
! 1018: and B[4] = kurtosis.</div>
! 1019: </td>
! 1020:
! 1021: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 1022: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1023: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1024: padding:0in 5.4pt 0in 5.4pt">
! 1025: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 1026: </td>
! 1027: </tr>
! 1028:
! 1029: <tr>
! 1030: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 1031: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 1032: <div class="MsoNormal">array_max(Name), array_min(Name)</div>
! 1033:
! 1034:
! 1035: <p class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></td>
! 1036:
! 1037: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 1038: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1039: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1040: padding:0in 5.4pt 0in 5.4pt">
! 1041: <div class="MsoNormal">&min(@Name), &max(@Name)</div>
! 1042: </td>
! 1043:
! 1044: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 1045: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1046: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1047: padding:0in 5.4pt 0in 5.4pt">
! 1048: <div class="MsoNormal">In LON-CAPA to find the maximum value of an array,
! 1049: use</div>
! 1050:
! 1051:
! 1052: <p class="MsoNormal">&max(@arrayname)
! 1053:
! 1054: <p class="MsoNormal">and to find the minimum value of an array, use
! 1055:
! 1056: <p class="MsoNormal">&min(@arrayname).</td>
! 1057:
! 1058: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 1059: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1060: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1061: padding:0in 5.4pt 0in 5.4pt">
! 1062: <div class="MsoNormal">Combined with the min and max functions defined
! 1063: earlier.</div>
! 1064: </td>
! 1065: </tr>
! 1066:
! 1067: <tr>
! 1068: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 1069: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 1070: <div class="MsoNormal">init_array(Name)</div>
! 1071: </td>
! 1072:
! 1073: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 1074: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1075: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1076: padding:0in 5.4pt 0in 5.4pt">
! 1077: <div class="MsoNormal">undef @name</div>
! 1078: </td>
! 1079:
! 1080: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 1081: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1082: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1083: padding:0in 5.4pt 0in 5.4pt">
! 1084: <div class="MsoNormal">To destroy the contents of an array, use</div>
! 1085:
! 1086:
! 1087: <p class="MsoNormal">undef @arrayname;</td>
! 1088:
! 1089: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 1090: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1091: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1092: padding:0in 5.4pt 0in 5.4pt">
! 1093: <div class="MsoNormal">Use perl intrinsic undef function.</div>
! 1094: </td>
! 1095: </tr>
! 1096:
! 1097: <tr>
! 1098: <td VALIGN=TOP WIDTH="139" style="width:1.45in;border:solid windowtext .5pt;
! 1099: border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt">
! 1100: <div class="MsoNormal">random_norma(...), random_beta(...), random_gamma(...),
! 1101: random_exponential(...), random_poisson(...), random_chi(...), random_noncentral(...)</div>
! 1102: </td>
! 1103:
! 1104: <td VALIGN=TOP WIDTH="168" style="width:1.75in;border-top:none;border-left:
! 1105: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1106: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1107: padding:0in 5.4pt 0in 5.4pt">
! 1108: <div class="MsoNormal">Not yet implemented.</div>
! 1109: </td>
! 1110:
! 1111: <td VALIGN=TOP WIDTH="228" style="width:171.0pt;border-top:none;border-left:
! 1112: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1113: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1114: padding:0in 5.4pt 0in 5.4pt">
! 1115: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 1116: </td>
! 1117:
! 1118: <td VALIGN=TOP WIDTH="108" style="width:81.0pt;border-top:none;border-left:
! 1119: none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
! 1120: mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
! 1121: padding:0in 5.4pt 0in 5.4pt">
! 1122: <div class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 1123: </td>
! 1124: </tr>
! 1125: </table>
! 1126:
! 1127:
! 1128: <p class="MsoNormal"><![if !supportEmptyParas]><![endif]><o:p></o:p></div>
! 1129:
! 1130: </body>
! 1131: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>