Questions tagged [polynomials]
Questions on the functionality operating on polynomials
1,044 questions
5
votes
0
answers
97
views
Avoid MonomialList applying N to coefficients containing floats
For inexact coefficients MonomialList seems to apply N.
How to avoid this?
...
0
votes
1
answer
135
views
Accelerate Mathematica code computing visibility polynomial of one graph
Let $G$ be a graph of order $n$. Then the visibility polynomial, $\mathcal{V}(G)$, of $G$ is defined as
$$
\\
\mathcal{V}(G)=\sum_{i\geq 0} r_i x^{i}
\\
$$
where $r_i$ denote the number of mutual-...
3
votes
1
answer
236
views
Factor polynomial with generalized root extension
Here are two examples with ordinary extensions:
Factor[1 + x^4, Extension -> Sqrt[2]]
Factor[x^2 + 2 Sqrt[3] x + 3, Extension -> Automatic]
But what about &...
5
votes
4
answers
702
views
How to find "minimal polynomial" of a rational number?
I suspect that 1.0982 is (close to) the root of a low degree (2 or 4) polynomial with small ...
3
votes
4
answers
266
views
Understanding a function that finds the degree of a multi-variate polynomial
The following function finds the degree of a multi-variate polynomial.
PolyDeg[expr_]:=expr//ToList//Exponent[#,Variables[#]]&/@#&//Plus@@@#&//Max;
...
0
votes
0
answers
73
views
How to improve the Mathematica implementations of q-Bessel polynomial?
I know Mathematica has implemented some QFunctions.
I have found this literature: q-Bessel polynomials, q-Laguerre polynomials, q-Charlier polynomials, etc.?
I have implemented q-Bessel polynomials in ...
2
votes
2
answers
147
views
How can I reduce the degree of a polynomial in two variables by substitution?
This is similar to the how-to-replace-variable-with-power question, but here it involves two variables with different power combinations.
This quesion arises from paper forward kinematics of the 6-6 ...
2
votes
3
answers
117
views
Combining like terms where the coefficients contain radicals
I need a function which combines like terms in a polynomial with multiple variables. The coefficients (constant real numbers) may contain radicals and this function must put them together.
Example: ...
3
votes
1
answer
301
views
Is there a way to automate the generation of these polynomials?
The motivation of this question is pure curiosity.
Working on this problem, I tried to find the zero of function
$$f(x)=m\,(m-1)^{\frac{1}{m}-1}\, x^{1-\frac{1}{m}}+x-1 \quad \quad \text{where} \...
1
vote
2
answers
234
views
Understanding integration of rational function which yields wrong results depending on generality
Problem
I want to evaluate the following integral:
$$\int \limits_{-1}^1\frac{x^{n}}{Q(x)} \, dx$$
where $Q(x)=\sum _{k=0}^m a_k x^k$ and $Q(x) \neq 0 \quad \forall x \in [-1,1]$.
In this specific ...
2
votes
0
answers
258
views
How to calculate Kazhdan-Lusztig Polynomials of Coxeter groups using Mathematica? [closed]
How to calculate Kazhdan-Lusztig Polynomials using Mathematica?
References:
TABLES OF KAZHDAN-LUSZTIG POLYNOMIALS
Kazhdan-Lusztig Polynomials - Combinatorics
kazhdan-Lusztig-polynomial-calculator (of ...
0
votes
0
answers
38
views
Recombining indeterminate powers in monomials [duplicate]
In an expression, I want to replace everywhere monomials, say, $x^{i-3j}y^{2j-3i}$ with $(x/y^3)^i(y^2/x^3)^j$, is there a concise way to do it?
2
votes
1
answer
156
views
Conditions under which roots of cubic matrix polynomial are real
I've defined four $2\times 2$ matrices and a vector of size $2$:
...
2
votes
3
answers
362
views
Efficient way to evaluate polynomial of matrices
I would like to evaluate a polynomial of matrix $g(A)= \sum_{m=0}^{k}e^{-i m \phi} A^{m}$ where $\phi$ is some angle provided by the user and $k$ is some positve integer. So I did a very naive thing ...
0
votes
0
answers
177
views
Can all combination of Trigonometric functions be written in terms of spherical harmonics?
I want to write these two Expressions in terms of spin-weighted spherical harmonics:
$\cos^{2}\theta\,\cos^{2}\phi - \sin^{2}\phi$
$\cos^{2}\theta\,\sin^{2}\phi - \cos^{2}\phi$
I've written this code ...