Rev 3757 | Rev 3793 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3757 | bpr | 1 | !set slib_lang_exists=yes |
2 | !distribute lines Library script\ |
||
3 | Output\ |
||
4 | Parameter\ |
||
5 | Parameters\ |
||
6 | Required_Software\ |
||
7 | Call from module\ |
||
8 | Call from OEF/Doc\ |
||
9 | Available scripts in slib\ |
||
10 | Variable list of comma-separated items\ |
||
11 | default |
||
12 | into wims_name_slib,wims_name_Output,wims_name_Parameter,wims_name_Parameters,wims_name_Required_Software,\ |
||
13 | wims_name_call1,wims_name_call2,wims_name_listslib,wims_name_variable_list,wims_name_default |
||
14 | |||
3764 | bpr | 15 | !set wims_name_up=!nosubst Up to $slpcnt, comma-separated |
3757 | bpr | 16 | |
17 | !set wims_name_instruction=Scripts in this library can be called from modules using the command \ |
||
18 | <tt>!read</tt> (or <tt>!readproc</tt> from within a phtml file).\ |
||
19 | For example, the line\ |
||
20 | <pre>\ |
||
21 | !read slib/matrix/random 3, 5, 10\ |
||
22 | </pre>\ |
||
23 | generates a 3×5 matrix with random integer coefficients in [-10, 10].\ |
||
24 | The result is placed in the variable\ |
||
25 | <tt>slib_out</tt>.\ |
||
26 | To call an slib script from OEF exercises, documents or forum\ |
||
27 | messages, use the function\ |
||
28 | <tt>slib()</tt>.<p>\ |
||
29 | Only variables prefixed by \ |
||
30 | <tt>slib_</tt>\ |
||
31 | are modified by these scripts. |
||
32 |