Questions on the functionality operating on polynomials

learn more… | top users | synonyms (1)

0
votes
0answers
33 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 ...
2
votes
0answers
31 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 ...
4
votes
1answer
31 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 ...
3
votes
0answers
58 views

Memory Management for Large Datasets [on hold]

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: ...
2
votes
1answer
44 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$) ...
0
votes
0answers
4 views

How should this power series be solved [closed]

-c+3 a^2 b +3 a^2 d -3 a^2 f + O(3)/-a^2 c + a^3 b + 1/2 a^3 d -2 a^3 f + O(4) then its answer is required up to O(a) here in both equations a is a variable and b,c,d,f are constants. solving a ...
14
votes
0answers
137 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: ...
4
votes
3answers
263 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 ...
-2
votes
1answer
42 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 ...
6
votes
2answers
129 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 ...
2
votes
3answers
113 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 ...
2
votes
4answers
140 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 ...
0
votes
0answers
41 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 ...
0
votes
2answers
61 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 ...
1
vote
1answer
108 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: ...
0
votes
0answers
30 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 ...
2
votes
1answer
132 views
0
votes
1answer
53 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 ...
0
votes
1answer
56 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 ...
2
votes
1answer
97 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: ...
2
votes
2answers
41 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 ...
1
vote
2answers
55 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. ...
1
vote
1answer
80 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 ...
1
vote
4answers
92 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 ...
0
votes
1answer
95 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 ...
8
votes
5answers
720 views
2
votes
0answers
47 views

Puiseux series for algebraic curves

Has anyone implemented a function in Mathematica that computes Puiseux expansions of algebraic curves? Using something like ...
1
vote
2answers
120 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 : ...
1
vote
0answers
39 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 ...
2
votes
1answer
88 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, ...
0
votes
0answers
43 views

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

By default, Mathematica outputs polynomials starting with smallest degree. How can I invert this?
1
vote
1answer
50 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 ...
1
vote
1answer
99 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 ...
5
votes
1answer
58 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 ...
1
vote
1answer
78 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$
1
vote
1answer
44 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 ...
0
votes
0answers
66 views

NIntegrate Polynomial of high degree

I want to integrate a polynomial of degree 100 and higher over a domain that is the intersection of two balls like ...
0
votes
0answers
57 views

Inconsistent Outputs Produced By Eliminate

I have tried the solver "Eliminate" in Mathematica to find the elimination ideal of a polynomial system, and compared the results to examine effectiveness, by simply switching the order of "set the ...
0
votes
1answer
65 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 ...
3
votes
2answers
74 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 ...
0
votes
1answer
55 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. ...
1
vote
1answer
62 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 ...
0
votes
0answers
28 views

PolynomialMod: Unexpected results

Executing PolynomialMod[(X - 1) (X^3 + 2) (X^2 + 1), 2 - 2 X] 0 But ...
2
votes
3answers
196 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 ?
1
vote
1answer
90 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 ...
1
vote
2answers
179 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 ...
11
votes
1answer
303 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: ...
0
votes
0answers
85 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 ...
0
votes
0answers
56 views

Does Mathematica support Laguerre Polynomials of Matrix Argument?

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: ...
0
votes
0answers
68 views

Applying the square root of operator on polynomial functions

I am trying to apply an "operation" on polynomial functions: apply the operator $(\frac{\partial f}{\partial x}-y\frac{\partial f}{\partial z})^2+(\frac{\partial f}{\partial y}+x\frac{\partial ...