Changeset e82417 in git for libpolys/polys/ext_fields/transext.cc
- Timestamp:
- Aug 12, 2011, 5:29:12 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 45c9bd3cc75a93224a2ce248f62c450b05c2ec61
- Parents:
- 94a065cc1eef470efefb950abf185f50c06ba20d
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-12 17:29:12+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:22:44+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
r94a065c re82417 54 54 55 55 #include "ext_fields/transext.h" 56 57 58 59 60 56 61 57 … … 1132 1128 1133 1129 1134 number ntParam( short iParameter, const coeffs cf)1130 number ntParam(const short iParameter, const coeffs cf) 1135 1131 { 1136 1132 assume(getCoeffType(cf) == ID); … … 1138 1134 const ring R = cf->extRing; 1139 1135 assume( R != NULL ); 1140 assume( 0 < = iParameter && iParameter <rVar(R) );1136 assume( 0 < iParameter && iParameter <= rVar(R) ); 1141 1137 1142 1138 poly p = p_One(R); p_SetExp(p, iParameter, 1, R); p_Setm(p, R); … … 1151 1147 return (number)f; 1152 1148 } 1149 1150 1151 /// if m == var(i)/1 => return i, 1152 int ntIsParam(number m, const coeffs cf) 1153 { 1154 assume(getCoeffType(cf) == ID); 1155 1156 const ring R = cf->extRing; 1157 assume( R != NULL ); 1158 1159 fraction f = (fraction)m; 1160 1161 if( DEN(f) != NULL ) 1162 return 0; 1163 1164 return p_Var( NUM(f), R ); 1165 }
Note: See TracChangeset
for help on using the changeset viewer.