Add support for external html docs
[maxima.git] / share / simplification / rtest_rncomb.mac
blob700a0cd2fc4bc21df42226106069c129acd1b38d
1 (kill(all), load("rncomb"), 0);
2 0;
4 rncombine(c/b+a/b);
5 (c+a)/b;
7 rncombine(c/b+a*b/2);
8 c/b+a*b/2;
10 rncombine(c/b+a/(2*b));
11 (2*c+a)/(2*b);
13 rncombine(c/d+a*b/2);
14 c/d+a*b/2;
16 rncombine(c/d+a/b);
17 c/d+a/b;
19 rncombine(a/b+c/d);
20 c/d+a/b;
22 rncombine(1/2+a/b+c/d);
23 c/d+a/b+1/2;
25 rncombine(f/(3*e)+1/2+a/b+c/d);
26 f/(3*e)+c/d+a/b+1/2;
28 rncombine(f/(3*b)+1/2+a/b+c/d);
29 (f+3*a)/(3*b)+c/d+1/2;
31 /* This fails because the result depends on the ordering of symbols */
32 rncombine(f/(3*b)+x+a/b+c/d);
33 x+(f+3*a)/(3*b)+c/d;
35 rncombine(f/(3*b)+a+x/b+c/d);
36 (3*x+f)/(3*b)+c/d+a;
38 rncombine(f/(1.2*b)+a+x/b+c/d);
39 (x+.8333333333333334*f)/b+c/d+a;
41 rncombine(f/(1.2*b)+a+x/(1+b)+c/d);
42 x/(b+1)+.8333333333333334*f/b+c/d+a;
44 rncombine(f/(b+1.0)+a+x/(1+b)+c/d);
45 x/(b+1)+f/(b+1.0)+c/d+a;
47 rncombine(f/(b+1)+a+x/(1+b)+c/d);
48 (x+f)/(b+1)+c/d+a;
50 rncombine(f/(1.2*b+1.2)+a+x/(1+b)+c/d);
51 x/(b+1)+f/(1.2*b+1.2)+c/d+a;
53 rncombine(f/(2*b+2)+a+x/(1+b)+c/d);
54 x/(b+1)+f/(2*b+2)+c/d+a;
56 rncombine(f/(2*(b+1))+a+x/(1+b)+c/d);
57 (2*x+f)/(2*(b+1))+c/d+a;