version 1.1, 2018/09/19 05:45:07 |
version 1.2, 2018/09/28 08:20:28 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM$ |
* $OpenXM: OpenXM_contrib2/asir2018/engine/pari.c,v 1.1 2018/09/19 05:45:07 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
|
|
|
|
for ( i = l+2; i >= 2; i-- ) |
for ( i = l+2; i >= 2; i-- ) |
z[i] = (long)gzero; |
z[i] = (long)gzero; |
for ( dc = DC((P)a); dc; dc = NEXT(dc) ) { |
for ( dc = DC((P)a); dc; dc = NEXT(dc) ) { |
ritopa((Obj)COEF(dc),&u); z[QTOS(DEG(dc))+2] = u; |
ritopa((Obj)COEF(dc),&u); z[ZTOS(DEG(dc))+2] = u; |
} |
} |
break; |
break; |
case O_VECT: |
case O_VECT: |
|
|
for ( i = lgef(a)-1, dc0 = 0; i >= 2; i-- ) |
for ( i = lgef(a)-1, dc0 = 0; i >= 2; i-- ) |
if ( !gcmp0((GEN)a[i]) ) { |
if ( !gcmp0((GEN)a[i]) ) { |
NEXTDC(dc0,dc); |
NEXTDC(dc0,dc); |
patori((GEN)a[i],(Obj *)&COEF(dc)); STOQ(i-2,DEG(dc)); |
patori((GEN)a[i],(Obj *)&COEF(dc)); STOZ(i-2,DEG(dc)); |
} |
} |
if ( !dc0 ) |
if ( !dc0 ) |
*rp = 0; |
*rp = 0; |