!set titb=Les commandes
!set keyw=
!set datm=20060619
!set prev=
!set next=
!set upbl=main
!set dat1=19000101
!set dat2=24000101

!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif

!exit

:content

!read primitives.phtml 1, embed, definition, &nbsp; 
Commandes (les * désignent des commandes dont je ne suis pas sûre
qu'elles existent, en tout cas non testées par moi).
<pre>
$m_author &#58; $m_author$m_lbrac xxx $m_rbrac </tt>
$m_title &#58; $m_title$m_lbrac xxx $m_rbrac </tt>
$m_answer &#58; $m_answer$m_lbrac blablabla $m_rbrac$m_lbrac $m_rbrac$m_lbrac <tt class="type">type = xxx</tt> $m_rbrac$m_lbrac <tt class="type">weight = yyy</tt> $m_rbrac </tt>
$m_choice &#58; $m_choice$m_lbrac xxx $m_rbrac$m_lbrac test $m_rbrac$m_lbrac $m_rbrac </tt>
$m_computeanswer &#58; $m_computeanswer$m_lbrac yes $m_rbrac </tt>
$m_condition &#58; $m_condition$m_lbrac blablabla $m_rbrac$m_lbrac test $m_rbrac$m_lbrac <tt class="type">option=hide</tt> $m_rbrac </tt> (dernier champ optionnel)
$m_conditions &#58; $m_conditions$m_lbrac 1,2,3 $m_rbrac </tt>
$m_email &#58; $m_email$m_lbrac xxx $m_rbrac </tt>
$m_feedback &#58; $m_feedback$m_lbrac test $m_rbrac$m_lbrac blablabla $m_rbrac </tt>
$m_format &#58; $m_format$m_lbrac html $m_rbrac </tt>
<tt class="comm">\help</tt> &#58; <tt class="comm">\help</tt>$m_lbrac xxx $m_rbrac </tt>
$m_hint &#58; $m_hint$m_lbrac xxx $m_rbrac </tt>
$m_next &#58; $m_next$m_lbrac xxx $m_rbrac </tt>
$m_nextstep &#58; $m_nextstep$m_lbrac xxx $m_rbrac </tt>
$m_reply &#58; $m_reply$m_lbrac xxx $m_rbrac$m_lbrac $m_rbrac$m_lbrac $m_rbrac$m_lbrac $m_rbrac </tt> = $m_answer$m_lbrac $m_rbrac$m_lbrac $m_rbrac$m_lbrac $m_rbrac </tt>
$m_solution &#58; $m_solution$m_lbrac xxx $m_rbrac </tt>
$m_statement &#58; $m_statement$m_lbrac xxx $m_rbrac </tt>
$m_steps &#58; <pre class="comm">\steps</tt>$m_lbrac <tt class=reply>reply1</tt>, <tt class=reply>reply2</tt>
 <tt class=reply>reply3</tt>,<tt class=reply>reply4</tt> $m_rbrac </pre> 
ou
<pre class="comm">\steps$m_lbrac <tt class=reply>r1</tt>, <tt class=reply>r2</tt>
<tt class=reply>r3</tt>, <tt class=reply>r4</tt> $m_rbrac </pre> (pas d'autres lettres que <tt class="reply">r</tt>) 
 
$m_complex &#58; $m_complex$m_lbrac xxx = yyy $m_rbrac </tt>
$m_function &#58; $m_function$m_lbrac f = x^2 $m_rbrac </tt>
$m_language &#58; $m_language$m_lbrac fr $m_rbrac </tt>
$m_precision &#58; $m_precision$m_lbrac 1000 $m_rbrac </tt>
$m_range &#58; $m_range$m_lbrac -5,5 $m_rbrac </tt>
<p>
<tt class="comm">\for</tt> &#58; <tt class="comm">\for</tt>$m_lbrac i=1<tt class="w">to</tt> 5 $m_rbrac$m_lbrac $m_rbrac </tt>
<tt class="comm">\if</tt> &#58; <tt class="comm">\if</tt>$m_lbrac test $m_rbrac$m_lbrac $m_rbrac$m_lbrac $m_rbrac </tt> Il n'y a 
pas d'évaluation préliminaire des deux membres de la condition
<tt class="comm">?</tt> &#58;  $m_text$m_lbrac a = condition ? xx &#58; yy $m_rbrac </tt> ici condition est évaluée. Sans troisième argument , la variable
a n'est pas modifiée si condition est faux
<p>
<tt class="comm">\while</tt> &#58; <tt class="comm">\while</tt>$m_lbrac test $m_rbrac$m_lbrac $m_rbrac </tt>
</pre>
<pre>
$m_integer &#58; $m_integer$m_lbrac a = yyy $m_rbrac </tt>
$m_matrix &#58; $m_matrix$m_lbrac a = yyy $m_rbrac </tt>
$m_rational &#58; $m_rational$m_lbrac r = 3/2 $m_rbrac </tt>
$m_real &#58; $m_real$m_lbrac r = 3/2 $m_rbrac </tt>
$m_text &#58; $m_text$m_lbrac xxx $m_rbrac </tt>
<p>
*<tt class="c">variable</tt> &#58; <tt class="comm">\variable</tt>$m_lbrac xxx $m_rbrac </tt>
*<tt class="c">mdef</tt> &#58; <tt class="comm">\mdef</tt>$m_lbrac $m_lbrac xxx $m_rbrac </tt>
*<tt class="c">parameter</tt> &#58; <tt class="comm">\parameter</tt>$m_lbrac xxx $m_rbrac </tt>
*<tt class="c">plot</tt> &#58; <tt class="comm">\plot</tt>$m_lbrac xxx $m_rbrac </tt>
<p>
</pre>
Autres &#58; permettent la définition des variables
<pre>
$m_column &#58; $m_text$m_lbrac  a = $m_column(1,xxx) $m_rbrac </tt>
$m_deriv &#58; $m_text$m_lbrac  a = $m_deriv(xxx,x) $m_rbrac </tt>
$m_derivative &#58; $m_text$m_lbrac  a = $m_derivative(xxx,x) $m_rbrac </tt>
$m_det &#58; $m_text$m_lbrac  a = $m_det(xxx) $m_rbrac </tt>
$m_diff &#58; $m_text$m_lbrac  a = $m_diff(xxx,x) $m_rbrac </tt>
<tt class="fct">draw</tt> &#58; $m_text$m_lbrac  a = <tt class="fct">draw</tt>(xxx) $m_rbrac </tt>
$m_evaluate &#58; $m_text$m_lbrac  a = $m_evaluate(x^2,x = 2) $m_rbrac </tt>
$m_evalue &#58; $m_text$m_lbrac  a = $m_evalue(x^2, x = 2) $m_rbrac </tt>
$m_htmlmath &#58; $m_text$m_lbrac  a = $m_htmlmath(xxx) $m_rbrac </tt>
$m_int &#58; $m_text$m_lbrac  a = $m_int(x^2,x= 0 <tt class="w">..</tt> 2) $m_rbrac </tt>
$m_integral &#58; $m_text$m_lbrac  a = $m_integral(xxx) $m_rbrac </tt>
$m_integrate &#58; $m_text$m_lbrac  a = $m_integrate(xxx,x=1 <tt class="w">..</tt> 2) $m_rbrac </tt>
$m_item &#58; $m_text$m_lbrac  a = $m_item(1,xxx) $m_rbrac </tt>
$m_items &#58; $m_text$m_lbrac  a = $m_items(xxx) $m_rbrac </tt>
$m_mathexp_cut &#58; $m_text$m_lbrac  a = $m_mathexp_cut(xxx) $m_rbrac </tt>
$m_maxima &#58; $m_text$m_lbrac  a = $m_maxima(xxx) $m_rbrac </tt>
$m_pari &#58; $m_text$m_lbrac  a = $m_pari(xxx) $m_rbrac </tt>
$m_pickone &#58; $m_text$m_lbrac  a = $m_pickone(xxx) $m_rbrac </tt>
$m_position &#58; $m_text$m_lbrac  a = $m_position(xxx) $m_rbrac </tt>
$m_positionof &#58; $m_text$m_lbrac  a = $m_positionof(xxx) $m_rbrac </tt>
$m_randint &#58; $m_text$m_lbrac  a = $m_randint(xxx) $m_rbrac </tt>
$m_randitem &#58; $m_text$m_lbrac  a = $m_randitem(xxx) $m_rbrac </tt>
$m_random &#58; $m_text$m_lbrac  a = $m_random(xxx) $m_rbrac </tt>
$m_randomitem &#58; $m_text$m_lbrac  a = $m_randomitem(xxx) $m_rbrac </tt>
$m_randomrow &#58; $m_text$m_lbrac  a = $m_randomrow(xxx) $m_rbrac </tt>
$m_randrow &#58; $m_text$m_lbrac  a = $m_randrow(xxx) $m_rbrac </tt>
$m_row &#58; $m_text$m_lbrac  a = $m_row(2,xxx) $m_rbrac </tt>
$m_rows &#58; $m_text$m_lbrac  a = $m_rows(xxx) $m_rbrac </tt>
$m_shuffle &#58; $m_text$m_lbrac  a = $m_shuffle(xxx) $m_rbrac </tt>
$m_simplify &#58; $m_text$m_lbrac  a = $m_simplify(xxx) $m_rbrac </tt>
$m_slib &#58; $m_text$m_lbrac  a = $m_slib(xxx)}</tt>
$m_solve &#58; $m_text$m_lbrac  a = $m_solve(xxx) $m_rbrac </tt>
$m_texmath &#58; $m_text$m_lbrac  a = $m_texmath(xxx) $m_rbrac </tt>
$m_wims &#58; $m_text$m_lbrac  a = $m_wims(xxx) $m_rbrac </tt> permet d'utiliser du code wims. 
$m_yacas &#58; $m_text$m_lbrac  a = $m_yacas(xxx) $m_rbrac </tt>
</pre>
<p>
Noms ayant une signification imposée &#58; 
<p>
<pre>
<tt class="c">imagedir</tt>  &#58; <tt class="d">\imagedir</tt>
<tt class="c">confparm1</tt> &#58; <tt class="d">\confparm1</tt>
<tt class="c">confparm2</tt> &#58; <tt class="d">\confparm2</tt>
<tt class="c">confparm3</tt> &#58; <tt class="d">\confparm3</tt>
<tt class="c">confparm4</tt> &#58; <tt class="d">\confparm4</tt>
<tt class="c">step</tt> &#58; <tt class="d">\step</tt>
<tt class="reply">r1</tt> &#58; <tt class="reply">r1</tt> pour <tt class="reply">reply1</tt>
<p>
</pre>
<p>
Gestion des tableaux &#58; 
<pre class="c">
$m_matrix$m_lbrac A = x,y,z
u,v,t $m_rbrac 
$m_statement$m_lbrac \A[1;3] $m_rbrac </pre>
<p>

!read primitives.phtml 2, link, solve 

