Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346############################################################################# ## #W ratfun.tst GAP Tests Alexander Hulpke ## ## #Y (C) 1998 School Math. and Comp. Sci., University of St Andrews, Scotland ## ## To be listed in testinstall.g ## gap> START_TEST("ratfun.tst"); gap> t:=Indeterminate(Rationals,100);; gap> SetName(t,"t");; gap> p0:=0*t^0;; gap> p1:=p0+0*t^0;; gap> p2:=p0+1*t^0;; gap> q0:=0;; gap> q1:=q0+0*t^0;; gap> q2:=q0+1*t^0;; gap> List([p1,p2,q1,q2],x->IsPolynomial(x)); [ true, true, true, true ] gap> List([p1,p2,q1,q2],x->IsRat(x)); [ false, false, false, false ] gap> Value(p1,1); 0 gap> Value(p2,1); 1 gap> Value(q1,1); 0 gap> Value(q2,-1); 1 gap> y1:=Indeterminate(Rationals,1);; gap> y2:=Indeterminate(Rationals,2);; gap> y3:=Indeterminate(Rationals,3);; gap> mat:=[[y1,1,0],[y2,y1,1],[y3,y2,y1]];; gap> det:=DeterminantMat(mat*y1^0);; gap> Value(det,[y1,y2,y3],[1,-5,1]); 12 gap> 1/( y1*y2 ); 1/(x_1*x_2) gap> STOP_TEST( "ratfun.tst", 300000); ############################################################################# ## #E