# Tag Info

Accepted

### Finding the number of odd quintinomial coefficients

Use PolynomialMod: ...
• 131k
Accepted

### Out of memory when computing a coefficient of a large symmetric polynomial

Split it into 3 steps to get result immediately. ...
• 17.3k

### How to extract all the coefficients of a homogeneous polynomial

Using an undocumented function: ...

### Generate coefficient array from general formula of linear equation system

Partial ND It's possible to again extract all this weight data and stuff in the higher dimensional cases using effectively the same procedure as for the 1D: ...
• 46.9k

### Finding the number of odd quintinomial coefficients

A slower but still useful approach employs ListCorrelate. ...
• 61.5k

### Out of memory when computing a coefficient of a large symmetric polynomial

To get the coefficient of $b^\beta c^\gamma d^\delta$, for $\beta=12$, $\gamma=8$, $\delta=6$, we take advantage of the fact that the coefficients $(poly)^n$ are computed by the ...
• 236k
Accepted

### Solve PDE with complicated coefficient non-linearity

I think the OP is trying to demonstrate hysteresis. WhenEvent has an example of an on-off controller, which is an example of a bistable system. Unfortunately, my understanding is, that an event must ...
• 16.3k

### How to extract coefficients and powers from expressions with non integer powers?

Clear["Global*"]; expr = 3 - 2 x + 7 x^2.1 + x^2.4 - 5 x^3; Transpose[{Exponent[#, x], # /. x -> 1}] & /@ List @@ expr {{0, 3}, {1, -2}, {2.1, 7....
• 54.4k

### How to locate a list within a list?

It really depends on how fast you need it and how many elements your list will have. Let's assume the worst: list = Range[1000000]; contain = {1, 2, 3, 4, 5, 6}; ...
• 113k
Accepted

### Extract system of linear equations from the linearly independent vectors

This can be done using CoefficientRules: ...
• 34k
Accepted

### Solving for coefficients in a polynominal

Solve[ CoefficientList[(56 - 85689 x)^2 - 3136, x] == CoefficientList[-2 a b x + b^2 x^2, x], {a, b}] ...
• 1,808

...
• 396k

### Solve PDE with complicated coefficient non-linearity

I do not see what the problem is. ...
• 44.7k

### Finding polynomial coefficients returns Tag Plus is Protected

The reason you get the error message is that you are using the single equals sign, which is an assignment operator. The double equals sign (==) is used for arithmetic comparisons. In addition to the ...
• 12.5k

### How to extract coefficients and powers from expressions with non integer powers?

ce = Apply[List/*Map[List]/*ReplaceAll[a_. x^b_. :> Splice @ {b, a}]/*PadLeft]; ce[3 - 2 x + 7 x^2.1 + x^2.4 - 5 x^3] ...
• 396k
Accepted

### How to locate a list within a list?

We may use pattern matching: f[a_, {ss__}] := MatchQ[a, {___, ss, ___}] Testing: ...
• 272k

### Extracting coefficients from sum

Update: In version 9, there is SystemReduceUtilsDump`MonomialCoefficients which (when Transposed) gives the desired result. <...
• 396k
Accepted

### Extracting coefficients from sum

You can use a combination of MonomialList and FactorTermsList. MonomialList gives a list of ...
• 131k
Accepted

### How to factor all coefficients of a multivariable into prime factors

You could create a factoredForm wrapper that formats integers as desired: ...
• 131k
Accepted

### Collect Fourier series terms

is this what you are asking? exp=3Cos[x]+5Cos[2x]+12Cos[3x]; Coefficient[exp,Cos[x #]]&/@Range@3 {3, 5, 12}
• 6,697
Accepted

### Partial and semipartial correlation

Mathematica has a PartialCorrelation function but that is for time series data. However by following the information in Partial and semipartial correlation you can ...
• 41.7k

### Plotting of a polynomial function via two approaches

You cannot use both $a$ and $1/a$ in CoefficientList. Let's take a more simple example, which throws an error message together with a nonsensical result: ...
• 25.3k

### How to extract coefficients and powers from expressions with non integer powers?

You may use pattern matching to achieve what you want: ...
• 51.9k
Accepted

### Coefficients of Knuth's "Convolution Polynomials"

As Michael notes, deleting the stray brackets will make it work. A better method, however, would be to use SolveAlways[]: ...

### Extracting coefficients from exponential function

Try to use the TreeForm function to visualize and the Part function to get the parameters. For example, here is your expression: ...
• 39.5k
Accepted

### LogitModelFit function

The short answer Both Mathematica and R are asked to fit 3 parameters associated with the nominal variable: intercept, xA, and xB. But there's a linear dependency among those three parameters and ...
• 41.7k
Accepted

### Given $ax^2+bxy+cy^2+dx+ey+f$, what is the best way to get {a,b,c,d,e,f}?

CoefficientArrays come to mind, but it needs some tweaking. The below solutions work for polynomials of order $2$. Demonstration ...
• 24k

### Given $ax^2+bxy+cy^2+dx+ey+f$, what is the best way to get {a,b,c,d,e,f}?

You can also use CoefficientList as follows: ...
• 396k