Rev 4210 | Rev 6305 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4210 | Rev 5947 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | wims_name_call1,wims_name_call2,wims_name_listslib,wims_name_variable_list,wims_name_default |
13 | wims_name_call1,wims_name_call2,wims_name_listslib,wims_name_variable_list,wims_name_default |
14 | 14 | ||
15 | !set wims_name_upto=!nosubst Up to $slpcnt, comma-separated |
15 | !set wims_name_upto=!nosubst Up to $slpcnt, comma-separated |
16 | 16 | ||
17 | !set wims_name_instruction=Scripts in this library can be called from modules using the command \ |
17 | !set wims_name_instruction=Scripts in this library can be called from modules using the command \ |
18 | <tt>!read |
18 | <span class="tt">!read</span> (or <span class="tt">!readproc</span> from within a phtml file).\ |
19 | For example, the line\ |
19 | For example, the line\ |
20 | <pre>\ |
20 | <pre>\ |
21 | !read slib/matrix/random 3, 5, 10\ |
21 | !read slib/matrix/random 3, 5, 10\ |
22 | </pre>\ |
22 | </pre>\ |
23 | generates a 3×5 matrix with random integer coefficients in [-10, 10].\ |
23 | generates a 3×5 matrix with random integer coefficients in [-10, 10].\ |
24 | The result is placed in the variable\ |
24 | The result is placed in the variable\ |
25 | <tt>slib_out</ |
25 | <span class="tt">slib_out</span>.\ |
26 | To call an slib script from OEF exercises, documents or forum\ |
26 | To call an slib script from OEF exercises, documents or forum\ |
27 | messages, use the function\ |
27 | messages, use the function\ |
28 | <tt>slib()</ |
28 | <span class="tt">slib()</span>.<p>\ |
29 | Only variables prefixed by \ |
29 | Only variables prefixed by \ |
30 | <tt>slib_</ |
30 | <span class="tt">slib_</span>\ |
31 | are modified by these scripts. |
31 | are modified by these scripts.</p> |