Tagged Questions

Questions on the functionality operating on polynomials

0answers
29 views

Expectation of Largest Roots of Bernoulli distributed coefficient Monomials

I am interested in determining the most probable maximum values of the real roots of polynomials of form $P(x)=\sum_{k=0}^n a_{k} x^k$ where the degree $n$ will have a defined value (say 3,4,5...) and ...
6answers
393 views

Create a polynomial of a given degree

In Mathematica, how can I create a polynomial function in given variables of a given degree with unknown coefficents? That is, I am looking for a function ...
1answer
55 views

0answers
114 views

Check Zagier theorem about Mahler's measure

I want to check the following theorem by using Mathematica: (from Heights of Polynomials and Entropy in Algebraic Dynamics, page 22) $\textbf{Theorem}.$ Let $\omega$ denote a primitive $6th$ ...
2answers
87 views

Crash after long GroebnerBasis calculation

I am running a long computation of a GröbnerBasis and after some hours the kernel crashes. The memory usage increases enormous, and it crashes, when it reaches somewhat 4 GB RES, however it is ...
0answers
40 views

expand[] without multiplying binomial coefficients

I'd like to expand an expression of the form (ax+b)^5 without the binomial coefficents being multiplied out. I would like to see Binomial[5,0], Binomial[5,1] , etc... that intermediate step for ...
6answers
405 views

Rewrite a real polynomial in real (but only linear and quadratic) factors

According to my calculus book: "Every real polynomial can be factored into a product of real (possibly repeated) linear factors and real (also possibly repeated) quadratic factors having no real zeros....
1answer
162 views

How to extract all the coefficients of a homogeneous polynomial [duplicate]

Suppose p is a homogeneous polynomial in four variables, say p = x^10 y^10 z^5 w^5 + 3 a x^10 w^20; ...
6answers
459 views

Easiest way to extract the coefficient of a polynomial

For a term in a polynomial, say 387 a1^4 a2^3 x^3 y^7 z^100 w^364 what is the most efficient way to extract the coefficient of this term, i.e. ...
3answers
100 views

expressing a rising factorial as a polynomial

I have an equation in $x$ as follows: $f(x)=\prod\limits_{j=0}^{k}(j+x)=x(1+x)(2+x)\cdots(k+x)$ I want to express this as a polynomial in $x$, i.e., as $a_0x^0+a_1x^1+\cdots+a_kx^k$ I tried doing ...
6answers
3k views

Series expansion in terms of Hermite polynomials

I am trying to expand a polynomial in terms of orthogonal polynomials (in my case, Hermite). Maple has a nice built-in function for this, ChangeBasis. Is there a ...
2answers
76 views

Expanding rational functions with minimal denominator

I'm working with rational functions and I want to be able to put them in a specific form and then get a list of terms in which the numerators are monomials. Take for example ...
1answer
263 views

Finding an analytic solution of a cubic equation

I have been trying to solve a cubic equation $$y=zy^3 + z$$ in $y$ – that is, my desired result is a function $y(z)$ satisfying the equation. Now, there are three solutions of this equation and ...
1answer
62 views

How do you collect trigonometric functions in a polynomial?

I have an expression that has various forms of Sin and Cos and I want to collect them specifically so that I can make substitutions. As you can see I cannot figure out how to separate i Cos[theta] ...
1answer
48 views

Transforming Determinant to Polynomial Expression

I have determinant which equals zero. In determinant, i have x expressions. i want to transform the determinant to polynomial expression so i can solve that with mathematica. Note : Apologize for ...
2answers
62 views

Finding Real Roots and Determining Range

I am interested in determining the minimum and maximum values of the real roots of polynomials of form $P(x)=\sum_{k=0}^n a_{k} x^k$ where $n$ will have a defined value (say 3,4,5...) and $a_k$ are ...
2answers
76 views

Finding and plotting a parametric solution to a complicated equation (transcendental, log-polynomial)

I am trying (desperately) to find a way to solve a transcendental equation whose solution $x$ depends on non-numerical parameters $a$ and $b$. And then to produce a ...
1answer
224 views

2answers
278 views

0answers
84 views

MWE ...
1answer
63 views

Solving for Polynomial roots

This simple Solve gives the roots of a quadratic: Solve[a x^2 + b x + c == 0, x] However, if I factor the polynomial in terms ...
1answer
133 views

Expand power of a polynomial

I'm very new to Mathematica, so excuse my innocence. I have the following expression: $$\left( \sum_{n=0}^r \frac{(-1)^n}{n!} y^n \right)^f$$ I would like Mathematica to expand out the expression ...
5answers
138 views

How find constant term of quadratic with square already completed?

Suppose I have a quadratic polynomial in two variables x and y in which the squares with respect to ...
1answer
42 views

Selecting terms on only one variable from a multiple-variable expression

Say I have a polynomial like $x y^2+15x^2 y+x+3y+10$ and I want to obtain, say, only the coefficient in $x$ alone, namely a 1. Using ...
1answer
252 views

GroebnerBasis without specifying variables

All the examples in the Mathematica documentation specify that the syntax for the GroebnerBasis command is ...
0answers
34 views

How can I quickly extract a specific coefficient in a Laurent polynomial?

Suppose we have a Laurent polynomial for the following: ...
0answers
34 views

ApartSquareFree function

I have a doubt concerning the ApartSquareFree function in Mathematica. Roughly speaking, it is supposed to compute the partial fraction decomposition of a rational function $h/g$ with the denominators ...
4answers
104 views

Symbolic calculation on roots of polynomial

Given a polynomial like $x^3 + a_2 x^2 + a_1 x + a_0$ with roots $r_i$, I would like to symbolically compute the coefficients of a polynomial whose roots are $r_i^3 + r_i + 1$. How can I do this in ...
3answers
269 views

Get the coefficient matrix from a quadratic form

Suppose I have a quadratic form of qf = a x^2 + b y^2 + c z^2 + 2 d x y + 2 e x z + 2 f y z How can I easily to get the symmetric matrix A, such that $X^TAX=qf$?...
3answers
170 views

Use NMinimize instead of FindFit for constrained search (of coefficients)

(My problem is more complex, but let us formulate it through this example) I am trying to find the best polynomial approximation to the following function ...
1answer
94 views

How to efficiently find only the rational roots of a rational complex polynomial?

I need to find all the rational roots of a bunch of high-order polynomials with rational complex coefficients. Is there an efficient way to do this? My best effort on an example polynomial: ...
1answer
107 views

Does Solve[] find ALL the exact roots of rational polynomials?

Does Solve[] find ALL the exact roots of rational polynomials? I've done a bunch of tests where I created an expression with some analytic roots, and Solve[] always found them all. But is the ...
1answer
115 views

Factoring an arbitary variable in mathematica

Imagine we have a equation like this gf= 1 + (a3 - a1 x)^2 w1 + (b3 - b2 x)^2 w2 how can I reach the following equation ...
0answers
29 views

PolynomialExtendedGCD in 2 variables

Consider a field $R$ and the ring $A=R[y]$. Consider two polynomials $g,h\in A[x]$. I want to obtain $d=\gcd(g,h)\in A[x]$ and two polynomials $s,t\in A[x]$ satisfying the Bézout relation: $sg+th=d$. ...
1answer
79 views

Why are CoefficientRules and MonomialList so slow?

Why is CoefficientRules so slow in this example (v10.2 on OS X 10.11.4)? ...
3answers
136 views

Alternative forms to Table for iterating over replacement rules

I have a multivariate polynomial x. I get coefficients of various monomials using CoefficientRules, which returns a list of ...
5answers
384 views

Convert polynomial to Chebyshev

I want to convert a polynomial in "standard form" to Chebyshev form. Here's one way to do it: ...
0answers
64 views