Code : |
tmp=!replace internal .. by , in 2*x-1,x
!distribute items $tmp into tmp1,tmp2,tmp3
tmp2=!replace internal = by , in $tmp2
!distribute items $tmp2 into tmp4,tmp5
tmp0=!solve $tmp1 for $tmp4 = $tmp5 to $tmp3
t_=!replace internal \( by ( in $(tmp0);
tmp1=!exec maxima $t_
|
Code : |
display2d:false;
letrat:true;
keepfloat:true;
rombergmin:5;
rombergtol:1.E-6;
rombergit:13;
simpsum:true;
triginverses:true; logabs:true;
e:%e;pi:%PI;Pi:%PI;PI:%PI;I:%I;i:%I;
ln:log;sh:sinh;ch:cosh;th:tanh;
arctan:atan;arcsin:asin;arccos:acos;
tg:tan;arctg:atan;
argsh:asinh;argch:acosh;argth:atanh;
Argsh:asinh;Argch:acosh;Argth:atanh;
cotan:cot;ctg:cot;
log10(x):=block([],return(log(x)/log(10.0)));
log2(x):=block([],return(log(x)/log(2.0)));
lg(x):=log10(x);
sgn:sign;
nolabels:true; kill(labels);
|
Pour les exercices oef, il faut rajouter
Code : |
expon:0;
expop:0;
factlim:6;
prederror:false;
maxnegex:20;
maxposex:20;
ratfac:true;
keepfloat:true;
|
Code : |
\text{a=pari(random\(5)}
|
avec un \ .
Et cela marche avec maxima aussi !!
Code : |
\text{a=maxima(solve\(2*x+1,x))}
\text{b=pari(solve\(x=-2,4,2*x+1))}
\statement{\a<p>\b}
|