already reported in https://github.com/sagemath/sage/issues/33327

On Sat, Aug 3, 2024 at 12:02 PM Dima Pasechnik <dimp...@gmail.com> wrote:
>
> On Sat, Aug 3, 2024 at 11:46 AM Dima Pasechnik <dimp...@gmail.com> wrote:
> >
> > On Sat, Aug 3, 2024 at 11:19 AM Dima Pasechnik <dimp...@gmail.com> wrote:
> > >
> > > This probably has to do with the limited capacities of Sage preparser, 
> > > which converts Sage extensions to the plain Python.
> > > It apparently cannot split lines with multiple commands.
> > > PRs to improve this welcome.
> >
> > Oops, no, sorry, my bad.
> > It's a bug in the implementation of polynomial rings over QQbar
> > (note that there is no error is QQbar is replaced by QQ)
>
> specifically, in  the function _factor_multivariate_polynomial(...)
> located in src/sage/rings/qqbar.py
>
> >
> > Dima
> >
> > >
> > > HTH
> > > Dima
> > >
> > >
> > > On 3 August 2024 06:58:40 BST, 'Peter Mueller' via sage-devel 
> > > <sage-devel@googlegroups.com> wrote:
> > >>
> > >> The line `R.<a, c> = QQbar[]; factor(a^2 - 2*c^2)` raises a
> > >>
> > >> ValueError: variable name '@c' is not alphanumeric
> > >>
> > >> while the same line with `c` replaced with `b` works fine.
> > >>
> > >> This happens in a local installation of Sage 10.4 (and 10.5.beta0), but 
> > >> also on the SageCell.
> > >>
> > >> -- Peter Mueller

-- 
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/CAAWYfq174xFVzg8_K_9Z71JOav7O1m6tTv2v1MhxqYixDvd-eQ%40mail.gmail.com.

Reply via email to