Subversion Repositories wimsdev

Rev

Rev 4210 | Rev 6305 | 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\
4210 bpr 6
 Required software\
3757 bpr 7
 Call from module\
8
 Call from OEF/Doc\
9
 Available scripts in slib\
10
 Variable list of comma-separated items\
3793 reyssat 11
 default\
3757 bpr 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
 
3799 bpr 15
!set wims_name_upto=!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 \
5947 bpr 18
<span class="tt">!read</span> (or <span class="tt">!readproc</span> from within a phtml file).\
3757 bpr 19
For example, the line\
20
<pre>\
21
 !read slib/matrix/random 3, 5, 10\
22
</pre>\
23
generates a 3&times;5 matrix with random integer coefficients in [-10, 10].\
24
The result is placed in the variable\
5947 bpr 25
<span class="tt">slib_out</span>.\
3757 bpr 26
To call an slib script from OEF exercises, documents or forum\
27
messages, use the function\
5947 bpr 28
<span class="tt">slib()</span>.<p>\
3757 bpr 29
Only variables prefixed by \
5947 bpr 30
<span class="tt">slib_</span>\
31
are modified by these scripts.</p>