This document is currently under integral style. You may change it to indexed or folding style. There is also a general help and a paper on WIMS.

### Development

WIMS (Www Interactive Multipurpose Server) is an internet server system designed for mathematical and other educational purposes.

The Wims server is composed of a kernel program which is a cgi program (wims.cgi), plus various activity units called modules''.

The client browser accesses the server via a http request to wims.cgi, with parameters specifying the name of the module to request, the type of the request, and possibly parameters for the module ; wims.cgi processes the requested module, passing the user parameters to it, and sends the result returned by the module back to the client.

A module may consist of a number of script files grouped in one directory. These scripts are written in a special scripting language: the WIMS language.

The WIMS language contains commands which allow it to call external programs (especially various mathematical softwares) to make sophisticated computations. Such commands are processed by wims.cgi and sent through interface programs which filter the request, check for security breaches, and send back a filtered output.

### Examples of what you can do with WIMS

The current version 4.15e of wims has several applications which demonstrates (non-exhaustively) what one can do with a wims system.
• Take a look at the animated plotter: it allows you to plot curves and surfaces with zooming, deforming and rotating effects, more easily as you may possibly imagine.
• The game Q-Puzzle gives a very good idea of how wims can provide a convenient way to combine multimedia means and abstract mathematical notions.
• The game-exercise Coincidence-freehand shows the possibility to create interactive graphic exercises of a new style.
• The exercise Correspondance gives an idea of the possibility of embedding javascript interactivity into a wims application.
• The exercise Accordance shows the possibility of linking different wims applications: except for the easiest level, such an exercise is practical only if the user can use computer to solve a linear system. Now such a solver (another wims application) is available directly in the exercise page, via a hypertext link. In order to teach the student to choose the appropriate tool, some irrelevant links are also added.
Please notice that the lack of direct data communication between the two modules is only a choice of the design of the module, in order to make the student type the matrices.
• The tool Function illustrates the possibility to create pages which are at the same time powerful and easy to use. By linking a plotter (gnuplot), a symbolic calculator (Maxima) and a numerical calculator (pari) at backend level, it allows the user to click on a root (or a local extremum) he sees on the curve, and get the value of the root (or local extremum) at arbitrary precision.
To achieve this, softwares are dynamically called at backend. First, gnuplot is used to draw the curve in the given interval. When the user clicks on a point, gp is called to try to find a root in the neighborhood of the point. If it fails, Maxima is called to compute the formal derivative of the function, and gp is called again to find a root of the derivative in the neighborhood (which will be the local extremum).
• This document itself is an illustration to the fact that wims can provide an easy way to dynamically reorganise contents of a document. By changing a parameter, contents of the document can be grouped, split, or chosen, in various ways. (Remark that this document is itself a wims module.)

### Comparison with other approaches

1. No need of software installation and/or update by users. All installation and/or update of background software is done on the server side, which can be anywhere on the internet. On the client machine, only a common web browser is required (which needs not to be very up to date).
2. No need to learn the usage and the syntax of a particular software package. As wims uses the html standard for user interface, a user, in particular a student, has only to use his usual knowledge of html browsing (which is now a common knowledge), in order to work on wims applications.
This is not the case for any of current mathematics softwares; all of them require a training period before the user can work on it. This training period may be more or less lengthy, but we remark that the knowledge of using a particular software is not a universal knowledge, and such a knowledge usually has a short lifespan. Moreover, teaching knowledge about a commercial software contradicts with the principle of commercial neutrality of a public education institution.
3. It provides a means to collect the knowledge and experience of the whole educational community. Wims is a modular system, where each application is a separated module whose links with other modules are done in the usual html way. This allows modules to be developped independently and remotely. It is our hope that as many educators as possible will add their knowledge and experience to the system by contributions in the form of new modules or improvements of existing ones.
4. It allows student - teacher interactions in several ways. Organized under the structure of classes, a wims system allows teacher to assign works for his students, and get reliable informations about the progress (and/or difficulty) of the student in real time. This may allow the teacher to give more personalised guide to the student. The big advantage of such a system based on internet is that there is no site restriction: any work done from any site (local or remote) is valid, and is taken into account.
5. It provides a dynamic interaction between different components, e.g. between exercises and computing tools. For example, practically no software dedicated to exercises can interface a computational tool as easily as wims does.
6. It can be more powerful than any given software for certain works. Because wims can use different (dedicated) software as backend engine, even several softwares for one application or one request.

1. Low speed of reaction. Because usually every wims response has to travel through internet. This will improve when internet speed improves.
2. Limited computational power and programming capability. If a user has a heavy computational job and/or has to design a complicated script to get his job done, he should work directly on the appropriate software. It is not at all the intention of wims to interface such activities.
3. Limited capability of the graphical interface. The html graphical user interface is not very suited for interactive works.

1. Easier to use. A html page used by wims for user interface is much more comprehensible than any hand calculator.
2. (Much) more powerful.

1. Non-portability. Wims is accessible only to computers connected to internet.

#### Advantage of wims versus interactive web applications based only on java or javascript

1. More powerful and more versatile. As wims can embed java or javascript programs in its applications, a wisely designed wims application just extends the capability of java or javascript.
And wims can really do more: even if it is theoretically possible to develop java applications which has the same power as a software used as a backend engine for wims, it would take too much effort to develop (is it reasonable to re-write TeX in java?), and would be so big that it would take forever for an http query to load.
2. Easier to develop. Because wims language is first based on html (easy to learn), with an extension specifically designed for this purpose.
3. Allows student-supervisor interaction. The design of server-based interactivity for users allows the back-end communication with supervisors, and much more (performance analysis, automatic intervention from supervisors, etc).

#### Disadvantage of wims versus interactive web applications based on java or javascript

1. Lower speed of reaction. Because usually every wims response has to travel through internet. This will improve when internet speed improves. One can also use embedded javascript or java in a wims application, in places where response speed is important.

1. Write html pages with a programmability extension: substitution of variables, conditional branching, etc. This wims programmability extension to html does not require any addon or plugin at the browser side, as all the wims commands are treated by the wims server before sending the result to the browser, which will be a standard html page.
For example, this allows you to define style macros which can be dynamically changed.
And this extension can cohabit with all the current (and hopefully future) html standards, including java applets, javascripts, embedded objects, dhtml... This is because the wims extension follows a strict line discipline (i.e. a wims command must start at the first word of a line), while html standard is not line-oriented.
This means that you can even embed wims extensions into javascripts, applets, dhtml...
2. Dynamic insertions of paints, plots and TeX formatted mathematical formulas into html pages. For example, you may insert the following line into your wims-extended html page. At the browser side, the visitor will see a TeX formatted matrix whose content varies with the value of the variable $matrix:  !instex $$\left( matrix \right)$$ Moreover, this implementation of dynamic insertions makes future updates possible without modification at module's level. (For example when a better way to render mathematical formula is available, a simple modification at server's level will immediately let all !instex lines take benefit of the new standard.) 3. Insplot is now animated! Exemple: the tool Tracés Animés . 4. Direct interfaces to powerful external software packages. For example, you may define a variable factor' by the following line:  factor=!exec pari print(factor($number))
Upon execution of this line, the variable will be replaced by its current value, then the software package PARI' will be called with the string print(factor(<value of $number>))' as command to execute. The output of the program, with the overheads stripped, will be placed as the value of the variable factor'. Interfaces provided in version 4.15e of wims: PARI, Maxima, MuPAD, Coq, Povray, gnuplot, PostgreSQL, Fly (gif drawing), CALC (by Keith Matthew). 5. Simple and versatile language. The language used for wims modules is an extension of the existing and popular html language. This extension is designed to be simple, easy to use and close to natural language. Synonymes are accepted whenever necessary. For example, to include the content of another file, you don't have to remember whether the command is include as in C, or input as in TeX, because both are valid. 6. Convenient directives for string manipulations: replace with regular expression capability, extraction of a subset from a list of items, shuffle, evaluation of mathematical expressions, etc. 7. Easy inline mathematical symbols: simply type$m_pi for , $m_RR for ,$m_eufM for , $m_le for ,$m_Rightarrow for , etc.
8. Intelligent treatment of mathematical expressions: built-in translation routines to allow error-tolerant expressions like 2y (instead of 2*y) or (x+1)(x-1) (instead of (x+1)*(x-1)), and translations of raw mathematical expressions into beautified html sources (x^3-3*x^2+1*x-5 will become x3-3x2+x-5 , etc.), or TeX sources, etc.
9. Powerful random capabilities: random permutation (shuffle), random record from a datafile, random filename, etc.

### Online development of activities

The system includes several facilities allowing you to create and develop WIMS activities directly online. To do so, you have only to click on the respective links from the home page of the server.

The easiest is the creation of simple interactive exercises which does not really require the knowledge about a computer language, but exercises that can be written in this way have limited power and versatility.

On the other hand, you can also develop full-power WIMS modules by working entirely on line. For obvious security reasons, you will need a login/password pair which you must ask the site manager to attribute to you. Once logged in, you can create and modify as many modules as you like, in a special development zone. When you have finished the development of a module, you can ask the site manager to move it to a public place.

The central piece of a wims server is a cgi program, usually in the name of wims.cgi. It takes all the http calls to the server, then does the following work:
1. Call the module asked by the user, and process parameters and variables according to what is defined in the module.
2. Session management.
3. Send the result of the process to the user.
4. Write to different log files.

A wims server is a modular system, with different applications as modules. At each new call to wims, the user has to specify which module he want to access.

A wims module may be an interactive course or interactive exercise (of any level), a computational tool, a dictionary, a mathematical game, a database, or a mixture of the above.

Wims modules are independent from each other. Each module has its own directory, which serves as its address, and contains all the files of this module. Different modules have different authors and different maintainers, and may follow different copyright policies.

There is no relation between modules in a same wims site, except hypertext links which allows one module to access another in various ways.

#### How to access a wims server

Wims is accessed by a request to the main cgi program, for example
http://wims.unice.fr/wims/wims.cgi


which usually should be followed by parameters. A call to the main wims.cgi program without parameter will bring up the wims homepage of the site.

Parameters of wims.cgi is a usual http name=value pair, where the name field may be one of the following:

• cmd: the value is the command of the call. Valid commands:
Parameter stringMeaning
cmd=introget introduction page of the module
cmd=newopen new working session
cmd=renewrestart working session
cmd=nextget next exercise (in a working session)
cmd=configset preferences
cmd=helpget contextual help
cmd=hintget contextual hint
cmd=resumeresume work (e.g. after help)
cmd=getinsget dynamic insertions: internal use
by the server. Not to be used by modules.
• module. the value is the name of the module which the user wants to access.
• session: the value is the number of the current session of the user.
The session number is automatically generated by wims.cgi, and is usually automatically contained in the pages sent by the server. Tampering with this parameter by the user (e.g. in order to spy into others' work) is not allowed and has practically no chance to get through.
• lang: the value defines the prefered language of the user.
• user: the value is the user name (for registered users; reserved for internal use).
• useropts: the value contains user options for the server. The format is coded and may varie from version to version.
• worksheet: reserved for internal use, for determining user works assigned by worksheets.
• special_parm: this parameter is reserved for special requests (help, etc).
• Any variables accepted by the module on which the user is working on (or wants to work on).
Example:
http://wims.unice.fr/~wims/wims.cgi?cmd=new&+module=tool/algebra/factor.en

calls the wims server at wims.unice.fr, with new' as the value of cmd', tool/algebra/factor.en' as the module name.

#### How to use the supervisor-side interface

Supervisors of registered classes can maintain their classes and consult results of students via the same web address (the main cgi program), just by logging in as supervisor. All the options are then available via html links and buttons.

### Structure of a WIMS module

Each wims module has a private home directory in which go all the files of this module.

A module must have at least the following files:
• A variable definition file var.def. This file defines external variables of the module. A parameter given by the user must have a name declared in this file, except parameter names reserved by wims (cmd, session, module, ...). And exactly variables declared in this file will be saved in the session directory (to be recalled at the next request from the same session).
• A variable processing file var.proc. This file is processed at EACH request of the module (except special requests: when cmd=intro or getins).
• A main phtml file main.phtml. This file will be processed at avery request to the module, except under special commands (when cmd=intro or getins).
• An indexing file INDEX, which defines the application's nature. This file will be used by wims database for searching available modules.

And it may often contain the following (optional) files too:

• A variable initialisation file var.init. This file has the same syntax as the file var.proc, and is processed exactly at requests with cmd=new or cmd=renew.
• A introductory page intro.phtml. This is a phtml file, which is processed when the module is accessed with cmd=intro. It is usually used to introduce the content of the module, and to let the user choose starting options.

There may be any number of other files, like a README file, one or more help pages, an about page, one or more graphics files, files called by one of the above mandatory or optional files, etc.

#### Variable processing files

The files var.init and var.proc, as well as any files called by these two files, are variable processing files.

A variable processing file is divided into lines, separated by non-escaped new-line characters. A new-line character can be escaped by the character \, in which case it does not separate the two lines before and after it.

Every line of a variable processing file must be one of the following:
1. A comment line, whose first non-space character is either the character #, or ! followed by another !.
2. A variable definition line, in the form of name=value. The content of value may be a string (if this string contains a new-line character, it must be escaped by the character \), or a wims variable command (which must then start with the character !).
3. A command line, whose first non-space character is the character !, followed by the command name and optional parameters.
If the command produces an output string, this output will be ignored.
4. A label line, whose first non-space character is the character :, followed by the name of the label. Anything following the label name will be considered as comment and ignored by the interpreter.
Label is used in conjunction with the jumping command !goto.
A label starting with the character '*' is catch-all, matching any !goto label.
5. Any line not fitting into one of the above 4 will generate a wims error message.

#### Phtml files

The files main.phtml and intro.phtml, as well as any files called by these two files, are phtml files (programmable html).

A phtml file is an ordinary html file, except for lines whose first non-space character is a ! or a :.

Lines can be escaped by \, just as in the case of a variable processing file.

A line starting with : is a label line, as in the case of a variable processing file.

A line starting with ! is a command line, as in the case of a variable processing file. To the difference that if the command produces an output string, this output will be inserted into the html page, at the place of the line.

Lines not of the above two types will be sent to the http client, after substitution of variables.

### Variables in a module

#### Definition and substitution of variables

Wims variables have only one type: they are all string variables. Numerical evaluation can be done on variables via the variable command !eval.

A variable may be defined or modified in a variable processing file, or by the commands !let and !default.

Variable names can contain any alphanumeric character, as well as the underscore character _. There is a limit to the length of variable names, and a limit to the length of values. (Limits depending on server configuration.)

Variable substitution can be done anywhere in a variable processing file or a phtml file (even in the name field of a variable definition line). A word preceeded by the character $is considered to be a variable name, and will be replaced by its value when the line containing it is processed. Special rules of variable substitution: • If the character$ is followed by a space, it will be discarded.
• The string  is replaced by a single $. • If the character$ is followed by the left parenthesis (, the matching ) will be located, the content of the pair of parentheses substituted. The result of the substitution will then be used as the name of variable, and finally the whole thing will be replaced by the value of the last variable. This allows nested substitutions, as well as substitution of a variable which is followed by an alphanumeric character.
Example: if the variable i has value 3 and the variable alpha3beta has value pi, the string
3*$(alpha$(i)beta)*x
will become
3*pi*x
after substitution.

Array addressing: if the variable l contains a comma-separated list a,b,c,d,e, then the string $(i[3]) gives c after substitution, and$(i[2 to 4]) tives b,c,d, etc.

Two-dimensional array addressing is also available: if

$M=x,y,z;a,b,c (a 2x3 matrix), then $(M[1;3,2])=z,y
• If the character $is followed by the left bracket [, the matching ] will be located, the content of the pair of brackets substituted then evaluated to a real number value whose precision depends on the value of print_precision. This value will replace the whole thing together with the leading$.
It can be used for array subscripts.
Example: if the variable i has value 3 and the variables
a1 has value 3 and
a2 has value pi,
then the string
  $(a$[$i-1])*x+$(a$[$i-2])
will become
  pi*x+3
after substitution.
• If the value of a variable being substituted contains the character $, this value will again be substituted, until no more substitution is needed. The server has a built-in limit of nested substitutions; infinite nested substitions will violate this limit and generate an error message. #### Reserved variable names The following names are reserved for their special meanings. They should not be used for internal needs of any module. • Do not use variables with names consisting only of numbers. They are reserved for future enhancements of the language. • Variables named cmd, module, session, lang, special_parm, user, useropts, worksheet, are reserved for special parameter passing by the user. A module's variable processing files or phtml files can read but cannot set them. Refer to the section Basic structure of WIMS for the meaning of these variables. • The variable no_name has a special use: Parameters in the user query string with no name (for example when the coordinate of a mappable image is passed this way to the http server) will be registered under this variable. For this reason, it should not be used for other purposes. • All variable names starting with wims_ will have special meanings for wims server. A module should read or write them only for the special meanings they are designed for. • Variable names starting with m_ are reserved for inline mathematical fonts. The module programmer may redefine them, but then their original meaning will be lost. • The variable module_dir has a value preset to the directory of the current module (with respect to the public home directory of the server). This value is usually$module_dir=module/module (but may vary with the config of the installation). • Variable names starting with module_ will have special meanings: they are used to hold variables defined in the module's INDEX file. Currently implemented variables: VariablesMeaning module_titletitle of the module module_descriptionshort description of the module module_authorname(s) of author(s) of the module module_addresse-mail address of the (principal) author module_maintainername of the actual maintainer module_maintainer_addresse-mail address of the maintainer module_copyrightcopyright notice of the module module_versioncurrent version of the module module_wims_versionminimal wims version required to run this module module_languagelanguage of the module (en, fr, de, or ...) module_categorycategory of the module (exercise, tool, course, pedia, recreation, adm, other) module_levellevel of the module module_domainalgebra, analysis, geometry, ... module_keywordskeywords, to be placed in the html header module_scoring= yes if the module gives scores according to wims standard module_dataaddress of datamodule Also, variables module_has_intro, module_has_help and module_has_about have value "yes" if the module's directory contains the respective .phtml file. These variables are used in the command !homeref. • Certain environment variables setup by httpd are readable by wims modules under names starting with httpd_. For example, the environment variable REMOTE_HOST becomes httpd_REMOTE_HOST under wims. Please refer to httpd protocol specifications for details of such variables. • All variable names starting with ins_, insplot_, instex_ will have special meanings for the corresponding dynamic insertion engines. A module should read or write them only for the special meanings they are designed for. • If your module uses an external package (e.g. pari), variable names starting with the name of the interface to that external package followed by _ will have special meanings for that interface, and should be reserved for that purpose. Table of Contents ### Variables with special meanings  wims_exec_error is used to store error messages of the external program called by !exec. For this reason, this variable will be overwritten each time a !exec command is executed. wims_module_log is used for individual module's log files: if this variable is non-empty, wims.cgi will put its content into the module's log file, at the end of the process of the user request. wims_version has a value preset to the current version of the wims server. wims_version_date has a value preset to the last compile date of the server program. wims_site_manager contains the electronic address of the site manager, as defined in the configuration file wims.conf of the site. Modules should not modify this variable. wims_print_precision defines the printing precision when a result of evaluation (via !eval or NaN) is converted to a character string. Default value: 8 (may be modified in wims.conf). wims_warn_ ... is ... wims_compare_precision is used to define error tolerance when wims compares two numerical values. Formula: !ifval a=b will return TRUE if abs(a-b)*10000) and in the commands !formradio, !formcheckbox. Its value is automatically reset to empty after the commands. (Defaults to empty string) wims_ref_class defines the css class in the command !href (). Its value is automatically reset to empty after the command. (Defaults to empty string) wims_ref_title defines the title in the command !href (). Its value is automatically reset to empty after the command. (Defaults to empty string) wims_html_mode can be used before a command as !formradio, !formcheckbox. It forces the results of the formradio to be inside the html mode. The value must be span, li, div. It could be td. wims_html_header is the standardised html header for all its modules' html outputs. Its value is defined in the file html/header.phtml. It is highly recommended that modules use this variable to define their html headers. wims_expire is used to define expiration dates of the pages sent to clients. Don't touch it if you don't know what this means. module_init_parm is... wims_ins_alt if the value is empty, no automatic alt is inserted (should be put in ins_attribut for example); if the value is none, alt="" is inserted. jquery_defined if the value is yes, one can use jquery script (some themes do not use it, so another solution must be found even if there is less functionnality as dragdrop).  ins_align defines the manner in which the inline picture is aligned with respect to the line. Possible values: bottom, middle or top. Default is empty (which means bottom). ins_attr is used to define miscallaneous attributes of a dynamic insertion. Examples:  ins_attr = align=middle (aligns the middle of the image with the baseline for the current textline), or  ins_attr = ismap (coordinates of the click will be passed back to the server; if the link of the element is the wims server, the coordinates will be registered under the variable no_name.) This variable is reset to empty after a dynamic insertion. ins_border is used to define border width of the html element IMG resulted from the dynamic insertion. Its value should be a positive number. This variable is reset to empty after a dynamic insertion. ins_density is used to define the density of the dynamic insertions. Default value: 100x100 . Avoid using this variable! We are planning to suppress it. Will be replaced by a server-managed variable. ins_format can be used to determine the format of the graphics file of the dynamic insertion: its value should be either gif or jpg. The default value of this variable is gif (which can be changed by modifying the file wims.conf; but such change is not recommended). Some types of dynamic insertions may not be affected by this variable. ins_quality is used to define quality of the graphics convertion used in dynamic insertions. Its value should be between 0 and 100. Affects only dynamic insertions whose graphics format is jpg. ins_tag is used for dynamic insertions within a form. In this case define ins_tag=form name where name is the name of the html element IMG within the form (optional). This variable is reset to empty after a dynamic insertion. insdraw_size is the size in pixels for the dynamic insertion. ins_filename is the name of the graphics file of the dynamic insertion (generated by wims). It must be taken just after the command !insdraw ins_url is the url of the graphics file of the dynamic insertion. It must be taken just after the command !insdraw insplot_data is ... insplot_font is ... insplot_set is ... insplot_split is ... insplot_transparent is used to define transparent color for insertions. Default is empty (no transparency). Usual value: 255,255,255(white is transparent).  wims_backslash_insmath if the value is yes, it is possible to use the notation  to insert mathematical expressions. force_mathml if the value is yes, force mathml output of tex formulas. disable_mathml If the value is 1, disable mathml output of tex formulas. The variable disable_mathml has priority on force_mathml. pari_precision give the pari precision of the computation with Pari/GP print_precision give the precision of the computed number at the end of the computation. maxima_precision give the maxima precision of the computation with Maxima. wims_multiexec If the value is yes, allow the multiexecution of the mathematical software use_comma If value is 1 moneyprint will use a decimal comma. Any other value or no value will use thedecimal point notation. Only to be used for presentation purposes. Table of Contents ### Data structure #### Arrays There is no special syntax in wims language for arrays. However, it is possible to design array-like variable structures, with integer or even string subscripts. This can be done using nested variable substitutions. For example, ... #### Fields in a string Wims variables are all string variables. There are three different ways to split a string into fields: • As a list of words, separated by white-space characters. Consecutive white-spaces are considered as one field separator. • As a list of lines, separated by new-line characters. Consecutive new-lines are considered as separating empty lines. • As a list of items, separated by commas ( , ). Consecutive commas are considered as separating empty items. This section is not yet finished. Sorry. Table of Contents ### List of commands WIMS commands can be used in variable processing files and phtml files. A command is a word preceeded by the character !. Commands has two types: • Execution commands, which are placed as the first word of a line. • Variable commands, which are placed at the beginning of a definition of a variable. Some commands can be used both as execution command and as variable command. Commands may accept parameters which are words following it. Parameter fields are separated by white spaces or special words (depending on the command). #### Here is the list of all commands. • append • Type: both execution and variable command • Syntax: !append object s1 to str • Meaning: String manipulation: append object s1 to the string str; object may be item, word, line, colon or semicolon. The object s1 should not be empty before evaluation. • bound • Type: execution command • Syntax: !bound vname between [integer] v1 and v2 [default defaultvalue] !bound vname within list [default defaultvalue] • Meaning: bound the range of the variable vname. Usually this is used on user-submitted variables. The first syntax is usually for numerical variables (integer or real, defaults to real). In this case v1 and v2 supplies the lower and upper bounds for the value of vname. In the second syntax, the value of vname is compared with each item of list. If no occurrence is found, the value of vname is replaced either by defaultvalue or the first item of list, according to whether defaultvalue is defined. In any case, defaultvalue is optional. • changeto • Type: execution command • Syntax: !changeto file [parm] • Meaning: Abandon the current file, changing processing to file. file is as in read. The parameter parm can be accessed from within the new file under the variable name wims_read_parm. • char • Type: both execution and variable command • Syntax: !char numlist of string • Aliases: chars • Meaning: Outputs selected characters of string, according to numlist.numlist can be a single integer, a comma-separated list of integers, or a range of integers. A positive integer denotes the number of character in string counted from the beginning, with 1 corresponding to the first character. A negative integer denotes the number of character from the end of string: -1 means the last character, -2 means the next-to-last character, etc. The syntax for a range of integers is n1 to n2. For example, 2 to -2 means the whole string except the first and the last characters. • charcnt • Type: variable command • Syntax: !charcnt string • Aliases: charcount, charno, charnum, lengthof • Meaning: Returns the number of characters in string. • checkdata • Type: variable command • Syntax: !checkdata • Aliases: checkdatamodule • Meaning: This command is used to check whether datamodules required by the present module are installed on the server. It returns "yes" if every required datamodule is installed or if no datamodule is required. Otherwise it returns the address of the first missing datamodule. If your module depends on datamodules to run, declare them in the INDEX file, then use this command to check the presence of the datamodules. If the answer is "no", you can take actions to lock further access to your module and/or show error messages. • column • Type: both execution and variable command • Syntax: !column numlist of string • Aliases: columns • Meaning: Outputs selected (comma-separated) columns of a matrix string, according to numlist. Rows of the matrix can be separated either by new lines or by semi-colon ;.numlist can be a single integer, a comma-separated list of integers, or a range of integers. A positive integer denotes the number of column in string counted from the beginning, with 1 corresponding to the first column. A negative integer denotes the number of column from the end of string: -1 means the last column, -2 means the next-to-last column, etc. The syntax for a range of integers is n1 to n2. For example, 2 to -2 means the whole string except the first and the last columns. The output is separated by commas if only one column is selected, or separated in the same way as the matrix string otherwise. • date • Type: both execution and variable command • Syntax: !date parm • Meaning: This is simply an interface to the Linux date utility. parm is the parameter string to the Linux command date, please refer to the man page of date for its syntax. The command returns the output of the date utility. • deaccent • Type: both execution and variable command • Syntax: !deaccent string • Meaning: Returns string with all accented letters (such as é, à, ï) folded to their unaccented counterparts. • debug • Type: both execution and variable command • Syntax: !debug parms • Meaning: This command is for debugging purposes: it substitutes the parameter parms, and stops the execution with a module error sent to the user. The content of the error message contains the result of the substitution. • declosing • Type: both execution and variable command • Syntax: !declosing string • Meaning: Strips off enclosing pair of parentheses ((),[],{}) in string. Useful for treatment of user-input vectors or sets, where some users use enclosing parentheses and other do not. • default • Type: execution command • Syntax: !default name=value • Meaning: put value into the variable name, if name is not already defined. value may be a variable command (together with optional parameters). • defof • Type: both execution and variable command • Syntax: !defof vname in fname • Aliases: definitionof, getdef • Meaning: Returns the definition of variables vname in the file fname. When vname contains several names, the values of each will be returned with the same separators as for the names. • detag • Type: both execution and variable command • Syntax: !detag string • Meaning: Removes html tags in string. It is very rudimentary and should be used with care. Very useful for security enhancement in some occasions (apply to user-supplied strings). • distribute • Type: execution command • Syntax: !distribute type string into namelist • Meaning: Distribute the content of string into variables namelist. The distribution can be done word by word, item by item, character by character or line by line, according to the word type. type can be one of the following: words, items, lines, chars. For example, if type is words, then the first (resp. second, etc.) variable in namelist will be set to the first (resp. second, etc.) word of string. • embraced • Type: both execution and variable command • Syntax: !embraced opword string • Meaning: executes an operation opword in each substring of string enclosed in a pair of curly braces. The curly braces in string can be nested, but the execution runs from outmost pair to innermost pair. Available opword: • randitem. Random item in every embraced text. • extract. Extracts the first (outmost) embraced text. • delete. Deletes all embraced contents (encluding the curly braces). • eval • Type: variable command • Syntax: !eval expr • Aliases: evalue • Meaning: Returns the numerical value of the expression expr. expr must evaluate to a real number (under the current version of wims). The evaluation is internally done in double precision, but the print precision can be changed by setting the variable wims_print_precision (whose default value is 8). If an error is found in the expression expr, 0 is returned. (I know that this is very bad; I just have no time to make everything right.) • evalsubst • Type: both execution and variable command • Syntax: !evalsubst name=val in expr • Aliases: evalsubstit, evalsubstitute, evaluesubst, evaluesubstit, evaluesubstitute • Meaning: Manipulation of mathematical expressions: substitute variable name by val in expr, then evaluate the expression to a real number. No regular expression is allowed in name. See also the commands !mathsubst, !replace. • exchange • Type: execution command • Syntax: !exchange var1 and var2 !exchange var1, var2 • Meaning: Exchanges the values of the variables var1 and var2. • exec • Type: both execution and variable command • Syntax: !exec command parms • Aliases: execute, run, call • Meaning: execute external command command with optional parameters parms. command must be a valid program name in the wims-public directory bin. When used as variable command, returns the output of the called program. • exit • Type: execution command • Syntax: !exit • Aliases: return • Meaning: Abandon the current file. If current file is called by another file, return to the latter. • fileappend • Type: execution command • Syntax: !fileappend fname content • Aliases: appendfile • Meaning: Append content to file fname. fname is a file residing in directory of the module, under the subdirectory writable. A new line will be added at the end of the content. Special case: if the file name starts with getfile/, the file is written to the getfile subdirectory of the session. This file is then accessible via the command !href cmd=getfile&special_parm=fname_without_getfile_prefix or a complete url wims_ref_name?session=$session&+cmd=getfile&+special_parm=fname_without_getfile_prefix • fileexists • Type: variable command • Syntax: !fileexists file • Aliases: filexists • Meaning: return yes if file is a file in the base directory public_html in the case of a non trusted module. If the command is executed from a trusted module, file may be of the form wimshome/address. For example, !fileexists themes/standard/_procs/tt.phtml or for a trusted module, !fileexists wimshome/log/classes/2001/Exindex • filewrite • Type: execution command • Syntax: !filewrite fname content • Aliases: writefile • Meaning: Write content to file fname. fname is a file residing in the module's directory, under the subdirectory writable. A new-line character will be added at the end of the content. Special case: if the file name starts with getfile, the file is written to the getfile subdirectory of the session. This file is then accessible via the command !href cmd=getfile&special_parm=fname_without_getfile_prefix , or a complete url $wims_ref_name?session=$session&+cmd=getfile&+special_parm=fname_without_getfile_prefix • for • Type: execution command • Syntax: !for var = start to end [step st ] !for var from start to end [step st ] !for var in list ... (multi-line content) !next • Meaning: For loop. In the first two forms, var goes from start to end, with optional step st. In the last form, var takes successively items in the list list. list is a list of items separated by commas. The command !break within the for loop breaks it. continue is not yet implemented in this version. It is recommended that the variable name var be added to the !next line. This has no effect for the time being, but may be used in future versions of wims. • form • Type: execution command • Syntax: !form cmdvar • Meaning: Creates a html form pointing to the wims server. Whenever possible, this command should be used instead of a direct use of html tag <form>. This command will create a <form> tag pointing to the wims server, adding <input> fields to pass session number (and other reserved things in the future). In lines which follow, other input (or select) fields may be added to the form. A final !formend must also be added by the programmer. cmdvar is an optional parameter. Its value should be a valid value for the variable cmd. In this case the value cmdvar will be automatically submitted to the variable cmd. If this parameter is missing or is invalid, then the programmer should add a <input type="hidden" name="cmd" value="..." /> tag before the final </form>. The target of the form can be controlled by the variable wims_ref_target. It can also be defined via an optional word target=.... Note that in this case the target must start with wims_. The variable wims_form_method which must be either get or post controls the method of the form. This method defaults to post for tool modules, and to get for all other modules. • formbar • Type: execution command • Syntax: !formbar name from n1 to n2 !formbar name list selectlist • Aliases: formradiobar, htmlbar, htmlradiobar • Meaning: Creates a bar of radio buttons under a previously defined html form. This bar should be arranged to represent values from small to big. No prompt is given to the user, except the indication that left is smaller. In the parameters, name defines the name field of the menu, and the values of the menu are either integers going from n1 to n2 (in the first syntax), or items in the list selectlist. The default of the menu will be the current value of the variable$name.
• formcheckbox
• Type: execution command
• Syntax: !formcheckbox name from n1 to n2 prompt promptlist
!formcheckbox name list selectlist prompt promptlist
• Aliases: htmlcheckbox
• Meaning: Creates a checkbox list menu under a previously defined html form.
This command speeds up the creation of checkboxed menus, as well as simplifies the source files. In the parameters, name defines the name field of the menu, and the values of the menu are either integers going from n1 to n2 (in the first syntax), or items in the list selectlist.
The optional parameter promptlist can be used to generate user prompts for each items in the list. If promptlist is empty or is shorter than selectlist, the undefined prompts will be replaced by the value. If it is longer, the rest will be ignored.
An id is created automatically, except if the variable wims_ref_id is specified just before. If the variable wims_html_mode has a value as div, li, td, the different items of the html form will be in the corresponding html environmment. If the variable wims_ref_class is non empty, the class of this html environment is the value of this variable. The default of the menu will be the current value of the variable $name. • formend • Type: execution command • Syntax: !formend • Meaning: Creates the balise which closes the form created by !form • formradio • Type: execution command • Syntax: !formradio name from n1 to n2 prompt promptlist !formradio name list selectlist prompt promptlist • Aliases: htmlradio • Meaning: Creates a radio button list menu under a previously defined html form. This command speeds up the creation of radio buttoned menus, as well as simplifies the source files. In the parameters, name defines the name field of the menu, and the values of the menu are either integers going from n1 to n2 (in the first syntax), or items in the list selectlist. The optional parameter promptlist can be used to generate user prompts for each items in the list. If promptlist is empty or is shorter than selectlist, the undefined prompts will be replaced by the value. If it is longer, the rest will be ignored. The default of the menu will be the current value of the variable$name.
• formselect
• Type: execution command
• Syntax: !formselect name from n1 to n2 prompt promptlist
!formselect name list selectlist prompt promptlist
• Aliases: htmlselect
• Meaning: Creates a select menu under a previously defined html form.
This command speeds up the creation of select menus, as well as simplifies the source files. In the parameters, name defines the name field of the menu, and the values of the menu are either integers going from n1 to n2 (in the first syntax), or items in the list selectlist.
The optional parameter promptlist can be used to generate user prompts for each items in the list. If promptlist is empty or is shorter than selectlist, the undefined prompts will be replaced by the value. If it is longer, the rest will be ignored.
The default of the menu will be the current value of the variable $name. The variable$wims_formselect_switch may be used to set switches (for example by letting wims_formselect_switch=multiple, the selection will be multiple.
• getopt
• Type: both execution and variable command
• Syntax: !getopt name in string
• Meaning: This command allows to extract the definition of a word in string under the form name=value.

It returns the defined value in the string, or the name itself if it appears in string but if there is no = sign following it, or an empty string if name does not appear in string as a word.

value can be a multi-word string, if it is enclosed by a pair of parentheses, brackets, curly braces or double quotes. The enclosing parentheses etc. will be removed from the output.

Spaces are allowed before and/or after the = sign.

• goto
• Type: execution command
• Syntax: !goto label
• Meaning: Unconditionally jump to label. label must be a valid label in the current file.
• Type: execution command

parm is reserved for future implementation.

• Type: execution command
• Meaning: Creates a standardised menu bar, usually to be included on the top of the page.
• hex
• Type: both execution and variable command
• Syntax: !hex string
• Aliases: tohex
• Meaning: Returns a new string replacing every character in string by its hexadecimal code.

In particular, the result can be used as part of a variable name whatever the content of string is (as long as it is not too long).

• homeref
• Type: execution command
• Syntax: !homeref parm
• Meaning: Creates a standardised table of links to wims homepage (and eventually other things). parm is reserved for future implementation.
• href
• Type: execution command
• Syntax: !href parms text
• Meaning: Creates a hypertext reference pointing to the wims server.
Whenever possible, this command should be used instead of a direct use of html tag <a href="...">.
parms is the string of parameters to the call to wims server, which should not contain white spaces. Usually a cmd=... pair should be at least present; on the other hand, the session number and prefered language will be directly added by the server.
text is the text on which the hypertext link sits. It can be any text or a <img...> tag, but dynamic insertions are not accepted yet.
There is no need to add the end tag </a>.

The target of the reference can be controlled via the variable wims_ref_target. It can also be defined via an optional word target=.... Note that in this case the target must start with wims_.

• htmlmath
• Type: both execution and variable command
• Syntax: !htmlmath expr
• Aliases: math2html
• Meaning: Translate the raw mathematical expression expr, into a form which can be best possibly rendered via html tags. If the expression is not a "machine-understandable mathematical expression", there is no garanty on the result (at the moment and in the future !).
• All digits or + or - following a ^ or _ are considered as in exponent/subscript; expression with ( ) following a ^ or _ are considered as in exponent/subscript parenthesis are remove (if no sign before) except in case of exponent and only digits.
• Get rid of 1*.. ..*1. example: in 1 * x, x/1, the 1 is removed.
• Replace scientific notation 35E-05 by 10 power and add multiplication sign. Remove the + or 0 useless.
• Replace some names as greek letters by their equivalents.
• Remove * or replace by multiplication sign.
• Replace <=, >=, ->, =>, <=> by their html equivalents if possible.
• if
• Type: execution command
• Syntax: !if string1 relation string2

... (multi-line content)

!endif
• Meaning: Conditional branching: execute the multi-line content between !if line and !endif line, if relation is verified. The leading and trailing spaces of string1 and string2 will be stripped before making comparisons.
Toutes les comparaisons sont faites sur des chaînes de caractères : string1 rel string2. Plusieurs comparaisons peuvent être reliées par les opérateurs and et or. Les parenthèses sont alors utilisées pour construire des expressions logiques complexes de comparaison.
Relations
RelationExemple
== string1 == string2
string1 = string2
avec if: vrai si string1 et string2 sont identiques ;
avec ifval: vrai si les évaluations numériques de string1 et de string2 sont égales.
!= string1 != string2
string1 <> string2
avec if: vrai si string1 et string2 ne sont pas identiques ;
avec ifval:vrai si les évaluations numériques de string1 et de string2 ne sont pas égales ;
< string1 < string2 vrai si l'évaluation numérique de string1 est strictement inférieure à celle de string2
<= string1 <= string2 vrai si l'évaluation numérique de string1 est inférieure ou égale à celle de string2.
> string1 > string2 vrai si l'évaluation numérique de string1 est strictement supérieure à celle de string2.
>= string1 >= string2 vrai si l'évaluation numérique de string1 est supérieure à celle string2.
isin string1 isin string2 vrai si string1 est une sous-chaîne de caractères de string2.
notin string1 notin string2 vrai si string1 n'est pas une sous-chaîne de caractères de string2.
iswordof string1 iswordof string2 vrai si string1 est un mot de string2.
notwordof string1 notwordof string2 vrai si string1 n'est pas un mot de string2.
isvarof string1 isvarof string2 vrai si string1 est une variable mathématique de l'expression string2.
notvarof string1 notvarof string2 si string1 n'est pas une variable mathématique de l'expression string2.
isvariableof string1 isvariableof string2 vrai si string1 est une variable mathématique de l'expression string2.
notvariableof string1 notvariableof string2 vrai si string1 n'est pas une variable mathématique de l'expression string2.
isitemof string1 isitemof string2 vrai si string1 est un item de la liste string2.
notitemof string1 notitemof string2 vrai si string1 n'est pas un item de la liste string2.
islineof string1 islineof string2 vrai si string1 est une ligne de string2.
notlineof string1 notlineof string2 vrai si string1 n'est pas une ligne de string2.
issamecase string1 issamecase string2 vrai si string1 et string2 sont les mêmes textes à des espaces multiples près, mais tenant compte de la casse des lettres.
notsamecase string1 notsamecase string2 vrai si string1 et string2 ne vérifient pas le critère ci-dessus.
issametext string1 issametext string2 vrai si string1 et string2 sont les mêmes textes à des espaces multiples près, à la casse près et aux lettres accentuées près.
notsametext string1 notsametext string2 vrai si string1 et string2 ne vérifient pas le critère précédent.

• ifval
• Type: execution command
• Syntax: !if string1 relation string2

... (multi-line content)

!endif
• Meaning: Same as if, but = (==), != compares the numerical values of string1 and string2 rather than the strings themselves.
• increase
• Type: execution command
• Syntax: !increase var
• Meaning: Increase the value of var by one. The value of var is first rounded to an integer.
• insdraw
• Type: execution command (only valid for phtml files)
• Syntax: !insdraw drawsource
• Aliases: inspaint
• Meaning: The server will call a paint program (flydraw), submit drawsource as its command (with variables substituted), and insert the result into the page.
• insmath
• Type: execution command (only valid for phtml files)
• Syntax: !insmath formula
• Meaning: According to the complicatedness of formula, the server will either render it as beautifully as possible using html tags, or translate formula into TeX source then call TeX to compile and finally transform the TeX result into a picture. The latter is inserted into the page (at the place of the command).
If the user browser knows mathml, then the formula is simply translated into mathml and sent to the browser. What is done is the following:
• replace .. by ,
• If there is no \ or { , apply rawmath if it is asked;
• If there is no \ or { , apply texmath if there is some computer matrix [1,2;4,5] or if there is a word as "sqrt int integrate sum prod product Int Sum Prod conj abs" or if there is some / in the formula.
• send it to instex (gifs) or to mathml or do nothing more according to ...
• insplot
• Type: execution command (only valid for phtml files)
• Syntax: !insplot plotsource
• Meaning: The server program will call an external plotting program (gnuplot for the current version), submit plotsource as the 2D plot command (with variables substituted), and insert the result into the page.
The syntax of plotsource is that of the plot command of gnuplot.
• insplot3d
• Type: execution command (only valid for phtml files)
• Syntax: !insplot3d plotsource
• Meaning: As for insplot, but plotsource is in the syntax of the splot command of gnuplot, and a 3D surface will be plotted.
• instex
• Type: execution command (only valid for phtml files)
• Syntax: !instex texsource
• Meaning: The server program will call TeX to process the (plain) TeX source texsource (after variable substitution), translate the result into a picture, and insert it into the page (at the place of the command).
A tip: avoid using substituted variables in texsource whenever possible. In this case Wims will use static instex, improving performance dramatically over dynamic instex.
The font color of the inserted text can be controled either by the variable instex_color, or by a \special{color=...} string in the texsource.
• instexstatic
• Type: execution command (only valid for phtml files)
• Syntax: !instexstatic gifname texsource
• Aliases: instexst, staticinstex, stinstex
• Meaning: This command is obsolete, and will be dropped in future versions. Use !instex instead.
• item
• Type: both execution and variable command
• Syntax: !item numlist of string
• Aliases: items
• Meaning: Outputs selected (comma-separated) items of string, according to numlist.numlist can be a single integer, a comma-separated list of integers, or a range of integers.
A positive integer denotes the number of item in string counted from the beginning, with 1 corresponding to the first item. A negative integer denotes the number of item from the end of string: -1 means the last item, -2 means the next-to-last item, etc.

The syntax for a range of integers is n1 to n2. For example, 2 to -2 means the whole string except the first and the last items.

• itemcnt
• Type: variable command
• Syntax: !itemcnt list
• Aliases: itemcount, itemno, itemnum
• Meaning: Returns the number of items in list.
• items2lines
• Type: both execution and variable command
• Syntax: !items2lines string
• Aliases: itemstolines, list2lines, listtolines
• Meaning: This command changes multiple items in string into multiple lines.
• items2words
• Type: both execution and variable command
• Syntax: !items2words string
• Aliases: itemstowords, list2words, listtowords
• Meaning: This command changes multiple items in string into multiple words.
• let
• Type: execution command
• Syntax: !let name=value
• Aliases: def, define, set
• Meaning: put value into the variable name. value may be a variable command (together with optional parameters).
• leveldata
• Type: both execution and variable command
• Syntax: !leveldata size xsize,ysize ranges x1,x2,y1,y2 function f(x,y) [levels l1,l2,...]
• Aliases: levelpoints
• Meaning: Computes coordinates of points on the level curve of f(x,y), at levels l1,l2,... (defaults to one level 0).

The computation is made from (x1,y1) to (x2,y2), and points are computed as integer positions in a picture with size xsize,ysize.

Order of the fields is not important. All the fields except levels are mandatory.

• line
• Type: both execution and variable command
• Syntax: !line numlist of string
• Aliases: lines
• Meaning: Outputs selected lines of string, according to numlist.numlist can be a single integer, a comma-separated list of integers, or a range of integers.
A positive integer denotes the number of line in string counted from the beginning, with 1 corresponding to the first line. A negative integer denotes the number of line from the end of string: -1 means the last line, -2 means the next-to-last line, etc.

The syntax for a range of integers is n1 to n2. For example, 2 to -2 means the whole string except the first and the last lines.

• linecnt
• Type: variable command
• Syntax: !linecnt string
• Aliases: linecount, lineno, linenum
• Meaning: Returns the number of lines in string.
• lines2items
• Type: both execution and variable command
• Syntax: !lines2items string
• Aliases: linestoitems, lines2list, linestolist
• Meaning: This command changes multiple lines in string into multiple items.
• lines2words
• Type: both execution and variable command
• Syntax: !lines2words string
• Aliases: linestowords
• Meaning: This command changes multiple lines in string into multiple words.
• listcomplement
• Type: both execution and variable command
• Syntax: !listcomplement list1 in list2
• Meaning: Returns items appearing in list2 but not in list1. Repetitive occurrences are eliminated.
• listfile
• Type: both execution and variable command; only for for trusted modules (in particular administrative modules).
• Syntax: !listfile filespec
• Aliases: listfiles, filelist, ls, dir
• Meaning: list files specified in filespec. Options to Linux command ls are accepted. The base directory is the base of the wims server. So if you want to list files in the current module, type
!listfile $module_dir • listintersect • Type: both execution and variable command • Syntax: !listintersect list1 and list2 • Aliases: listintersection • Meaning: Returns items appearing in both list1 and list2. Repetitive occurrences are eliminated. • listunion • Type: both execution and variable command • Syntax: !listunion list1 and list2 • Meaning: Returns items appearing in either list1 or list2. Repetitive occurrences are eliminated. • listuniq • Type: both execution and variable command • Syntax: !listuniq list • Aliases: listunique • Meaning: Returns items in list, with repetitive occurrences eliminated. • lookup • Type: both execution and variable command • Syntax: !lookup defname in fname • Meaning: Returns the definition of word defname in the file fname which must be a dictionary file in the same syntax as for the program translator (not necessarily sorted). fname may be either in the module directory (in this case the module directory need not be specified), or in the directory bases. • lower • Type: both execution and variable command • Syntax: !lower string • Aliases: lowercase, tolower • Meaning: Returns string with all upper case letters replaced by their lowercase counterparts. • mailto • Type: execution command; only for for trusted modules (in particular administrative modules). • Syntax: !mailto ... • Meaning: sends a email to a person whose address is the first line of the parameter. The second line is the subject of the message. And the rest is the body of the message. • mailurl • Type: both execution and variable command • Syntax: !mailurl address name ... • Meaning: Creates a javascript-crypted email interface that is difficult for spammer-robot to decrypt. The first word of the first line in the parameter should be the email address. The rest of the first line is the recepient name (default to email address). The second line and up is the mail subject. This command calls, in the order of priority, one of the following files: 1. "mailurl.proc" in the module directory. 2. "mailurl.proc" in the current theme. 3. "scripts/mailurl.proc". This allows site managers and authors to define different address encryption methods. Mail addresses are not encrypted when the user is within a virtual class. This command collapses some variables beginning with "mailurl_". • makelist • Type: both execution and variable command • Syntax: !makelist templ for v=v1 to v2 [step st], or • Meaning: Outputs a list consisting of templ with variable v successively substituted by values v1, ..., v2. In the second syntax, the substitutions are done with respect to each item in the list v1,v2,.... The variable v should appear in templ as a math variable (that is, with no preceeding character). For example, the command !makelist [x;x+1;xx] for x in a,x and y,1,(2,3) gives the result  !makelist [x;x+1;xx] for x in a,x and y,1,(2,3)  • mathmlmath • Type: both execution and variable command • Syntax: !mathmlmath expr • Aliases: math2mathml • Meaning: Translate the raw mathematical expression expr, into a form which can be best possibly rendered via mathml tags. The transformations are the same as in htmlmath command and the result is in html if mathml is not available. If the expression is not a "machine-understandable mathematical expression", there is no garanty on the result (today and in the future !). • All digits or + or - following a ^ or _ are considered as in exponent/subscript; expression with ( ) following a ^ or _ are considered as in exponent/subscript; parenthesis are remove (if no sign before) except in case of exponent and only digits. • Get rid of 1*.. ..*1. example: in 1 * x, x/1, the 1 is removed. • Replace scientific notation 35E-05 by 10 power and add multiplication sign. Remove the + or 0 useless. • Replace some names as greek letters by their equivalents. • Remove * or replace by multiplication sign. • Replace <=, >=, ->, =>, <=> by their html/mathml equivalents if possible. • Type: both execution and variable command • Syntax: !mathsubst name=val in expr • Aliases: mathsubstit, mathsubstitute • Meaning: Manipulation of mathematical expressions: substitute variable name by val in expr. No regular expression is allowed in name. See also the commands !evalsubst, !replace. • mexec • Type: both execution and variable command; only for for trusted modules (in particular administrative modules). • Syntax: !mexec command parms • Meaning: execute a module-private external command command with optional parameters parms. command must be a valid program name in the module'home directory. But the command is executed from the base directory of the server. When used as variable command, returns the output of the called program. • module • Type: both execution and variable command • Syntax: !module defname modname • Meaning: Returns the definition for defname of the module modname. The most common use of this command is to get the title of a module (defname is then title). The INDEX file of the module modname will be parsed to look for the definition of defname. • msg • Type: execution command • Syntax: !msg error [parm] • Meaning: Put an error message of type error, with eventual parm depending on error. • nonempty • Type: both execution and variable command • Syntax: !nonempty obj content • Aliases: non_empty • Meaning: obj can be item or line. The non-empty items or lines in content will be extracted. • nospace • Type: both execution and variable command • Syntax: !nospace string • Meaning: Collapses all space characters (' ', tab, newline) in string. • nosubst • Type: variable command • Syntax: !nosubst string • Meaning: Returns string as-is, without variable substitution. • pedia • Type: both execution and variable command • Syntax: !pedia keyword, name • Aliases: encyclopedia, encyclo • Meaning: Creates a hypertext link pointing to an online encyclopedia. keyword will be the name under which the reference is looked for, and should be a phrase with one or several words separated by space. Examples: finite field or linear transformation. name is the name of the link (i.e. what people see in their page, and can click on). Actually wims use Wikipedia as the standard reference encyclopedia. • positionof • Type: both execution and variable command • Syntax: !positionof [type] s in string • Aliases: position, positions • Meaning: Reports the positions of the object s in string. type can be char, word, item or line. If it is specified, then the comparison only takes place for corresponding objects of string which are identical to s. The output of the command is a list of positions (char, word, item or line, according to the value of type) where s is found in string. If type is missing, then s is searched in string as a substring, and the positions reported are character positions. • product • Type: both execution and variable command • Syntax: !product fn for v=v1 to v2 [step st] !product fn for v in v1,v2,v3,... • Aliases: prod, multiply • Meaning: Computes the product of a function fn(v) with variable v replaced successively by values v1, ..., v2. In the second syntax, the values are given with respect to each item in the list v1,v2,.... • randchar • Type: variable command • Syntax: !randchar str • Meaning: Returns a random character in str. • randfile • Type: variable command • Syntax: !randfile fname • Aliases: randrecord • Meaning: Returns a random record in the datafile fname. • randint • Type: variable command • Syntax: !randint n1, n2 !randint n1, n2 repeat i • Meaning: Returns a random integer between n1 and n2 (inclusive). Substitution and evaluation are done on n1 and n2 before applying random. If n2 is missing, returns random integer between 1 and n1 (inclusive). If both n1 and n2 are missing, returns 0. You can also type !randint n1, n2 repeat i to repeatedly generate i random integers. • randitem • Type: variable command • Syntax: !randitem list • Meaning: Returns a random item in list. Items are separated by commas. • randline • Type: variable command • Syntax: !randline str • Meaning: Returns a random line in str. • random • Type: variable command • Syntax: !random n1, n2 • Aliases: randdouble, randfloat • Meaning: Returns a random real number between n1 and n2. Substitution and evaluation are done on n1 and n2 before applying random. If n2 is missing, returns random number between 0 and n1. If both n1 and n2 are missing, returns 0. You can also type !random n1,n2 repeat i to repeatedly generate i random numbers. • randword • Type: variable command • Syntax: !randword str • Meaning: Returns a random word in str. • rawmath • Type: both execution and variable command • Syntax: !rawmath expr • Meaning: Translate the mathematical expression expr, possibly with common user errors, into a machine-understandable mathematical expression. It will replace (x+1)(x-1) into (x+1)*(x-1), 5x^3 into 5*x^3, etc. More precisely, • Replace some badcharacters as **, ², ³. • translate ++, +-, -+, ... into one sign • translate | | in abs • replace new lines or tabs by spaces • add zero in case of decimal digits if necessary: for example, replace 4. by 4.0 and .5 -> 0.5 • replace justapositions by multiplications if rawmatheasy=yes • rawmatrix • Type: both execution and variable command • Syntax: !rawmatrix expr • Meaning: Translate the matrix expr, possibly with common user errors, into a machine-understandable matrix expression. • reaccent • Type: both execution and variable command • Syntax: !reaccent string • Meaning: Replace accented letter compositions in string by accented letters (replacing e' by é, a by à, i" by ï, o^ by ô, etc.) The only exception is that ç and Ç are composed from c~ and C~ respectivement. • read • Type: execution command • Syntax: !read file [parm] • Aliases: include, input • Meaning: Insert the content of file, and process it. file must be a valid file name with the module's home directory as base directory. (directory structure may be specified in file, but backtracing to parent directories is prohibited.) And the parameter parm can be accessed from within the called file under the variable name wims_read_parm. WIMS will try to cache the file for repeated use, unless the filename is preceded by "./". • readproc • Type: execution command • Syntax: !readproc file [parm] • Meaning: Include a variable processing file file. file must be a valid file name with the module's home directory as base directory. (directory structure may be specified in file, but backtracing to parent directories is prohibited.) And the parameter parm can be accessed from within the called file under the variable name wims_read_parm. • record • Type: both execution and variable command • Syntax: !record numlist of fname • Aliases: records • Meaning: Outputs selected records of the datafile fname, according to numlist.numlist can be a single integer, a comma-separated list of integers, or a range of integers. A positive integer denotes the number of record in fname counted from the beginning, with 1 corresponding to the first record. A negative integer denotes the number of record from the end of fname: -1 means the last record, -2 means the next-to-last record, etc. The syntax for a range of integers is n1 to n2. For example, 2 to -2 means the whole fname except the first and the last records. • recordcnt • Type: variable command • Syntax: !recordcnt fname • Aliases: recordcount, recordno, recordnum • Meaning: Returns the number of records in the datafile fname. • recursion • Type: both execution and variable command • Syntax: !recursion fn for v=v1 to v2 [step st] !recursion fn for v in v1,v2,v3,... • Meaning: Computes the outcome of a recursion using the function fn in which the variable v is replaced successively by values v1, ..., v2. In the second syntax, the values are given with respect to each item in the list v1,v2,.... The function fn should use the variable last to indicate the value of the previous recursion step. And the starting value can be put into the WIMS variable$recursion_start.

• reinput
• Type: both execution and variable command
• Syntax: !reinput string
• Meaning: Prepares string to be inserted into a form input or textarea.

Browsers translate & primitives into corresponding (special) characters even when these primitives occur in input or textarea fields. Also, if string contains html tags, they may confuse browsers. You can use this command on the string (usually derived from an earlier user input) before inserting them back into a input or textarea, to avoid the above problems.

• rename
• Type: both execution and variable command
• Syntax: !rename f
• Meaning: Changes the reference to a file f, such as a graphics file reachable by direct http, into one with a different name using the method !getfile.

This command is useful with exercises where important information is carried by multimedia files (pictures, audios, movies). It can be used to hide the name of the multimedia file that otherwise would give clues to the solution of the problem.

The renamed file must be located within the module, and the filename f should start with $module_dir. The command returns a string which is the new URL. The file is not effectively copied or renamed on the server. • replace • Type: both execution and variable command • Syntax: !replace [internal] s1 by s2 in string !replace obj ident by s in string • Meaning: String manipulation. Under the first syntax, variable substitution is first done on string. Then all occurences of substring s1 are replaced by s2. When the keyword internal is absent, the Linux utility sed is called to make the replacements, therefore regular expressions are accepted in s1 and s2. Please refer to the man page of sed for details. Under the second syntax, obj can be char, word, item or line. Then the word, item or line identified by ident in string is replaced by s, after variable substitutions. ident can be a string, in this case all objects (words, items or lines) matching ident will be replaced. It can also be a number (positive or negative integer n), preceded by the word number. In this case the object number n will be replaced. (In the case where n<0, it is the last -n th object which is replaced.) • reset • Type: execution command • Syntax: !reset name1 [ ,name2,...] • Meaning: erase the content of the variable(s) name1, name2... • restart • Type: execution command; only for for trusted modules (in particular administrative modules). • Syntax: !restart parm • Meaning: Restart from a new request with parameters parm, usually for jumping to another module. This command can be only used before output starts. Repeated restart is disabled, to avoid infinite loops. • select • Type: both execution and variable command • Syntax: !select data where condition • Meaning: Outputs rows of a matrix data, according to condition. Rows of the matrix can be separated either by new lines or by semi-colon ;. The condition can use words column 1, column 2, etc. to designate comma-separated columns in each row. • setdef • Type: execution command • Syntax: !setdef defstr in fname • Meaning: Set definitions defstr in the file fname. • shuffle • Type: variable command • Syntax: !shuffle [even|odd] n • Aliases: randperm, randpermute • Meaning: Randomly permutes a set of n elements. n must be a positive integer not greater than 1024 in the first usage, or is the number of items in list in the second usage. For the first usage, the command returns a comma-separated list i1, i2, ..., in, where the items ik are randomly ordered elements of the set {1,2,...,n}. This command can be used in conjunction with commands !item, !line, !word, !char, to randomly permute items, lines, words, or characters in a string. For the second usage, a new list with randomly permuted items in list is returned. In any case, the variable wims_shuffle_order is set to be the list i1, i2, ..., in. When the optional word even or odd is present, only even/odd permutations are produced. • singlespace • Type: both execution and variable command • Syntax: !singlespace string • Meaning: Returns string with all space characters (space, tab, newline) replaced by , and multiple occurrences of space characters collapsed into single one. Leading and ending spaces are not removed. You can use this command in conjunction with trim if you want also to remove leading and ending spaces. This command is especially useful for comparisons between multi-word strings. • solve • Type: both execution and variable command • Syntax: !solve fn for v=v1 to v2 • Aliases: rootof • Meaning: Find out (real simple) roots of the function/equation fn for the variable v between v1 andv2. fn may have several roots in the interval [v1,v2], but roots too close to each other may be overlooked. • sort • Type: both execution and variable command • Syntax: !sort [nocase] [reverse] [numeric] type [of] string • Meaning: Sort string. The type of the sort may be char, word, list or line. After this command is executed, the sort order is stored in the variable wims_sort_order (as a list). This can therefore be used for relational sorting, in conjunction with commands !item, !line, !word or !char. • sum • Type: both execution and variable command • Syntax: !sum fn for v=v1 to v2 [step st] !sum fn for v in v1,v2,v3,... • Aliases: add • Meaning: Computes the sum of a function fn(v) with variable v replaced successively by values v1, ..., v2. In the second syntax, the values are given with respect to each item in the list v1,v2,.... • tail • Type: execution command • Syntax: !tail parm • Meaning: Standardized ending for html page outputs. Includes the command !homeref. parm is reserved for future implementation. • texmath • Type: both execution and variable command • Syntax: !texmath expr • Aliases: TeXmath, math2tex • Meaning: Translate the mathematical expression expr into a TeX source. If the expression is not a "machine-understandable mathematical expression", there is no garanty on the result (at the moment and in the future !). The transformations made are the following: • Transforms computer matrix as [ 4,5;6,7] in latex matrix. • Transforms A/B in {1 over B} A or { A over B} according to the priority of the presume type of A and B (integer, numeric, variable, poly, transcend). • transforms <=, <=> =>, -> in tex/latex codes. • Transforms a relation without a second member by adding 1. • Replace scientific notation 35E-05 by 10 power and add multiplication sign. Remove the + or 0 useless. • Remove the stars *. • Replace some names as greek letters by their equivalents. • interpret sum(), integrate, prod () (coming from maxima ) in tex/latex codes. • text • Type: both execution and variable command • Syntax: !text operation parameter • Meaning: This is intended to be a very powerful text manipulation tool, allowing very sophisticated processing of long text strings with high speed. Many of the operations accept masks. A mask is a string composed of 0s and 1s. For operations which accept a mask, only characters at positions whose corresponding character in the mask is not a 0 are processed. (In this sense positions corresponding to 0s are masked.) Empty mask is considered as of being entirely composed of 1s. A mask which is too short repeats itself, unless it terminates with a +, in which case it fills the rest with 1s, or with a -, in which case it fills the rest with 0s. For the time being, implemented operations are as follows. • !text common text1 and text2 [mask maskstring] Extracts characters in text1 one by one, for those identical to the corresponding characters in text2 and whose positions are not masked by maskstring. • !text compare text1 and text2 Compares the strings text1 and text2 character by character, and returns a mask string with 0s on positions where the corresponding characters in text1 and text2 are equal, and 1s otherwise. • !text copy text [mask maskstring] Returns non-masked characters in text. • !text count charlist in text [mask maskstring] Returns the number of characters in text whose positions are not masked by maskstring, and who appear in charlist. • !text diff text1 from text2 [mask maskstring] Extracts characters in text1 one by one, for those different to the corresponding characters in text2 and whose positions are not masked by maskstring. (Synonyme of diff: differ). • !text expand text using maskstring Produces a string, where positions corresponding to 0s in maskstring are filled by (the space character), and where positions corresponding to 1s in maskstring are filled by characters of text. The characters in text are used one by one, and the resulting string stops when all the characters in text are exhausted (or when the string reaches the length limit). • !text insert text1 into text2 [mask maskstring] Returns text2 with non-masked characters replaced by characters text1. Characters in text1 are used one by one (without taking into account the masking), and the replacement stops when there is no character left in text1. • !text interact text1 and text2 table itab [mask maskstring] Returns a new text which is result of interactions of characters in corresponding positions in text1 and text2. The rule of the interaction is defined in itab. itab contains n+1 lines, each of n characters. The first line defines the characters corresponding to each position in the following n lines which defines the multiplication table. The multiplication table needs not to be symmetric. In this case, the rows correspond to characters in text1, and the columns correspond to characters in text2. If text1 or text2 contains a character not in the first line of itab, the interaction at the corresponding position is considered as empty. Also, masked positions are ignored. If text1 and text2 have different lengths, the longer is cut to fit the shorter. • !text mark charlist in text Returns a mask string with 1s on positions where the corresponding character in text appears in charlist, and with 0s on other positions. • !text max text1 and text2 [mask maskstring] Returns a string which at each position is the character with highest ASCII code between corresponding characters in text1 and text2. The length of the result is that of the longest of the two. Masked positions are skipped. • !text min text1 and text2 [mask maskstring] Returns a string which at each position is the character with lowest ASCII code between corresponding characters in text1 and text2. The length of the result is that of the shortest of the two. Masked positions are skipped. • !text occur charlist in text [mask maskstring] Returns characters in charlist which occur in unmasked positions in text. (Synonymes of occur: appear, occurrence). • !text remove charlist in text [mask maskstring] Returns text in which masked characters and characters appearing in charlist are removed. (Synonymes of remove: drop, delete). • !text reorder text by orderlist Returns a reordered text using the order list orderlist. Reordering is cyclic if orderlist is shorter than text. orderlist must be a list of n positive integers, which is a permutation of the set {1,...,n}. If orderlist contains items other than integers within the bound, empty string is returned. However, unicity check is not performed on items of orderlist. • !text repeat text to len Repeat the string text cyclicly, up to length len. • !text reverse text Reverse the order of text, with the last character coming first, etc. • !text select charlist in text [mask maskstring] Returns text in which masked characters and characters not appearing in charlist are removed. (Synonymes of select: pick, pickup). • title • Type: execution command • Syntax: !title parm • Aliases: htmltitle, wimstitle • Meaning: Puts page's title in a standardized format. parm is reserved for future implementation. • translate • Type: both execution and variable command • Syntax: !translate [internal] s1 to s2 in string !translate [internal] s1 in string to s2 • Meaning: String manipulation: variable substitution is first done on string. Then all occurences of the first (resp. second, ...) character of s1 is replaced by the first (resp. second, ...) character of s2. When the keyword internal is absent, the Linux utility tr is called to make the translations, therefore regular expressions are accepted in s1 and s2. Please refer to the man page of tr for details. • trim • Type: variable command • Syntax: !trim string • Meaning: Returns string with leading and trailing spaces stripped off. • upper • Type: both execution and variable command • Syntax: !upper string • Aliases: uppercase, toupper • Meaning: Returns string with all lower case letters replaced by their uppercase counterparts. • values • Type: both execution and variable command • Syntax: !values fns for v=v1 to v2 [step st] !values fns for v in v1,v2,v3,... • Meaning: Outputs a list of values of fns with variable v replaced successively by values v1, ..., v2. In the second syntax, the values are given with respect to each item in the list v1,v2,.... fns may be a comma-separated list of functions. This command can also be used to make recursions. If the functions fns contain a variable named last, this variable will take the value of the last step each time. And the starting value can be put into the WIMS variable$recursion_start.

• varlist
• Type: both execution and variable command
• Syntax: !varlist [nofn] formula
• Aliases: listvar
• Meaning: Manipulation of mathematical expressions: returns list of variable names (and function names) appearing in the formula.

If the switch nofn is present, function names will not be listed.

• warn
• Type: execution command
• Syntax: !warn subject
• Aliases: warning
• Meaning: Outputs a warning message related to subject. Does nothing if no warning message about subject is present.
• while
• Type: execution command
• Syntax: !while string1 relation string2
• Meaning: Conditional branching: execute the multi-line content between !while line and !endwhile line, until relation is no longer verified. The leading and trailing spaces of string1 and string2 will be stripped before making comparisons.

The syntax is the same as for if.

• whileval
• Type: execution command
• Syntax: Same as the command while,
but = (==), != compares the numerical values of string1 and string2
rather than the strings themselves.
• word
• Type: both execution and variable command
• Syntax: !word numlist of string
• Aliases: words
• Meaning: Outputs selected words of string, according to numlist.numlist can be a single integer, a comma-separated list of integers, or a range of integers.
A positive integer denotes the number of word in string counted from the beginning, with 1 corresponding to the first word. A negative integer denotes the number of word from the end of string: -1 means the last word, -2 means the next-to-last word, etc.

The syntax for a range of integers is n1 to n2. For example, 2 to -2 means the whole string except the first and the last words.

• wordcnt
• Type: variable command
• Syntax: !wordcnt string
• Aliases: wordcount, wordno, wordnum
• Meaning: Returns the number of words in string.
• words2items
• Type: both execution and variable command
• Syntax: !words2items string
• Aliases: wordstoitems, words2list, wordstolist
• Meaning: This command changes multiple words in string into multiple items.
• words2lines
• Type: both execution and variable command
• Syntax: !words2lines string
• Aliases: wordstolines
• Meaning: This command changes multiple words in string into multiple lines.

### List of inline mathematical symbols

The symbol names are based on corresponding TeX names.

SymbolName tt
, , ,... ,... $m_alpha,$m_beta,$m_gamma...$m_pi...$m_omega , , , , , , , , , ,$m_Gamma, $m_Delta,$m_Lambda, $m_Phi,$m_Psi, $m_Pi,$m_Sigma, $m_Theta,$m_Upsilon, $m_Xi,$m_Omega
, , , , , $m_varepsilon,$m_varphi, $m_wp,$m_ell, $m_Re,$m_Im
, , , $m_aleph,$m_infty, $m_nabla,$m_partial
, , , , ... $m_AA,$m_CC, $m_RR,$m_QQ, $m_ZZ ... , ,... ,...$m_calA, $m_calB,...$m_calM,... $m_calZ , ,... ,...$m_eufA, $m_eufB,...$m_eufM,... $m_eufZ , ,... ,...$m_eufa, $m_eufb,...$m_eufm,... $m_eufz , , , ,$m_le, $m_ge,$m_pm, $m_times,$m_div
, , , $m_neq,$m_equiv, $m_cong,$m_approx
, , , , , $m_leftarrow,$m_rightarrow, $m_mapsto,$m_Leftarrow, $m_Rightarrow,$m_Leftrightarrow
, , , $m_exists,$m_forall, $m_in,$m_emptyset
, , , , , , , $m_subset,$m_supset, $m_subseteq,$m_supseteq, $m_cap,$m_cup, $m_prec,$m_succ
, , , $m_sum,$m_prod, $m_coprod,$m_surd
, , , , $m_int,$m_oint, $m_Vert,$m_oplus, $m_otimes , , ,$m_bigtriangleup, $m_bigtriangledown,$m_bigvee, $m_bigwedge Besides, large parentheses are available under the name of$m_leftpar2, $m_leftpar3,...,$m_leftpar10 and $m_rightpar2,$m_rightpar3,..., $m_rightpar10. They can be used to inclose matrices of 2,3,...,10 rows. Ditto for leftbrace and rightbrace. Table of Contents ### List of slib (library of scripts) Les scripts de cette bibliothèque peuvent être appelés d'un module en utilisant la commande !read (ou !readproc à partir d'un fichier phtml). Par exemple, la ligne  !read slib/matrix/random 3, 5, 10  permet de construire une matrice 3×5 avec des coefficients entiers aléatoires dans [-10, 10]. Le résultat est affecté à la variable slib_out. Pour appeler un script slib d'un exercice OEF, d'un document ou dans un message du forum, on utilise la fonction slib(). Par exemple \text{a=slib( ... ) } Seules les variables préfixées par slib_ sont modifiées par ces scripts. ## Liste de scripts disponibles Tous Résultat algebra/partitionconjPartition conjuguée [] algebra/partitiondraw Dessiner des diagrammes de Young d'une partition [] algebra/partitionlexNouvelle partition pour l'ordre lexicographique décroissant [] algebra/slopedrawPolygone tracé à partir des pentes (dessin) [] analysis/inversedomainImage réciproque de régions [] analysis/odejsTracés de solutions d'un système différential (avec jsxgraph). [] analysis/odejs2Dessin de solutions d'un système différentiel, dans le plan (t, x/y) et dans le plan (x,y). [] analysis/odephasePortrait de phase d'un système différentiel autonome [] analysis/rungekuttaEquation différentielle (par Runge-Kutta) experimental en faire une liste sans dessin [] analysis/slopefieldChamp de direction (par exemple pour un système différentiel) [] chemistry/brut2htmlforme HTML de la formule d'une molécule [] chemistry/chemeq_addCalcule une combinaison d'équations chimiques [] chemistry/chemeq_compareCompare des équations chimiques [] chemistry/chemeq_componentsComposants chimiques [] chemistry/chemeq_elRetourne le nombre d'électrons dans une réaction d'oxydoréduction [] chemistry/chemeq_equilibriumAnalyse de l'équilibre dans les formules chimiques [] chemistry/chemeq_massMasse molaire [] chemistry/chemeq_revRenvoie une équation chimique inversée [] chemistry/chemeq_rqQuotients de réaction composée et lois de Nernst pour les équations chimiques [] chemistry/chemeq_texComposés moléculaire et équations chimiques [] chemistry/chemshowDessin d'une molécule en 2D [] chemistry/cramReprésentation de Cram [] chemistry/jmolbuttonBouton dans Jmol. Doit apparaitre APRES l'applet Jmol. [] chemistry/jmolcheckboxBouton Checkbox (bouton carré de validation) dans Jmol [] chemistry/jmolradiogroupRadiobuttons (boutons ronds) dans Jmol [] chemistry/jmolshowApplet Jmol [] chemistry/leftindIndices et exposants à gauche et droite [] chemistry/molarmassMasse molaire [] chemistry/moleculeTableau périodique [] chemistry/moleculeViewerVisualiseur de molécules sous Java [] chemistry/newmanProjection de Newman [] circuits/complistList available circuit components [] circuits/compposComponent position information of a circuit type. [] circuits/drawDraw circuit scheme according a circuit type. [] circuits/drawcompDraw circuit components according to a circuit type. [] circuits/drawwireDraw the fixed circuit wiring of a given circuit type. [] circuits/rangeSize and range information of a circuit type. [] data/columnsortSort data according to a column [] data/randlineTake a random line of a data file [] data/randomRandomly selects a number of (different) objects [] data/randrecTake a random field of a record file [] draw/balanceBalance (Roberval) [] draw/brokenlinegraphTrace une fonction affine par morceaux continue en connaissant les points de changement de pente [] draw/clockDessine une horloge réglée sur l'heure donnée [] draw/convpixelConversion de coordonnées [pixels] <-> [repère mathématique] [] draw/dominoDomino [] draw/drtgradueeDroite graduée [] draw/graphvizGraphviz [] draw/graphvizpointsCoordonnées des noeuds d'un graphe créé précédemment avec graphviz. [] draw/meterCompteur avec aiguille configurable. [] draw/polygonPolygone régulier [] draw/radar Radar [] draw/randpolygonPolygone quelconque [] draw/rangeProduit d'intervalles [] draw/repdroiteCalcule les coordonnées des deux points extrêmes pour tracer une droite dans un repère [] draw/repereTrace un repère [] draw/thermometerThermomètre avec niveau configurable [] function/boundsLes bornes d'une fct réelle à une variable sur un intervalle [x1,x2] [] function/bounds2Des bornes d'une fonction réelle à deux variables dans un rectangle [x1,x2], [y1,y2] [] function/integrateIntégration définie ou non d'une fonction à une variable [] games/chessboardEchiquier [] games/chessimageEchiquier (image) [] games/chessmvMouvement dans un jeu d'échecs [] geo2D/geogebraApplet GeoGebra (html5) [] geo2D/geogebra3Applet GeoGebra (java) [] geo2D/ggb2jsxgraphGeogebra to Jsxgraph [] geo2D/jsxgraphPlugin pour JSXGraph [] geo2D/squaretileRéseau de carrés [] geo3D/3DviewerVisualiseur 3D [] geo3D/CaRapplet 3D avec C.a.R [] geo3D/Convex3DApplet polyèdre avec Convex3D [] geo3D/drawPolyèdre avec flydraw [] geo3D/drawtileRéseaux de cubes [] geo3D/off2jmolConversion du format off en un script jmol [] geo3D/off2xyzConversion du format off au format xyz [] geo3D/polyhedraApplet de tracé de polyèdre avec C.a.R [] geo3D/polyhedradualApplet de tracé de polyèdre et de son dual avec C.a.R [] geo3D/threeDApplet ThreeD [] graph/connexcomponentComposantes connexes d'un sommet dans un graphe [] graph/connexityComposantes connexes d'un graphe simple [] graph/distanceMatrice du diamètre d'un graphe [] graph/drawDessin de graphe [] graph/drawccDessin de graphe avec une composante connexe colorée [] graph/drawtreeDessin d'arbre [] graph/gptGraphe orienté sans circuit [] graph/graphvizGraphviz [] graph/pathChemins dans un graphe [] graph/randomconnexGraphe connexe aléatoire [] graph/randomeulerGraphe aléatoire ayant une chaine eulérienne [] graph/randtreeArbre aléatoire [] graph/shortpathPlus court chemin dans un graphe [] graphpaper/correct_milliGraphic paper sheet with red correct plot preloaded [] graphpaper/funcOne function plot, ready to append to a previously made graph paper [] graphpaper/func_milliGraphic paper sheet with function plot and red correct plot preloaded [] graphpaper/imgpointsUtility for a clickable graphic paper sheet [] graphpaper/millimetreGraphic paper sheet [] graphpaper/stringsPrepare strings to be written on a graphic paper sheet [] graphpaper/tographUtility for a clickable graphic paper sheet [] graphpaper/whereclickUtility for a clickable graphic paper sheet [] lang/enword2ipaIPA transcription of english words [] lang/epd2ipaIPA transcription according to epd ascii codage (for english) [] lang/fnamePrénoms au hasard [] lang/fraccordAccord of French adjectives and names [] lang/frapostropheApostrophe reduction of a French text [] lang/frartdefTransform a French noun into definite form [] lang/frcodcoiFind a random complement of a French verb [] lang/frverbconjThe conjugation of a French verb [] lang/imagesImages in some datamodule [] lang/randomwordOutput random words in the dictionary [] lang/sampa2ipaIPA transcription according to Sampa Ascii codage (for english) [] lang/swacInsertion of words (audio) from the swac packs [] life/frcommodityGive a random commodity with given price, French [] list/selshufSelective shuffle [] matrix/concateconcatenation [] matrix/detThe determinant of a square matrix [] matrix/givenrankGenerates a random matrix of given rank [] matrix/inverseThe inverse of a square matrix [] matrix/invertibleGenerates a random invertible matrix [] matrix/itriangularGenerates a random invertible triangular matrix [] matrix/non0Matrice au hasard ayant des coefficients non nuls [] matrix/orthogonalGenerates a random orthogonal matrix [] matrix/randomGenerates a random matrix [] matrix/traceThe trace of a square matrix [] matrix/transposeThe transpose of a matrix [] matrix/triangularGenerates a random triangular matrix [] matrix/unimodularGenerates a random unimodular matrix [] media/audioAudio insertion [] media/dewplayerAudio insertion with dewplayer [] media/playerAudio insertion with hbs_mp3_player [] media/player_mp3_multiAudio insertion with player_mp3_multi [] media/videoInsertion d'une vidéo [] numeration/babylonienEcriture Babylonienne d'un nombre entier [] numeration/baseblockBlocs de base en numération [] numeration/basepPassage de la base dix vers la base p. [] numeration/ecriturelettreÉcriture d'un nombre en lettres. [] numeration/ecriturenombreEcriture d'un nombre avec regroupement des chiffres par trois. [] numeration/egyptienEcriture égyptienne d'un nombre entier [] numeration/romainNumération romaine [] oef/blankGestion des blancs [] oef/codelimOEF code length limit register [] oef/codenameRegister OEF code reply name allow/deny [] oef/envGet an OEF environment variable [] oef/insfilenameOutput the file name of the last insert [] oef/newfileSave a text in a file [] oef/postsrcOEF code input postpender [] oef/presrcOEF code input prepender [] oef/sortorderSort order [] polynomial/randomRandom polynomial [] set/subsetSous-ensembles d'un ensemble [] stat/1dComputes 1-dimensional statistical data [] stat/arithmeanArithmetic mean of statistical data [] stat/betaSimulation de réalisations d'une variable aléatoire suivant la loi beta [] stat/betacdfFonction de répartition de la loi Beta [] stat/betainvQuantile de la loi Beta [] stat/betapdfDensité de probabilité de la loi Beta [] stat/binomialSimulation de réalisations d'une variable aléatoire suivant la loi binomiale. [] stat/binomialcdfFonction de répartition de la loi binomiale [] stat/binomialinvQuantile de la loi binomiale [] stat/binomialpdfDensité de probabilité de la loi binomiale [] stat/boxplotBox plot [] stat/cauchySimulation de réalisations d'une variable aléatoire suivant la loi de Cauchy. [] stat/cauchycdfFonction de répartition de la loi de Cauchy [] stat/cauchyinvQuantile de la loi de Cauchy [] stat/cauchypdfDensité de probabilité de la loi de Cauchy [] stat/chi2Simulation de réalisations d'une variable aléatoire suivant la loi du chi-deux [] stat/chi2cdfFonction de répartition de la loi du chi-deux [] stat/chi2invQuantile de la loi du chi-deux [] stat/chi2pdf Densité de probabilité de la loi du chi-deux [] stat/correlationMatrix of correlation [] stat/covarianceMatrix of covariance [] stat/deviationDeviation of statistical data [] stat/discretelawGeneration of a discrete law with nonnegative coefficients [] stat/effectifEffectifs de la série statistique dans les classes [] stat/empiricSimulation de réalisations d'une variable aléatoire suivant la loi discrète [] stat/exponentialSimulation de réalisations d'une variable aléatoire suivant la loi exponentielle. [] stat/exponentialcdfFonction de répartition de la loi exponentielle [] stat/exponentialinvQuantile de la loi exponentielle [] stat/exponentialpdfDensité de probabilité de la loi exponentielle [] stat/fisherSimulation de réalisations d'une variable aléatoire suivant la loi de Fisher. [] stat/fishercdfFonction de répartition de la loi de Fisher [] stat/fisherinvQuantile de la loi de Fisher [] stat/fisherpdfDensité de probabilité de la loi de Fisher [] stat/freqFrequencies of statistical data [] stat/gammaSimulation de réalisations d'une variable aléatoire suivant la loi Gamma. [] stat/gammacdfFonction de répartition de la loi Gamma [] stat/gammainvQuantile de la loi Gamma [] stat/gammapdfDensité de probabilité de la loi Gamma [] stat/geomeanGeometric mean of data [] stat/geometricSimulation de réalisations d'une variable aléatoire suivant la loi géométrique sur N [] stat/geometric1Simulation de réalisations d'une variable aléatoire suivant la loi géométrique sur N* [] stat/geometric1cdfFonction de répartition de la loi géometrique sur N* [] stat/geometric1invQuantile de la loi géométrique sur N* [] stat/geometric1pdfDensité de probabilité de la loi géometrique sur N* [] stat/geometriccdfFonction de répartition de la loi géométrique sur N [] stat/geometricinvQuantile de la loi géométrique sur N [] stat/geometricpdfDensité de probabilité de la loi géometrique sur N [] stat/harmonicHarmonic mean of statistical data [] stat/histoHistogram [] stat/hypergeometricSimulation de réalisations d'une variable aléatoire suivant la loi hypergéométrique [] stat/hypergeometriccdfFonction de répartition de la loi hypergéométrique [] stat/hypergeometricinvQuantile de la loi hypergéométrique [] stat/hypergeometricpdfDensité de probabilité de la loi hypergéométrique [] stat/laplaceSimulation de réalisations d'une variable aléatoire suivant la loi de Laplace [] stat/laplacecdfFonction de répartition de la loi de Laplace [] stat/laplaceinvQuantile de la loi de Laplace [] stat/laplacepdfDensité de probabilité de la loi de Laplace [] stat/linearcongGeneration of linear congruential random integers [] stat/logisticSimulation de réalisations d'une variable aléatoire suivant la loi logistique [] stat/logisticcdfFonction de répartition de la loi logistique [] stat/logisticinvQuantile de la loi logistique [] stat/logisticpdfDensité de probabilité de la loi logistique [] stat/lognormalSimulation de réalisations d'une variable aléatoire de loi lognormale [] stat/lognormalcdfFonction de répartition de la loi log-normale [] stat/lognormalinvQuantile de la loi log-normale [] stat/lognormalpdfDensité de probabilité de la loi log-normale [] stat/medianData median [] stat/multinomialSimulation de réalisations d'une variable aléatoire suivant la loi multinomiale [] stat/nbinSimulation de réalisations d'une variable aléatoire suivant la loi binomiale négative [] stat/nbincdfFonction de répartition de la loi binomiale négative. [] stat/nbininvQuantile de la loi binomiale négative [] stat/nbinpdfDensité de probabilité de la loi binomiale négative. [] stat/normalSimulation de réalisations d'une variable aléatoire suivant la loi gaussienne [] stat/normalcdfFonction de répartition de la loi normale [] stat/normalinvQuantile de la loi normale [] stat/normalpdfDensité de probabilité de la loi normale [] stat/pascalSimulation de réalisations d'une variable aléatoire suivant la loi de Pascal [] stat/pascalcdfFonction de répartition de la loi de Pascal [] stat/pascalinvQuantile de la loi de Pascal [] stat/pascalpdfDensité de probabilité de la loi de Pascal [] stat/piechart Pie chart [] stat/poissonSimulation de réalisations d'une variable aléatoire suivant la loi de Poisson. [] stat/poissoncdfFonction de répartition de la loi de Poisson [] stat/poissoninvQuantile de la loi de Poisson [] stat/poissonpdfDensité de probabilité de la loi de Poisson [] stat/posdiscretelawGeneration of a discrete law with positive coefficients [] stat/prodProduct of data [] stat/quadraticQuadratic mean [] stat/quantileQuantile [] stat/randomGeneration of random numbers [] stat/rangeData range [] stat/studentSimulation de réalisations d'une variable aléatoire suivant une loi de Student. [] stat/studentcdfFonction de répartition de la loi de Student [] stat/studentinvQuantile de la loi de Student [] stat/studentpdfDensité de probabilité de la loi de Student [] stat/sumData sum [] stat/varianceVariance [] stat/weibullSimulation de réalisations d'une variable aléatoire suivant la loi de Weibull. [] stat/weibullcdfFonction de répartition de la loi de Weibull [] stat/weibullinvQuantile de la loi de Weibull [] stat/weibullpdfDensité de probabilité de la loi de Weibull [] text/approximationCalcul d'intervalle approché pour un réel donné [] text/balloonBulles de texte (façon cartoon) [] text/cdecommentExtract comment from a c source code. [] text/comblinSimplify a linear combination [] text/crosswordCrossword [] text/cutchoice2Cut out embedded choices for OEF [] text/cutchoicesCut out embedded choices for OEF [] text/markerrorFor marking words with mistake [] text/markgroupFor marking group of words with given explanation [] text/marktextTexte for use with type mark for OEF (word) [] text/marktextpartialFor marking some words with given explanation [] text/markwordFor use with type mark in OEF [] text/matrixhtmlTransform a matrix into html matrix (table). [] text/matrixinsertInsert a coefficient in a matrix [] text/matrixtex Matrix in Latex [] text/maximamatrixTransform a matrix to maxima format [] text/octavematrixTransform an octave output matrix into standard format [] text/sigunitsMake a representation of a physical quantity with a given number of significative digits [] text/spiraleWrite on a spirale [] text/whitespaceReplace white spaces [] triplerelation/tabularDouble entry table for training to relations between three quantities [] utilities/dateDate [] utilities/mathcalcMathcalc [] utilities/nopasteNo copy-paste [] utilities/notepadNotepad [] utilities/tooltipTooltip containing an html text which appears when the mouse points on a word. [] utilities/trigo-calcInline Trigonometric calculator [] algebra Résultat algebra/partitionconjPartition conjuguée [] algebra/partitiondraw Dessiner des diagrammes de Young d'une partition [] algebra/partitionlexNouvelle partition pour l'ordre lexicographique décroissant [] algebra/slopedrawPolygone tracé à partir des pentes (dessin) [] analysis Résultat analysis/inversedomainImage réciproque de régions [] analysis/odejsTracés de solutions d'un système différential (avec jsxgraph). [] analysis/odejs2Dessin de solutions d'un système différentiel, dans le plan (t, x/y) et dans le plan (x,y). [] analysis/odephasePortrait de phase d'un système différentiel autonome [] analysis/rungekuttaEquation différentielle (par Runge-Kutta) experimental en faire une liste sans dessin [] analysis/slopefieldChamp de direction (par exemple pour un système différentiel) [] chemistry Résultat chemistry/brut2htmlforme HTML de la formule d'une molécule [] chemistry/chemeq_addCalcule une combinaison d'équations chimiques [] chemistry/chemeq_compareCompare des équations chimiques [] chemistry/chemeq_componentsComposants chimiques [] chemistry/chemeq_elRetourne le nombre d'électrons dans une réaction d'oxydoréduction [] chemistry/chemeq_equilibriumAnalyse de l'équilibre dans les formules chimiques [] chemistry/chemeq_massMasse molaire [] chemistry/chemeq_revRenvoie une équation chimique inversée [] chemistry/chemeq_rqQuotients de réaction composée et lois de Nernst pour les équations chimiques [] chemistry/chemeq_texComposés moléculaire et équations chimiques [] chemistry/chemshowDessin d'une molécule en 2D [] chemistry/cramReprésentation de Cram [] chemistry/jmolbuttonBouton dans Jmol. Doit apparaitre APRES l'applet Jmol. [] chemistry/jmolcheckboxBouton Checkbox (bouton carré de validation) dans Jmol [] chemistry/jmolradiogroupRadiobuttons (boutons ronds) dans Jmol [] chemistry/jmolshowApplet Jmol [] chemistry/leftindIndices et exposants à gauche et droite [] chemistry/molarmassMasse molaire [] chemistry/moleculeTableau périodique [] chemistry/moleculeViewerVisualiseur de molécules sous Java [] chemistry/newmanProjection de Newman [] circuits Résultat circuits/complistList available circuit components [] circuits/compposComponent position information of a circuit type. [] circuits/drawDraw circuit scheme according a circuit type. [] circuits/drawcompDraw circuit components according to a circuit type. [] circuits/drawwireDraw the fixed circuit wiring of a given circuit type. [] circuits/rangeSize and range information of a circuit type. [] data Résultat data/columnsortSort data according to a column [] data/randlineTake a random line of a data file [] data/randomRandomly selects a number of (different) objects [] data/randrecTake a random field of a record file [] draw Résultat draw/balanceBalance (Roberval) [] draw/brokenlinegraphTrace une fonction affine par morceaux continue en connaissant les points de changement de pente [] draw/clockDessine une horloge réglée sur l'heure donnée [] draw/convpixelConversion de coordonnées [pixels] <-> [repère mathématique] [] draw/dominoDomino [] draw/drtgradueeDroite graduée [] draw/graphvizGraphviz [] draw/graphvizpointsCoordonnées des noeuds d'un graphe créé précédemment avec graphviz. [] draw/meterCompteur avec aiguille configurable. [] draw/polygonPolygone régulier [] draw/radar Radar [] draw/randpolygonPolygone quelconque [] draw/rangeProduit d'intervalles [] draw/repdroiteCalcule les coordonnées des deux points extrêmes pour tracer une droite dans un repère [] draw/repereTrace un repère [] draw/thermometerThermomètre avec niveau configurable [] function Résultat function/boundsLes bornes d'une fct réelle à une variable sur un intervalle [x1,x2] [] function/bounds2Des bornes d'une fonction réelle à deux variables dans un rectangle [x1,x2], [y1,y2] [] function/integrateIntégration définie ou non d'une fonction à une variable [] games Résultat games/chessboardEchiquier [] games/chessimageEchiquier (image) [] games/chessmvMouvement dans un jeu d'échecs [] geo2D Résultat geo2D/geogebraApplet GeoGebra (html5) [] geo2D/geogebra3Applet GeoGebra (java) [] geo2D/ggb2jsxgraphGeogebra to Jsxgraph [] geo2D/jsxgraphPlugin pour JSXGraph [] geo2D/squaretileRéseau de carrés [] geo3D Résultat geo3D/3DviewerVisualiseur 3D [] geo3D/CaRapplet 3D avec C.a.R [] geo3D/Convex3DApplet polyèdre avec Convex3D [] geo3D/drawPolyèdre avec flydraw [] geo3D/drawtileRéseaux de cubes [] geo3D/off2jmolConversion du format off en un script jmol [] geo3D/off2xyzConversion du format off au format xyz [] geo3D/polyhedraApplet de tracé de polyèdre avec C.a.R [] geo3D/polyhedradualApplet de tracé de polyèdre et de son dual avec C.a.R [] geo3D/threeDApplet ThreeD [] graph Résultat graph/connexcomponentComposantes connexes d'un sommet dans un graphe [] graph/connexityComposantes connexes d'un graphe simple [] graph/distanceMatrice du diamètre d'un graphe [] graph/drawDessin de graphe [] graph/drawccDessin de graphe avec une composante connexe colorée [] graph/drawtreeDessin d'arbre [] graph/gptGraphe orienté sans circuit [] graph/graphvizGraphviz [] graph/pathChemins dans un graphe [] graph/randomconnexGraphe connexe aléatoire [] graph/randomeulerGraphe aléatoire ayant une chaine eulérienne [] graph/randtreeArbre aléatoire [] graph/shortpathPlus court chemin dans un graphe [] graphpaper Résultat graphpaper/correct_milliGraphic paper sheet with red correct plot preloaded [] graphpaper/funcOne function plot, ready to append to a previously made graph paper [] graphpaper/func_milliGraphic paper sheet with function plot and red correct plot preloaded [] graphpaper/imgpointsUtility for a clickable graphic paper sheet [] graphpaper/millimetreGraphic paper sheet [] graphpaper/stringsPrepare strings to be written on a graphic paper sheet [] graphpaper/tographUtility for a clickable graphic paper sheet [] graphpaper/whereclickUtility for a clickable graphic paper sheet [] lang Résultat lang/enword2ipaIPA transcription of english words [] lang/epd2ipaIPA transcription according to epd ascii codage (for english) [] lang/fnamePrénoms au hasard [] lang/fraccordAccord of French adjectives and names [] lang/frapostropheApostrophe reduction of a French text [] lang/frartdefTransform a French noun into definite form [] lang/frcodcoiFind a random complement of a French verb [] lang/frverbconjThe conjugation of a French verb [] lang/imagesImages in some datamodule [] lang/randomwordOutput random words in the dictionary [] lang/sampa2ipaIPA transcription according to Sampa Ascii codage (for english) [] lang/swacInsertion of words (audio) from the swac packs [] life Résultat life/frcommodityGive a random commodity with given price, French [] list Résultat list/selshufSelective shuffle [] matrix Résultat matrix/concateconcatenation [] matrix/detThe determinant of a square matrix [] matrix/givenrankGenerates a random matrix of given rank [] matrix/inverseThe inverse of a square matrix [] matrix/invertibleGenerates a random invertible matrix [] matrix/itriangularGenerates a random invertible triangular matrix [] matrix/non0Matrice au hasard ayant des coefficients non nuls [] matrix/orthogonalGenerates a random orthogonal matrix [] matrix/randomGenerates a random matrix [] matrix/traceThe trace of a square matrix [] matrix/transposeThe transpose of a matrix [] matrix/triangularGenerates a random triangular matrix [] matrix/unimodularGenerates a random unimodular matrix [] media Résultat media/audioAudio insertion [] media/dewplayerAudio insertion with dewplayer [] media/playerAudio insertion with hbs_mp3_player [] media/player_mp3_multiAudio insertion with player_mp3_multi [] media/videoInsertion d'une vidéo [] numeration Résultat numeration/babylonienEcriture Babylonienne d'un nombre entier [] numeration/baseblockBlocs de base en numération [] numeration/basepPassage de la base dix vers la base p. [] numeration/ecriturelettreÉcriture d'un nombre en lettres. [] numeration/ecriturenombreEcriture d'un nombre avec regroupement des chiffres par trois. [] numeration/egyptienEcriture égyptienne d'un nombre entier [] numeration/romainNumération romaine [] oef Résultat oef/blankGestion des blancs [] oef/codelimOEF code length limit register [] oef/codenameRegister OEF code reply name allow/deny [] oef/envGet an OEF environment variable [] oef/insfilenameOutput the file name of the last insert [] oef/newfileSave a text in a file [] oef/postsrcOEF code input postpender [] oef/presrcOEF code input prepender [] oef/sortorderSort order [] polynomial Résultat polynomial/randomRandom polynomial [] set Résultat set/subsetSous-ensembles d'un ensemble [] stat Résultat stat/1dComputes 1-dimensional statistical data [] stat/arithmeanArithmetic mean of statistical data [] stat/betaSimulation de réalisations d'une variable aléatoire suivant la loi beta [] stat/betacdfFonction de répartition de la loi Beta [] stat/betainvQuantile de la loi Beta [] stat/betapdfDensité de probabilité de la loi Beta [] stat/binomialSimulation de réalisations d'une variable aléatoire suivant la loi binomiale. [] stat/binomialcdfFonction de répartition de la loi binomiale [] stat/binomialinvQuantile de la loi binomiale [] stat/binomialpdfDensité de probabilité de la loi binomiale [] stat/boxplotBox plot [] stat/cauchySimulation de réalisations d'une variable aléatoire suivant la loi de Cauchy. [] stat/cauchycdfFonction de répartition de la loi de Cauchy [] stat/cauchyinvQuantile de la loi de Cauchy [] stat/cauchypdfDensité de probabilité de la loi de Cauchy [] stat/chi2Simulation de réalisations d'une variable aléatoire suivant la loi du chi-deux [] stat/chi2cdfFonction de répartition de la loi du chi-deux [] stat/chi2invQuantile de la loi du chi-deux [] stat/chi2pdf Densité de probabilité de la loi du chi-deux [] stat/correlationMatrix of correlation [] stat/covarianceMatrix of covariance [] stat/deviationDeviation of statistical data [] stat/discretelawGeneration of a discrete law with nonnegative coefficients [] stat/effectifEffectifs de la série statistique dans les classes [] stat/empiricSimulation de réalisations d'une variable aléatoire suivant la loi discrète [] stat/exponentialSimulation de réalisations d'une variable aléatoire suivant la loi exponentielle. [] stat/exponentialcdfFonction de répartition de la loi exponentielle [] stat/exponentialinvQuantile de la loi exponentielle [] stat/exponentialpdfDensité de probabilité de la loi exponentielle [] stat/fisherSimulation de réalisations d'une variable aléatoire suivant la loi de Fisher. [] stat/fishercdfFonction de répartition de la loi de Fisher [] stat/fisherinvQuantile de la loi de Fisher [] stat/fisherpdfDensité de probabilité de la loi de Fisher [] stat/freqFrequencies of statistical data [] stat/gammaSimulation de réalisations d'une variable aléatoire suivant la loi Gamma. [] stat/gammacdfFonction de répartition de la loi Gamma [] stat/gammainvQuantile de la loi Gamma [] stat/gammapdfDensité de probabilité de la loi Gamma [] stat/geomeanGeometric mean of data [] stat/geometricSimulation de réalisations d'une variable aléatoire suivant la loi géométrique sur N [] stat/geometric1Simulation de réalisations d'une variable aléatoire suivant la loi géométrique sur N* [] stat/geometric1cdfFonction de répartition de la loi géometrique sur N* [] stat/geometric1invQuantile de la loi géométrique sur N* [] stat/geometric1pdfDensité de probabilité de la loi géometrique sur N* [] stat/geometriccdfFonction de répartition de la loi géométrique sur N [] stat/geometricinvQuantile de la loi géométrique sur N [] stat/geometricpdfDensité de probabilité de la loi géometrique sur N [] stat/harmonicHarmonic mean of statistical data [] stat/histoHistogram [] stat/hypergeometricSimulation de réalisations d'une variable aléatoire suivant la loi hypergéométrique [] stat/hypergeometriccdfFonction de répartition de la loi hypergéométrique [] stat/hypergeometricinvQuantile de la loi hypergéométrique [] stat/hypergeometricpdfDensité de probabilité de la loi hypergéométrique [] stat/laplaceSimulation de réalisations d'une variable aléatoire suivant la loi de Laplace [] stat/laplacecdfFonction de répartition de la loi de Laplace [] stat/laplaceinvQuantile de la loi de Laplace [] stat/laplacepdfDensité de probabilité de la loi de Laplace [] stat/linearcongGeneration of linear congruential random integers [] stat/logisticSimulation de réalisations d'une variable aléatoire suivant la loi logistique [] stat/logisticcdfFonction de répartition de la loi logistique [] stat/logisticinvQuantile de la loi logistique [] stat/logisticpdfDensité de probabilité de la loi logistique [] stat/lognormalSimulation de réalisations d'une variable aléatoire de loi lognormale [] stat/lognormalcdfFonction de répartition de la loi log-normale [] stat/lognormalinvQuantile de la loi log-normale [] stat/lognormalpdfDensité de probabilité de la loi log-normale [] stat/medianData median [] stat/multinomialSimulation de réalisations d'une variable aléatoire suivant la loi multinomiale [] stat/nbinSimulation de réalisations d'une variable aléatoire suivant la loi binomiale négative [] stat/nbincdfFonction de répartition de la loi binomiale négative. [] stat/nbininvQuantile de la loi binomiale négative [] stat/nbinpdfDensité de probabilité de la loi binomiale négative. [] stat/normalSimulation de réalisations d'une variable aléatoire suivant la loi gaussienne [] stat/normalcdfFonction de répartition de la loi normale [] stat/normalinvQuantile de la loi normale [] stat/normalpdfDensité de probabilité de la loi normale [] stat/pascalSimulation de réalisations d'une variable aléatoire suivant la loi de Pascal [] stat/pascalcdfFonction de répartition de la loi de Pascal [] stat/pascalinvQuantile de la loi de Pascal [] stat/pascalpdfDensité de probabilité de la loi de Pascal [] stat/piechart Pie chart [] stat/poissonSimulation de réalisations d'une variable aléatoire suivant la loi de Poisson. [] stat/poissoncdfFonction de répartition de la loi de Poisson [] stat/poissoninvQuantile de la loi de Poisson [] stat/poissonpdfDensité de probabilité de la loi de Poisson [] stat/posdiscretelawGeneration of a discrete law with positive coefficients [] stat/prodProduct of data [] stat/quadraticQuadratic mean [] stat/quantileQuantile [] stat/randomGeneration of random numbers [] stat/rangeData range [] stat/studentSimulation de réalisations d'une variable aléatoire suivant une loi de Student. [] stat/studentcdfFonction de répartition de la loi de Student [] stat/studentinvQuantile de la loi de Student [] stat/studentpdfDensité de probabilité de la loi de Student [] stat/sumData sum [] stat/varianceVariance [] stat/weibullSimulation de réalisations d'une variable aléatoire suivant la loi de Weibull. [] stat/weibullcdfFonction de répartition de la loi de Weibull [] stat/weibullinvQuantile de la loi de Weibull [] stat/weibullpdfDensité de probabilité de la loi de Weibull [] text Résultat text/approximationCalcul d'intervalle approché pour un réel donné [] text/balloonBulles de texte (façon cartoon) [] text/cdecommentExtract comment from a c source code. [] text/comblinSimplify a linear combination [] text/crosswordCrossword [] text/cutchoice2Cut out embedded choices for OEF [] text/cutchoicesCut out embedded choices for OEF [] text/markerrorFor marking words with mistake [] text/markgroupFor marking group of words with given explanation [] text/marktextTexte for use with type mark for OEF (word) [] text/marktextpartialFor marking some words with given explanation [] text/markwordFor use with type mark in OEF [] text/matrixhtmlTransform a matrix into html matrix (table). [] text/matrixinsertInsert a coefficient in a matrix [] text/matrixtex Matrix in Latex [] text/maximamatrixTransform a matrix to maxima format [] text/octavematrixTransform an octave output matrix into standard format [] text/sigunitsMake a representation of a physical quantity with a given number of significative digits [] text/spiraleWrite on a spirale [] text/whitespaceReplace white spaces [] triplerelation Résultat triplerelation/tabularDouble entry table for training to relations between three quantities [] utilities Résultat utilities/dateDate [] utilities/mathcalcMathcalc [] utilities/nopasteNo copy-paste [] utilities/notepadNotepad [] utilities/tooltipTooltip containing an html text which appears when the mouse points on a word. [] utilities/trigo-calcInline Trigonometric calculator [] Table of Contents ### Interfaces to external software packages This documentation is yet not finished ... WIMS provides interfaces for some software packages which must be installed independantly.  pari the PARI group http://pari.math.u-bordeaux1.fr/ PARI/GP est un système de calcul formel très répandu, conçu pour des calculs rapides en arithmétique (factorisations, théorie algébrique des nombres, courbes elliptiques...) mais contient aussi un grand nombre de fonctions pour le calcul matriciel, sur les développements limités, les nombres algébriques, etc. ainsi que de nombreuses fonctions transcendantes.  maxima http://maxima.sourceforge.net/ Maxima is a system for the manipulation of symbolic and numerical expressions, including differentiation, integration, Taylor series, Laplace transforms, ordinary differential equations, systems of linear equations, polynomials, and sets, lists, vectors, matrices, and tensors. Maxima yields high precision numeric results by using exact fractions, arbitrary precision integers, and variable precision floating point numbers.  graphviz Credits http://www.graphviz.org/ Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. Automatic graph drawing has many important applications in software engineering, database and web design, networking, and in visual interfaces for many other domains.  gap The GAP Group http://www.gap-system.org/ GAP is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects. See also the overview and the description of the mathematical capabilities. GAP is used in research and teaching for studying groups and their representations, rings, vector spaces, algebras, combinatorial structures, and more.  float_calc,integer_calc http://www.gnu.org/software/bc/ interface to bc ; bc -l  yacas Credits http://yacas.sourceforge.net/homepage.html YACAS is an easy to use, general purpose Computer Algebra System, a program for symbolic manipulation of mathematical expressions. It uses its own programming language designed for symbolic as well as arbitrary-precision numerical computations. The system has a library of scripts that implement many of the symbolic algebra operations; new algorithms can be easily added to the library. YACAS comes with extensive documentation (hundreds of pages) covering the scripting language, the functionality that is already implemented in the system, and the algorithms we used.  jmol  geogebra ## Logiciels internes à WIMS  checkmol Norbert Haider, norbert.haider@univie.ac.at, modified by Ernst-Georg Schmid  curvecomp Xiao Gang Compare two curves Input parameters: environment. w_curvecomp_1 and w_curvecomp_2: curves to compare, as lists of points. w_curvecomp_xrange and w_curvecomp_yrange: list of 2 integers each. w_curvecomp_tolerance: Maximal tolerance of distances. Output: 10 double numbers separated by white spaces.- Average distance of curve 1 with respect to curve 2. - Average distance of curve 2 with respect to curve 1. - Maximal distance of curve 1 with respect to curve 2. - Maximal distance of curve 2 with respect to curve 1. - Proportion of curve 1 close to curve 2. - Proportion of curve 2 close to curve 1. - Maximal jump of curve 1. - Maximal jump of curve 2. - Ratio of repetitions found in curve 1. Number 10: Ratio of repetitions found in curve 2. Furthermore, words "fnofx" and/or "fnofy" will appear if curve 2 represents the graph of a function of x (and/or y). Returns empty if one of the curves is degenerated. curvecomp_1=0,92,1,92,2,92,3,92 curvecomp_2=46,41,48,41,50,45 curvecomp_tolerance=40 curvecomp_xrange=11,208 curvecomp_yrange=0,220 curvecomp     cyclicode Xiao Gang This program generates cyclic code from a polynomial defined over a prime field. It does not check whether the polynomial is primitive or irreducible. Accepted parameter: 3 words Word 1: field characteristics, limited to 2,3,5,7 Word 2: The polynomial coefficients (except the leading one, from lower degree to higher).Word 3: The starting status (starting from the first bit).  cyclicode 3 22 10    dicfind Xiao Gang for adm modules  dicsort Xiao Gang Sort dictionary for adm modules  huffman Xiao Gang This program computes an optimal coding of variable lengths on a given distribution of probabilities, using Huffman algorithm. Two environment variables wims_exec_parm is a comma-separated list of probability distributions Limited to MAX_ITEMSThe input data will be scaled to unit sum w_huffman_radix is the encoding radix, between 2 and MAX_RADIX. two lines Line 1: Entropy and Average code length, comma-separated Line 2: comma-separated list of codes. huffman_radix=4 huffman 0.16, 0.39, 0.55    lceb Lucas Nussbaum, lucas@lucas-nussbaum.net jeu "le compte est bon" 7 integers How to obtain the first number from the six other ones by addition, multiplication, division, substraction  lceb 598 6 8 2 5 10 12    matchmol Norbert Haider, norbert.haider@univie.ac.at, modified by Ernst-Georg Schmid  mathexp Xiao Gang Mathematical expression manipulations for WIMS For the moment, use only in deductio  moneyprint prints a number with fixed amount of decimal places Usage:!exec moneyprint number1,number2,number3....number_n decimal_places\text{A=wims(exec moneyprint number1,number2,number3....number_n decimal_places)}default value "decimal_places = 2"A=!exec moneyprint 123,43.5,23.45665A=123.00,43.50,23.47or specified a last "word"A=!exec moneyprint 123,43.5,23.45665 3 A=123.000,43.500,23.457  shortpath Xiao Gang Finds the shortest paths linking given points wims_exec_parm is ... . w_shortpath_style : 0: loop to the start 1: arbitrary open path 2: open path with fixed start 3: open path with fixed end 4: open path with fixed start and end shortpath_style=0 shortpath 1,3 5,1 3,4 1,1 3,1 4,5    scienceprint J.M. Evers Prints a number in scientific notation. Usage: !exec scienceprint number,significant_digits,output_type\text{A=wims(exec scienceprint number,significant_digits,output_type )}output_type can be0 : calculating format : 1.234*10^-41 : html format :1.234×10-42 : latex format : 1.234\times10^{-4}3 : prefix format : 1.234×10-1 m4 : mathml format : $1.234×{10}^{-4}$5 : long prefix format : 1.234×10-1 milli  voronoi Steve J. Fortune compute Voronoi diagram or Delaunay triangulation. Voronoi reads the standard input for a set of points in the plane and writes either the Voronoi diagram or the Delaunay triangulation to the standard output. Each input line should consist of two real numbers, separated by white space. If option -t is present, the Delaunay triangulation is produced. Each output line is a triple i j k which are the indices of the three points in a Delaunay triangle. Points are numbered starting at 0. If this option is not present, the Voronoi diagram is produced. There are four output record types. s a b indicates that an input point at coordinates l a b c indicates a line with equation ax + by = c. v a b indicates a vertex at a b. e l v1 v2 indicates a Voronoi segment which is a subsegment of line number l; with endpoints numbered v1 and v2. If v1 or v2 is -1, the line extends to infinity.  voronoi -t 5 7 2 8 7 6 3 5 1 2 8 1 4 3 6 4    translator Xiao Gang Versatile translation according to a dictionary for adm modules  oncechar Xiao Gang This special program selects words composed by selected characters, each selected character being used at most once in the word. Used in the shell script public_html/bin/dicfind Selected characters are entered by the env var 'oncechar'. Words entered by stdin. Output to stdout. Table of Contents ### Java applets capable of interfacing with WIMS This documentation is yet not finished ... Many OpenSource java applets are suitable (or can be easily modified) to work within WIMS, e.g. WIMS can dynamically configure applets, the student actions on the applet can be read from the applet and send back to WIMS as answer (via javascript).  Zirkel/CaR R. Grothmann (Zirkel Compass and Ruler) In the wims-ditribution a slightly modified version of Zirkel is present.  SketchEl/WIMSchem Alex M. Clark (SketchEl A modified version of SketchEl, called WIMSchem is used for several chemistry modules. Ready to use OEF answertypes are written.  Chemistry Input applet J.M. Evers Applet developed for use within wims. Typical input of linear chemical formulas and equations (H2O) Used in chemistry module.  FlyApplet J.M. Evers Applet developed for use within wims. Uses a syntax simialar to the fly (insdraw) program. LaTeX capable. Used as (interactive) image generator and (function) plotter  JCM David Eck (eck@hws.edu). Well known suit of applets. Some applets are modified to work within wims.  Plinko /Plinko-II Dr. D.P. Little An overview of these applets. Two Galton board applets. Sends experimental data to wims.  MathView JOME (Java OpenMath Editor) Applet modified to work within wims. Configurable mathematical input applet.  WClock J.M. Evers Analogue and digital clock. Can be configured by wims/random/student. Sends time back to wims  Ptolomy/Plot Edward A. Lee, Christopher Brooks Data plotter. Modified for wims as function plotter capable of reading datafiles/functions from wims-server. Very fast, but non-interactive data and function plotter, Table of Contents ### Template files Some files in the distribution are template. They can be changed and used for global configuration. They are local so will not be erased by WIMS update. Preliminary version  log/front.phtml.template replace template by the symbol of a language xx read this page instead of public_html/modules/home/front.phtml.xx so it changes the home page of WIMS for lang=xx log/motd.phtml.template replace template by the symbol of a language xx General message in the front page of WIMS for lang=xx log/manager_msg.phtml.template replace template by the symbol of a language for xx message in all classes seen only by class supervisors for lang=xx log/wims.conf.access.template delete .template limits the access to some ressources for the whole site see public_html/scripts/help/fr/accessconf.phtml for example themes/*/local.template replace template by the symbol of a language xx can modify the menu in home for lang=xx Table of Contents ### How to do an anstype  How to add a new anstype (called here _name): Each anstype contains two files, "_name.input" is the input form element, and "_name" is the answer processing file. Specific anstypes need not be put into this directory. One can create a subdirectory "anstype" in the module, then put the files there. Any name will do, but we recommend that module-specific anstypes use a specific prefix for its names, like "mynumeric", "myfunction", ..., in order to avoid possible confusions. In an oef exercise, the anstype is called by the line \answer{xxx}{yyy}{type=_name}{option=zzz} see later for the intern variables corresponding to the values. The input file should contain the following two definitions. 1. define "anstype=yes". Otherwise the OEF manager will not recognize the existence of the anstype. 2. define the form style using the variable "anstyle". Here are the possible words to declare in this variable. mc multiple choice style. symtext allows symtext processing. numeric the data is numeric. dprompt good answer prompt given under double-underlined variable (internal reply__$i) ;
in this mode, the good answer is not present by default.
nogood	never present good answer (because there cannot be).

These scripts accept the following input variables.

i	The number of the reply field.
replyname$i The prompt of the form element. reply$i	The answer given by the student.
replygood$i The good answer given by the author. so the value of the second field of \answer{}{}. replyoption$i	Option words. Anstypes are more or less free to
define their own recognized option words. In oef exercises, it
correspond to the value zzz in {option=zzz}
inputsize	the second item of the field \embed{} (the first one is
r$i ou reply$i). In general, it contains the size of the form
element.

Moreover, if no comparison is wanted, the answer processing file can have a
calling parameter "nocompare" (not useful in oef exercices).

Output variables of the answer processing file:

Test	Put "bad $i" if the good answer given by the author is not understandable. test Put "NaN" followed possibly by an error indicator, if the answer given by the student is not understandable. diareply$i	Diagnostics result. Possible values: "good", "bad".
precreply$i If the answer misses the good result just by a problem of precision, put "yes" to this variable and put "bad" to diareply$i. In the computation of the score, a coefficient
depending on the level is introduced. In thise case, one must
partialgood$i If the answer should be considered as partially good, put "yes" to this variable and put "good" to diareply$i. It has no consequence on the calculation of the real score
(use freegot for that).
freegot	This is a numerical variable. Its content is incremented
by 1 if the answer is 100% OK, none if it is false,
or anything between 0 and 1 for partially good answer.
It is not recommended to decrement this value, nor to
increment it more than 1. The real score is computed using it.

So,
partialgood$i=yes + diareply$i=good + freegot advances of a number strictly between 0 et 1
or
!advance precgood + diareply$i=bad + fregot=0 + precreply$i=yes

There are also some optional output variables (they can be left empty).

replyGood$i This variable can be defined for the good answer shown to the students after replying to the exercise, if it should be different than the real replygood$i.
It is not shown in the analysis of the answer for false student
answer if dprompt is declared in anstyle.
m_reply$i This variable can be defined for the answer shown back in the oef variable reply$i, if it should be different than the
reply_$i The answer of the student shown in the html page in place of \embed{} or in the analysis zone (for oef exercises). reply__$i	A special prompt in the analysis of the answer
to show when dprompt is declared in anstyle. If it is empty, its
value is the value of reply_$i m_sc_reply$i by default 0, 0.5 or 1 according to diareply$i, partialgood$i and
partialgood$i. Can be set to special values. Give the possibility to the developer of exercises to give feedbacks without testing again. There are also some variables which can be used (new/2009) oef_formnosubmit: if yes, no "Send answer" button appear. oef_js_submit: can be used to put javascript in the answer button, the line onclick="javascript:$oef_js_submit;" will be present
in this button (in test).
oef_anstype_css:	style css (what is inside )
will be include at the end of the web page.

If the following variables are defined in the file _name.input, they can be reused
in the file _name :
(for reuse applet options or embed options for example, if one wants to use the anstype several
times in the same html page, it is recommanded to use oef_answer_option$i indexed on the numero of the answer.) If you use an external software, use the variable ans_require (best if there is a version number). Add the help in scripts/help/anstype and scripts/help/anstype.$lang and in the list
help/$lang/reply.phtml  Table of Contents ### Structure of sub directories Table of Contents ### Themes  To add a theme: 1. Decide on the name of the theme. If the theme is not intended for publication, please put it under the subdirectory "local": local/1, local/YourName, etc. Say the name is "local/1". 2. Copy the content of public_html/themes/standard to public_html/themes/local/1, and modify. -- un fichier css global est créé par le script mkcss.pl dans themes. Ce script concate et minimise les fichiers css dont la liste est dans le fichier css.css.template (respecter la syntaxe ...). Vous pouvez ainsi utiliser des fichiers css communs dans themes/_css des fichiers d'autres thèmes (à manier avec précaution) ou dans le répertoire local/1/_css de votre thème. -- Si vous désirez garder certains fichiers sans changement, il est conseillé de faire plutôt un changement de fichiers. Par exemple, si vous désirez conserver sans modification le fichier supervisor.phtml créez-le en écrivant simplement par exemple !changeto themes/standard/supervisor.phtml -- Le fichier local.phtml.template une fois changé en local_phtml.fr permet d'inclure des modules administratifs locaux dans les menus -- vous pouvez changer le "vocabulaire" dans la version de langue xx (par exemple xx=fr) de la manière suivante: créez un répertoire lang. Si vous désirez changer la définition des noms définis dans html, faites-le dans un fichier lang/home_names.xx . Si les définitions sont faites dans un module administratif, par exemple dans modules/adm/class/exam/lang/names.phtml.xx, faites-le dans un fichier de nom adm_class_exam_lang_names.phtml.xx -- il est possible d'utiliser les "widgets" du répertoire themes/_widgets A faire : -- nettoyer un peu plus les fichiers pour n'avoir qu'une succession de widgets. -- bientôt un appel du type !read themes/_widgets/visitormenubox.phtml lira s'il existe themes/local/1/_widgets/visitormenubox.phtml dans themes/local/1/_widgets et sinon dans themes/_widgets. ####################### wims_homeref_n0 = renouveler, aide, wims_menu_items (liens venant des modules) wims_homeref_n1 : lien sur feuille, séquence, aide, about, resume, divers ! print wims_homeref_n2 : wims_homeref_n3 : était prévu pour des tabs, ne contient rien à supprimer wims_homeref_n4 : contrôle des scores par l'élève wims_homeref_n5 contient pour l'instant uniquement l'aide feedback des exos wims_hm : lien du menu supérieur (headmenu)  Table of Contents ### Sheet formats See here Table of Contents ### Taxonomies See here Table of Contents ### Icones See here and See here Table of Contents ### Help for script library Model for an slib The first part is for the documentation.  !if$wims_read_parm!=slib_header
!goto proc
!endif

slib_author=
slib_parms=3\
default, explanation\
default, explanation\
default, explanation

slib_example=example1\
example2

slib_require=
slib_out= result of the slib
slib_comment= more explanation

!exit

:proc

...

calculation

slib_out=


The result must be in the variable slib_out.
Please prefix all the variables names by slib_



Pour accéder aux services de WIMS, vous avez besoin d'un navigateur qui connait les formes. Afin de tester le navigateur que vous utilisez, veuillez taper le mot wims ici : puis appuyez sur Entrer''.