ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 01 Oct 2021 19:03:12 +0200Running a search algorithmhttps://ask.sagemath.org/question/59216/running-a-search-algorithm/ I want to write a program to check whether a given rational function $f(x,y)$ in two variables $x,y$(=$\dfrac{\text{polynomial in } x,y}{\text{polynomial in }x,y}$) is of the form $\sum_{i_k,j_k,l_k,m_k}\dfrac{1+x^{i_k}+y^{j_k}}{1+x^{l_k}+y^{m_k}}$ where $i_k,j_k,l_k,m_k$ runs from $0$ to $5$(say), and $k=$number of summands is $16$(say).
Is there a way to run a for loop that checks this? The main problem for me is that there are too many variables involved.
mathstudentFri, 01 Oct 2021 19:03:12 +0200https://ask.sagemath.org/question/59216/