by parisse » 12 Apr 2016, 10:00
This is already available for giac on the desktop, and that's how my regression test work. Just create a text file with your commands, and run it from a terminal
giac filename
You can also export a session from Xcas in text format (File menu, export as xcas test).
You can of course redirect output to a file.
BTW, I'm reinstalling the toolchain and firebird, but I can't find any documentation on how to use firebird to debug (well there is not much documentation on firebird in general, I lost a full hour before I could send a file to the emulator, and I'm not sure it's the best way to do it. That's unfortunate because it seems to be more powerful than the previous nspire-emu).
For example, my regression test for limits
- Code: Select all
1;
limit( exp(x)*(exp(1/x-exp(-x))-exp(1/x)), x,inf);
2;
limit( exp(x)*(exp(1/x+exp(-x)+exp(-x**2))-exp(1/x-exp(-exp(x)))), x,inf);
3;
limit( exp(exp(x-exp(-x))/(1-1/x))-exp(exp(x)), x,inf);
4;
limit( exp(exp(exp(x)/(1-1/x)))-exp(exp(exp(x)/(1-1/x-ln(x)**(-ln(x))))), x,inf);
5;
limit( exp(exp(exp(x+exp(-x))))/exp(exp(exp(x))), x,inf);
6;
limit(exp(exp(exp(x)))/exp(exp(exp(x-exp(-x)))),x,inf);
7;
limit(exp(exp(exp(x)))/exp(exp(exp(x-exp(-exp(exp(x)))))),x,inf);
8;
limit(exp(exp(x))/exp(exp(x-exp(-exp(exp(x))))),x,inf);
9;
limit(x*ln(x)*ln(x*exp(x)-x**2)**2/ln(ln(x**2+2*exp(exp(3*x**3*ln(x))))),x,inf);
10;
limit((exp(x*exp(-x)/(exp(-x)+exp(-2*x**2/(x+1))))-exp(x))/x,x,inf);
11;
limit((3**x+5**x)**(1/x),x,inf);
12;
limit(x/ln(x**(ln(x)**(ln(2)/ln(x)))),x,inf);
13;
limit(exp(exp(2*ln(x**5+x)*ln(ln(x))))/exp(exp(10*ln(x)*ln(ln(x)))),x,inf);
14;
limit((exp(4*x*exp(-x)/(1/exp(x)+1/exp(2*x**2/(x+1))))-exp(x))/exp(x)**4,x,inf);
15;
limit(exp(x*exp(-x)/(exp(-x)+exp(-2*x**2/(x+1))))/exp(x),x,inf);
16;
limit( exp(exp(-x/(1+exp(-x))))*exp(-x/(1+exp(-x/(1+exp(-x)))))*exp(exp(-x+exp(-x/(1+exp(-x)))))/exp(-x/(1+exp(-x)))**2-exp(x)+x, x,inf);
17;
limit( (log(log(x)+log(log(x)))-log(log(x)))*log(x)/log(log(x)+log(log(log(x)))), x,inf);
18;
limit(exp(log(log(x+exp(log(x)*log(log(x)))))/log(log(log(exp(x)+x+log(x))))),x,inf);
19;
limit(exp(x)*(sin(1/x+exp(-x))-sin(1/x+exp(-x**2))),x,inf);
20;
limit(exp(exp(x))*(exp(sin(1/x+exp(-exp(x))))-exp(sin(1/x))),x,inf);
21;
limit( (exp(x*exp(-x)/(exp(-x)+exp(-2*x**2/(x+1))))-exp(x))/x,x,inf);
22;
limit( log(log(x*exp(x*exp(x))+1))-exp(exp(log(log(x))+1/x)), x,inf);
23;
limit(sqrt(x+sqrt(x))-sqrt(x),x,inf);
24;
limit(sqrt(x+sqrt(x+sqrt(x)))-sqrt(x+sqrt(x)),x,inf);
25;
limit(4/9*exp(exp(5/2*x**(-5/7)+21/8*x**(6/11)+2*x**(-8)+54/17*x**(49/45)))**8/log(log(-log(4/3*x**(-5/14))))**(7/6),x,inf);
26;
limit(log(x)**2*exp(sqrt(log(x))*log(log(x))**2*exp(sqrt(log(log(x)))*log(log(log(x)))**3))/sqrt(x),x,inf);
for integration
- Code: Select all
cas_setup(0,0,0,1,0,[1e-10,1e-17],12,[1,50,0,25],0,0,0),xcas_mode(0);
integrate(1/(x**4-1)**10,x);
integrate((x**4+4*x**2+6*x+4)/(x+1)**2,x);
integrate(x/((x-1)*(x+1)**2),x);
integrate(x/((x+1)*(x**4-1)),x);
integrate(1/(3*x*(x**2+x+1)*(x-1)**3),x);
integrate(1/(x**4-1)**2,x);
integrate(1/(x**4+1)**2,x);
integrate(1/(x**4+1)**4,x);
integrate(x**7/((x**4-1)*(x**2+3)),x);
integrate(((1+x)/(1-x))**(1/3),x);
integrate((sin(2*x)+1)/(cos(2*x)),x);
integrate((2*sin(x)+1)/(2*sin(x)-1),x);
integrate(exp(x)/(3+2*exp(x)),x);
integrate(sin(x)**2*cos(x)**4,x);
integrate(sin(x)/(sin(x)**3+cos(x)**3),x);
integrate(1/sqrt(2*x*t)*exp(-t**2/2),x);
integrate(sin(3*x)**4/exp((3*x+1)/cos(t)),x);
integrate(2*x/sqrt(x**2-1),x);
integrate((sin(x)+cos(x))/(sin(x)-cos(x)),x);
integrate(sin(pi/2-2*x),x);
integrate(tan(x)+tan(x)**3,x);
integrate((exp(x)-exp(-x))/(exp(x)+exp(-x)),x);
integrate(1/cos(x)**25,x);
integrate(1/(sin(x)-1)**3,x);
integrate(1/(sin(x)+1)**3,x);
integrate(ln(x+sqrt(1+x**2)),x);
integrate(atan(2*x/(1+x**2)),x);
integrate(x*sqrt(1+x**2),x);
integrate(sin(x)/cos(x)**2,x);
integrate(exp(x)/(1+exp(2*x)),x);
integrate(cos(x/2)**2/(x+sin(x)),x);
integrate(x/sqrt(x+1),x);
integrate(exp(x)/((3+exp(x))*sqrt(exp(x)-1)),x);
integrate(sqrt(x)/sqrt(a**3-x**3),x);
integrate(sqrt(a-x)/sqrt(x),x);
integrate(sqrt(x**2+a**2),x);
integrate(sin(2*x)*cos(x),x);
integrate(x*atan(x),x);
integrate(sinh(x)*cos(x),x);
integrate(atan(x)/x,x);
integrate(1/(sin(x)-2)**3,x);
integrate((2*x**2+1)*exp(x**2),x);
integrate(sin(3*x)/sin(x),x);
integrate(1/(t*ln(t)**2),t,2,x);
integrate(ln(1+2/(n*(n+3))),n,1,+infinity);
integrate((pi*t-t**2)*sin(n*t),t,0,pi);
integrate(exp(t)*cos(n*t),t,-pi,pi);
integrate(cos(x)/exp(x),x,0,+infinity);
integrate((t**4+t+1)/(t**6+t**3+2),t,1,+infinity);
assume(t>2),integrate(x*exp(1/2*abs(ln(x**2))),x,2,t),purge(t);
integrate(1/sqrt(2*x*t)*exp(-t**2/2),x,a,b);
integrate((x**2*(1-x))**(1/3),x,0,1);
normal(integrate(atan(sqrt(1-x**2)),x,0,1));
assume(x>0),integrate(ln(x**2+t**2)/(1+t**2),t,0,+infinity),purge(x);