Charles Greathouse on Sun, 15 Sep 2024 05:20:17 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Regard hecke operators in half integer weight setting


It looks like you're missing the function name here:

$(f, p, k) = {f = truncate(f); sum(n = 1, poldegree(f), (polcoeff(f, (n * p^2))) + (kronecker(-4, n)^(k - (1/2)) * kronecker(12 * n,p) * p^(k - (3/2)) * polcoeff(f, n)) + (sumdiv(n, p, p^((2 * k)- 2) * polcoeff(f, n/p^2))) * q^n) + O(q^(poldegree(f) + 1));}
  ***   syntax error, unexpected ')', expecting )-> or ',': (f,p,k)=f=truncate(f);sum(n=1,poldegree(f),(po
  ***                                                             ^----------------------------------------
$func(f, p, k) = {f = truncate(f); sum(n = 1, poldegree(f), (polcoeff(f, (n * p^2))) + (kronecker(-4, n)^(k - (1/2)) * kronecker(12 * n,p) * p^(k - (3/2)) * polcoeff(f, n)) + (sumdiv(n, p, p^((2 * k)- 2) * polcoeff(f, n/p^2))) * q^n) + O(q^(poldegree(f) + 1));}
/* no error */

I assume the actual error is elsewhere.

On Sat, Sep 14, 2024 at 10:54 PM LNU, Swati <S10@email.sc.edu> wrote:
Dear Professor,
This command itself gives the error.

S(f, p, k) = {f = truncate(f); sum(n = 1, poldegree(f), (polcoeff(f, (n * p^2))) + (kronecker(-4, n)^(k - (1/2)) * kronecker(12 * n,p) * p^(k - (3/2)) * polcoeff(f, n)) + (sumdiv(n, p, p^((2 * k)- 2) * polcoeff(f, n/p^2))) * q^n) + O(q^(poldegree(f) + 1));}

Thanks,
Swati 

From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Sent: Saturday, September 14, 2024 1:16:30 PM
To: pari-users@pari.math.u-bordeaux.fr <pari-users@pari.math.u-bordeaux.fr>
Subject: Re: Regard hecke operators in half integer weight setting
 
On Sat, Sep 14, 2024 at 02:13:01PM +0000, LNU, Swati wrote:
> Hello,
> I am trying to code the Fourier expansion of f | T_{p^2} for a half integer
> weight modular form but I am getting incorrect type in gtos error.
> Here is my code:
>
> S(f, p, k) = {f = truncate(f); sum(n = 1, poldegree(f), (polcoeff(f, (n * p^2))) + (kronecker(-4, n)^(k - (1/2)) * kronecker(12 * n,p) * p^(k - (3/2)) * polcoeff(f, n)) + (sumdiv(n, p, p^((2 * k)- 2) * polcoeff(f, n/p^2))) * q^n) + O(q^(poldegree(f) + 1));}

Please copy-paste the command that triggers the error, thanks.

Cheers,
Bill.