# Tagged Questions

Questions on the functionality operating on polynomials

55 views

### How can I find the formal derivative of a polynomial w.r.t. to its coefficients [duplicate]

I want to define a function $f(x)$ as in $\quad \quad f(x) = \sum^{n}_{i=0} c_i x^i$ as a symbolic expression. Then I'd like to do operations on it. For example, take derivatives of it with respect ...
98 views

### Funny behavior when computing dot product of coefficients with high-order polynomials

I have a similar problem to Funny behaviour when plotting a polynomial of high degree and large coefficients. However, the thing being evaluated is not just a polynomial but a dot product of some ...
79 views

### Fishing for monomials in a nested or partially factored polynomial stream

I have a problem where I'd like to be able to take a multivariate polynomial whose variables are nonscalar and is not written explicitly as a sum of it's nonzero monomial terms and determine which ...
40 views

### Relative factorisation with scalar quantities

I'd like to find a natural way to tell mathematica that a given unknown in a polynomial should be treated as a number, unlike the other variables. Typically I'd like to sum two polynomials in several ...
94 views

### Memory Management for Large Datasets [closed]

I've written some Mathematica code to generate polynomial roots. The code take an argument n as the highest degree of polynomial to solve for and then exports a file containing a list of the roots: <...
89 views

### Polynomials with integer coefficients vs. polynomials with rational coefficients

My problem is very simple. From two different functions $f_1$ and $f_2$, I create two multivariate polynomials. Because of theoretical reasons those two functions (evaluated with the same input $x$) ...
203 views

### Undocumented fourth parameter of Collect; how long has it been there?

While tinkering with How to get a list of monomials of a polynomial without coefficients? on a whim I tried a fourth argument in Collect and found: ...
372 views

### How to get a list of monomials of a polynomial without coefficients?

Giving a polynomial, say a x^2 + b x y + c y^2 MonomialList[a x^2 + b x y + c y^2, {x, y}] just gives ...
53 views

### Generic approaches for multivariable polynomials across different domains [closed]

Mathematica newbie here. So I don't have a lot of time to read through the whole library of functions and language rules. So I'm trying to settle in on generic ways of doing the math that I'm going to ...
228 views

### NSolve erroneously gives no solution to a polynomial system

I have a polynomial system with three equations in three unknowns, the maximum degree is 26. Two equations are symmetric, i.e. eq1(x,y,z)=eq2(y,x,z). If I search ...
160 views

### Question on alternate forms of polynomial output

EDIT: Would it be possible to do something like let $y=ax+b$ then use Collect[] or Apart[] on the new expression? How would I go about this. I've tried using Collect[%,ax+b], Collect[%,{ax+b}], and ...
171 views

### Symbolic cut-off of high-order terms

I know that I can cut-off high-order terms of a $1$-variable polynomial P = a0 + a1*x + a2*x^2 + a3*x^3 + a4*x^4 + a5*x^5; simply by doing for example ...
67 views

### Recurrence relation for multivariate polynomials

I am trying to define a function which recursively computes a polynomial associated to every binary string: ComputePoly[s_]:=(** Recurse on the string s**) For ...
92 views

### Generating polynomials with conditions on coefficients

I want to define polynomials with coefficients given in some range. Namely, let $p$ be a prime number and $n$ be a positive integer. For all positive integer $k\leq n$ I want to generate all ...
138 views

### How to find zeros of 16th degree polynomial with coefficients which contain one symbolic parameter?

I'm trying to find eigenvalues of matrix which is 16x16. Here is a part of matrix: ...
64 views

### Extracting coefficients of very large polynomials (perhaps by improving Expand or ExpandAll)

Is there a way to improve or bypass Expand (or ExpandAll) for extremely large polynomials? I have a polynomial system of the form $$0 = \sum_n a_n d_{i_1,i_2} \cdots d_{i_{p-1},i_p},$$ in which ...
219 views

### Trouble with polynomial multiplication

Bug introduced in 10.1.0 and fixed in 10.4.0 ...
100 views

### How to order a polynomial in descending powers of x? [duplicate]

This should be very simple, even silly If I ask this mathematica Expand [(x + 1) (x + 2) (x + 3)] Mathematica delivers me well ...
74 views

### Complex Polynomial roots [closed]

I have the polynomial $p(z)=1-z^3$, I am using mathematica to get all three roots of $p$, say $a, b$ and $c$, obviously $$1-z^3=(z-a)(z-b)(z-c)$$ However, mathematica gives a wrong answer by saying ...
115 views

### Precision of LinearModelFit with Polynomials

I have a Problem regarding the fit of given points with a polynomial up to the fifth degree. tableofvalues=Import["tableofvalues.csv"] My polynomial is: ...
59 views

### Format polynomial output for cutting and pasting into a text file

Suppose I have the polynomial given by the determinant of this matrix: matry = {{1 - R, 3, -3}, {1, 0 - R, 0}, {0, 1, 0 - R}} I am feeding the Mathematica output ...
70 views

### Coefficients in multidimensional polynomials

I have a multidimensional polynomial depending on {x[1],x[2],x[3],x[4]}. If I want to selectively collect the coefficient corresponding to e.g. ...
102 views

### How do I find the constant term of a multivariate polynomial, when (x^0)(y^0)?

So let's say f[x_,y_]:=(2x+2y+1)^2, when I type Coefficient[f[x,y],x y] I recieve 8. But what can I input to recieve 1, when (x^...
135 views

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

### Solving and plotting a non-linear and polynomial equations of degree 3 and higher

I'm doing the following and cannot plot the function, could anyone spot a problem please ...
830 views

### Can Mathematica tell me if a polynomial has all real roots?

I am trying on this polynomial, ...
142 views

### Puiseux series for algebraic curves

Has anyone implemented a function in Mathematica that computes Puiseux expansions of algebraic curves? Using something like ...
139 views

### Slow program- Mathematica shuts down

I've been trying to draw dynamic pictures of level sets of certain polynomials. The code right now looks like that : ...
80 views

### Working with rational polynomials

I work a lot with transfer functions (Laplace transform) and I often need to convert them into different forms: rational transfer functions pole/zero representation pole/zero/gain representation ...
115 views

### Interactive level sets of polynomials

I'm new to Mathematica and I need some help with the following problem. I would like given some positive integer n, to have mathematica plot the level sets of a (say monic) polynomial of degree n, p(z)...
48 views

### How to invert the default order of polynomial? [duplicate]

By default, Mathematica outputs polynomials starting with smallest degree. How can I invert this?
81 views

### Get Coefficient of polynomial excluding variables

I'd like to write a function that returns the coefficient of a polynomial, but excludes some 'cross-term' coefficients. The function could be called CoefficientExclude, and the first argument would ...
138 views

### Improving Performance - Finding Polynomial Roots [duplicate]

I'm fairly new to Mathematica. In the past, my usage has mostly been limited to solving the occasional equation, making some plots, and working with small scaled statistics. None of these have been ...
81 views

### Is there a way to Collect[] for more than one symbol in Mathematica 10.0?

This question has already been asked three years ago (Is there a way to Collect[] for more than one symbol?) but I'm not allowed to comment since I'm new at Mathematica StackExchange. The first ...
141 views

### Plot roots of polynomial system of equations in 3 variables

I have the two equations $x^2 + 2y^2 + z^2 = 1$ and $xz -y^2 = 0$ I want to plot the roots in 3D. i.e the coordinates $x,y$ znd $z$
61 views

### Symmetric group action on polynomials

I am working with polynomials in several variables with the obvious action of $S_n$. That is, given a polynomial $f$ in the variables $x_1, \dots, x_n$, a permutation $\sigma \in S_n$ acts on $f$ by ...
94 views

### Splitting a polynomial into sum of factors, not necessarily linear

How can I split a given polynomial as sum of factors in Mathematica? For example, let's say I have this polynomial: $2\cdot x^2+7\cdot x+2$. I would like the output to be $(x+1)(x+2)+x(x+4)$. Is ...
140 views

### General function for the expansion of a polynomial of operators

This question is motivated by a Quantum mechanical problem - but in explaining the problem - I assume no knowledge of quantum mechanics. I want to define a function that can expand and simplify the ...
71 views

### NSolve taking too long to solve system of polynomial equations

I am trying to solve a system of polynomial equations (10 variables and 10 equations) using NSolve in an attempt to find all solutions. ...
75 views

### Factor bivariate polynomial over the complex numbers

This is very much like Factoring polynomials to factors involving complex coefficients except that I'm concerned about bivariate polynomials, not univariate polynomials. Take for example the ...
217 views

### Alternative representations of a polynomial

Suppose we have the polynomial $z^4-2 z^3-12 z^2+13 z+11$. $\;$Is there a way to manipulate it into $(z^2-z)^2-13 (z^2-z)+11$ ? How should I tackle this problem ?
169 views

### Fitting Legendre polynomial - Integer constraints in Fitting functions

I have some data in the form of {theta,y} and I am trying to fit a Legendre polynomial to it, however I don't know how I can get it to vary the m and l parameters in integer increments as I don't know ...
421 views

### Getting the polynomial from a polinomial root equation

After doing some preceding work I end up with a polynomial equation that should look something like this: Eq = c + b x + a x^2 - d x^2 == k I would like to ...
352 views

### Does NRoots own an abstract counterpart? If not, can we write one?

We know when solving linear algebra equations, despite its abstract syntax, LinearSolve is much faster compared to Solve: ...
156 views

### Computing Poincaré symbolic solution for an arbitrary integer order polynomial

In the 1880s, Poincaré created functions which give the solution to the nth order polynomial equation in finite form. These functions turned out to be "natural" generalizations of the elliptic ...
72 views

### Does Mathematica support Laguerre Polynomials of Matrix Argument? [duplicate]

I am wondering whether Mathematica can also compute the Laguerre polynomials of matrix argument as the appear in multivariate statistics? For example, they appear in this paper here: http://www.jstor....