On Sat, 10 Sept 2022 at 18:49, William Stein <wst...@gmail.com> wrote: > > On Sat, Sep 10, 2022 at 10:04 AM davida...@gmail.com > <davidayott...@gmail.com> wrote: > > > > > I'm curious if the change breaks any code anywhere else in Sage (e.g., > > > maybe for computing q-expansions of modular forms?)... > > > > You guessed right. I did a quick local change to the bernoulli function and > > it indeed breaks some tests in sage/modular/modform: > > I created all of the files listed below. My guess is that code for > computing q-expansions of Eisenstein series assume B(1) is what it is, > and one would just need to change that code by changing a sign > somewhere.
The two different versions of the Bernoulli sequence are related very simply (B-(n) = (-1)^n B+(n)) so it should be easy to update any code that depends on the current behaviour. This is why SymPy isn't providing any direct replacement for its previous B- behaviour. Oscar -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAHVvXxQY1qoMcn4KP06KG6ktaHcjmM%3DWfrW%2B-ZVHZnh0HXOKWQ%40mail.gmail.com.