Bill Allombert on Thu, 01 Feb 2024 08:40:41 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Rational exponent
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 1 Feb 2024 08:40:26 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706773238; c=relaxed/relaxed; bh=Hf9ek48D20ApoZANILN0nQb22TPAFMXNfK+HVp3ffS4=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=JkHTBZRmPB6mDswzo5VttFCviRfVIDdHtA3bifT6AU8erg8Phi9Isjc5RsLeU19Rm+Mwi7/H0Rb3484f6GUPv/rbqgzK4k3sDXfXibgyXGG36jCOZlHoUohFvBLkBwtfCqzlSxZp+MleuPTVkLvI4pvM7ZcHtP5o4lm2dC0dD0OoURIJOiFCBu5m5id/F10yKxXqD0nIF3PvlGQKDkOCxPnuuVGvNYJvJ4TrWtImsVsV19L2sxhpPan2EAhmsOL5CUAtzO9zZwAy92jbDWtfL8VxtblQV+lUYO4aM94CJJzLbrA9AWx67sdtQ0w+WZFxSSU7sQw0C3JeGjweXBK2RpnEoAEBDNiM96z54ZuzTHmQky+A30Hp1Bs5Gi75Pa2cqRiVq9BPmK9FNz3+jcEpWezfupvx4nbutInwdJgfLP+QtMrrxFJkGBq2a40w6z8WofWk2ZSiv8Knp2DdNZnQdKT2itOnuqIrUAzEVFDKjqKcyFvORqeuHJGHR9iE7ES3irsLV08oPTUyseA5Uawp2THmvBDMk6/+kiIgW/NaR7c2KAYoYYpusXtrHZv9FaH7zxW5DsJP0gxj+3P/BaP/ajjtvj7dO0EQdk1EeCKaWrs6KUfuXID+l+WGAM1j/feoP2/oUG38lJC0vrb3rJ07peHIvKzovTEndXpVuxhEIRo=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706773238; cv=none; b=fbo+AvE1y+g858QKO7tw6PqmNivylypbJLTz73obkBbOXsbk33soa9HQi8XPVXG4pooL8FcLm8KX9YYNieZQD5rjJZk/O98qB/wA5e22hX8MHpEE8K/k38AJfXXPn9eUcJBzZVHN636eZg/1qmBskmYum+bN6J+kSzmEHn6mLV7NV33wAaKknApWrHybXqYEBOj0N8Z06M2+Ft2fj1feP+fHOCXzc9Dhy5abzgtIq7k2qob+9k/k75E43DZ8W2m7TaHjNn4fifHq6CXCmoHIp9bm66AO4YLmVC9PiqKVNW2BA+9uI3rnbyMsBBJOIIT0U67c/ByZ5nvY/06nCqHhZkPfw5M16jLS9OhyyQ6MX4rpyjSsYLIhqS55/uZ9y6HIqqd7DK5jGyPE9ryl+zgHxNsZw+t3e7Eh/L0ykzvHmUtfN/IoqkXcqLlYLDLm75iCvfKPbT1qPi2kf+vbVjrrovVaNRKQ5RBIeHb196mTdoJQnNvZ27cREcY+luMxwfKpKf8UQb93QLoQWe/2cpEePyEe7y3fvDKKPIHOLrl7bq14FDwIAfLIPVLqVLHW9LZiZhXiblD3E6rEmQGa/0HgzQ66GJ8j4/HtwGQQLLNavW5VRwXj/9XgwwZ1OSmg7OCW+PTZFt/zeGd5TT5TuVMen3Hi0bo6UWdXaVdHyMvv9sE=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Thu, 01 Feb 2024 08:40:41 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1706773238; bh=Hf9ek48D20ApoZANILN0nQb22TPAFMXNfK+HVp3ffS4=; h=Date:From:To:Subject:References:In-Reply-To:From; b=shknR2uKOSoAmTyyonIWJdWn7RqLVUQfh14zzbTycfpz7M5t+K6RwPGgHhStli4lG XPDwxDQ204Gl2g6BdvmC4E1TOJU8sXP2WfueboPqp0YrSm/oDY5B7ciUh33N506QZz RHIrG6oJwz4eLzNVnZ0/J3UARXkEyEaz1q35z1bqZNWrSe3CLGfUJ9S8YCXkLck5C6 1EpH1Gm5/IQcwZzUAzKzdP6XraycvhxlY2lrRGgKe8Ss2/Za9P7ehy3tMjsp0c+sdv lJCDf+8pc+z+Enz0QSzEeXaekC4ybnIike4hGXaZ8U/DosFlVBHdLGq+x/89tsvE9k vReO5yj+xymhV1vcsum2VSE0mrHsQLAJwTYN6bTmrdDQUrmJtw85/hAD77P90VjFWI oFRtJG5LqZ6ATo0NPKn42sxt79lpa6Kx73TwzZUF8l70ElzU8aaqEdqFKuja5c296N CHGPQGLUhWfxwU0TXP9bpk4RtGmbxCxHOVymd6s9HAiOIlTvg2f2JyRJXvOsNqQSon 88hU5jgElvVPumpGro/3aRZZreQRHe/YvwDzN6oBua2JFFp7+iEKtuhV7HDbsrlZhx Py8KNPQ0V3ljlRRILWEZnE6tBFHQma3gmuvS3Yb3nMDv5odrdMSHeCDWw7FiP4IKMb q6GfGioR2Fmj59Vgp9SsrDYY=
- In-reply-to: <fa398d0bdd94dabaf9913ca1815380e7@research-systems.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <fa398d0bdd94dabaf9913ca1815380e7@research-systems.com>
On Wed, Jan 31, 2024 at 11:59:01PM -0500, Kevin Acres wrote:
> I have a function that I would like to use with rational exponents.
> Currently it only works with integral exponents.
>
> I'm struggling a little and any help is welcomed.
>
> Kevin.
>
> /*
> * z : Integer input 0..2^n-1
> * p : irreducible polynomial of degree n
> * n : output is in binary format 0..2^n-1
> * e : exponent
> */
> fn2(z,p,n,e) = {
> my(s,t=vector(n)~,k,a);
>
> if(z==0, return(t~););
> k = Pol(binary(z))^e;
> a = lift(Mod(k, p));
> s=Vecrev(a);
> s *= denominator(s);
> s %= 2;
> for(i=1,#s,
> t[i]=s[i];
> );
> t~;
> };
You should give an example and say what result you would like!
Cheers,
Bill