Dan Nichols on Tue, 09 Sep 2014 19:43:50 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Specialize bivariate FpXY (C library) |
Hello PARI users, Given an FpXY f(x,y) with main variable x and secondary variable y, I want to get the specialization f(r,y) for some r in Fp. It seems like the function I should use is: GEN FpXY_evaly(GEN Q, GEN y, GEN p, long vy) Q an FpXY, returns the FpX Q(X, y), whereI assume vy is supposed to the the variable number for the secondary variable. When I try to call this function, the return value is always 1. For example, the following code #include "stdio.h" Produces this output: f(x,y) = x^2 + y*x + (y^2 + 1) The last line should be y^2 + 1. Am I using the function correctly? Alternatively, I know I could use the functions gsubst or poleval and then reduce mod p, but wouldn't that be slower? p may be very large and f may have high degree. Thanks very much, Dan Nichols |