Subversion Repositories wimsdev

Rev

Rev 6979 | 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\
8835 obado 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\
6979 bpr 12
The result can be used through the variable\
8835 obado 13
All\
3757 bpr 14
into wims_name_slib,wims_name_Output,wims_name_Parameter,wims_name_Parameters,wims_name_Required_Software,\
8835 obado 15
  wims_name_call1,wims_name_call2,wims_name_listslib,wims_name_variable_list,wims_name_default,wims_name_result,wims_name_All
3757 bpr 16
 
3799 bpr 17
!set wims_name_upto=!nosubst Up to $slpcnt, comma-separated
3757 bpr 18
 
19
!set wims_name_instruction=Scripts in this library can be called from modules using the command \
5947 bpr 20
<span class="tt">!read</span> (or <span class="tt">!readproc</span> from within a phtml file).\
3757 bpr 21
For example, the line\
22
<pre>\
23
 !read slib/matrix/random 3, 5, 10\
24
</pre>\
25
generates a 3&times;5 matrix with random integer coefficients in [-10, 10].\
26
The result is placed in the variable\
5947 bpr 27
<span class="tt">slib_out</span>.\
3757 bpr 28
To call an slib script from OEF exercises, documents or forum\
29
messages, use the function\
5947 bpr 30
<span class="tt">slib()</span>.<p>\
3757 bpr 31
Only variables prefixed by \
5947 bpr 32
<span class="tt">slib_</span>\
33
are modified by these scripts.</p>