Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [coefficients]

The tag has no usage guidance.

0
votes
0answers
9 views

Create a polynomial from a list of coefficients [duplicate]

First I have to extract coefficients from a polynomial.Then I have to make a polynomial from by given list and show that they are identical. So I tried like this: ...
2
votes
0answers
38 views

Coefficients of continuous wavelet transform

I am fiddling with wavelet coefficients in Mathematica, and for simplicty only a real valued Wavlet. Lets say we have the data: ...
2
votes
2answers
165 views

Solve PDE with complicated coefficient non-linearity [on hold]

I wish to solve is the heat equation with solution-dependent coefficient. The equation along with BC's and IC's are as follows: $\begin{equation} \frac{\partial P[x,t]}{\partial t}-\alpha[x,t]\frac{\...
-1
votes
1answer
59 views

How to extract a coefficient from a sum

Let us consider a sum of specified functions multiplied by coefficients, for example f[x_]:= Sum[Exp[j*x]*p[j],{j,1,n}] I want to extract the coefficient ...
1
vote
1answer
36 views

Output of Apart as a list?

I have a rational funtion of one variable that I know will always have a simple partial fraction decomposition of the form $$\sum_{n=1}^N\frac{\alpha_n}{z- \beta_n},$$ but I do not know the values ...
5
votes
2answers
154 views

Extracting coefficients from sum

I'm having the hardest time working if I have a sum of products, with coefficients out the front, like expr = 1 + 2 a[0] b[1] + 2 a[0] b[1] c[3] + c[6] + 5 d[3, 4] ...
3
votes
2answers
210 views

How to get vector a from known inner product?

Assuming that a.b=z,where b={b1,b2,b3} and z=x b1+y b2+z b3, obviously ...
0
votes
1answer
93 views

Get Polynominal Coefficient of non linear equation [closed]

I have a non linear equation and want to create a polynomial of that. For this I have to calculate the coefficients. The problem is that the equation is a little bit long. So I wanted to do it with ...
0
votes
1answer
58 views

Collect terms in Fourier Transform

I want to collect terms in x from a product of polynomials and Fourier transform. So I try following code: ...
1
vote
1answer
56 views

Get coefficients of specified variables of polynomial, including zeros

In general I want to extract coefficients of specific variables of a polynomial (even of variables whose coefficients are zero). I try to explain it step by step: 1) I have a first polynomial. ...
6
votes
4answers
728 views
2
votes
1answer
142 views

Solving for coefficients in a polynominal

I've the following problem: how can I solve for the coefficients in a polynominal? So, I mean the following: I've the following expression: $$\left(56-85689\cdot x\right)^2-3136\tag1$$ And I ...
1
vote
2answers
84 views

Collect terms with same-kind coefficients and factor exponential based on that

In the following expression, how can I group apart the terms in the exponential with a and b coefficients so that I can express ...
1
vote
3answers
70 views

Replace coefficient list with new coefficient list

I would like to replace all the coefficients with new conditions in a list that I specify. For example, suppose I have the polynomial $a_1 x + a_2 x^2$. ...
1
vote
1answer
49 views

About the Coefficient command after double Taylor Series

First, let me give the code. These are the matrices. ...
1
vote
2answers
312 views

How to solve for all coefficients in a sum

The statement of the problem: In the following formula, $$g(u,v) - \sum_{\Delta,l} c_{\Delta,l} u^{\frac{1}{2}} G^{(l)}\Bigg(\frac{1}{2} (\Delta-l),\frac{1}{2} (\Delta-l),\Delta,u,v \Bigg) = 0$$ ...
2
votes
1answer
49 views

Advanced Trivariate Polynomial With Integer Coefficients Manipulation

Suppose $$f(a,b,c)=\left(a+b+c \right)^{2}-2 \left(a^{2}+b^{2}+c^{2}\right)-4abc$$ and $g(a,b,c)$ is some polynomial of total degree 6 with integer coeffients. I want to find a polynomial $h(x)$ with ...
2
votes
1answer
75 views

LogitModelFit function

I have a problem with LogitModelFit function in Wolfram Mathematica. Specifically, I am not sure how to include Nominal variables. This is my approach: ...
0
votes
1answer
64 views

Getting errors when trying to solve an integral equation

I am getting the final integrate value with x range, I need to find the only one real parametera,but I receive an error: This ...
6
votes
3answers
150 views

SeriesCoefficient is broken in Mathematica 11.1, but works in 11.0

Consider the following implementation of the complex square root: f[z_]:=Sqrt[(z - I)/(z + I)]*(z + I); This implementation has branch points at $\lambda=\pm i$ ...
0
votes
1answer
34 views

Finding the value of some coefficients such that an equation is true [closed]

I have some expression that is a function of some variables $q_i$ and some coefficients $\gamma_j$, which is equal to zero, $$ f(q_i, \gamma_i) = 0$$ I want to find the value of the coefficients, ...
0
votes
0answers
33 views

Is there a way to use CoefficientRules in a parallel way?

Probably this question is too general. I have an extremely large polynomial expressions exp0 and CoefficientRules[exp0,var] takes too much time. Is it possible to find a way to get the ...
2
votes
1answer
72 views

Specifying variable in CoefficientRules

I am trying to determine the number of terms in an expression, but I have created a matrix to represent variables: xMat = Table[sGain[[i, 1]] + 4, {i, 1, 3}] ...
0
votes
1answer
33 views

Coefficient on expression in InputForm

I am having trouble understanding what is going wrong when trying to use the Coefficient function on expressions in InputForm. A very simple example serves to illustrate. ...
0
votes
0answers
35 views

How to produce list of variables when ExpandAll is used beforehand?

I am having an issue with Variables[] and Coefficient[] functions. I have a very long expression obtained where I utilize ...
1
vote
3answers
139 views

How to extract variables with time subscript and their coefficients

I have a expression of the following form: $$x_{t}=a_{0}+a_{1}x_{t-1}+a_{2}y_{t-2}$$ where $a$'s are just coefficients and anything with time subscript is a variable. I would like to have list of ...
2
votes
2answers
126 views

Extracting coefficients from exponential function

I would like to extract the coefficients A,b0,b1,b2 from the following form: A0 * Exp [b0 + b1*x + b2*x^2] I am aware that the command Coefficient or CoefficientList would be able to do so for ...
0
votes
2answers
107 views

Extracting order n coefficients from a non-closed form summation

I am trying to evaluate the following expression when $c=0$: $$\sum _{k=1}^{\infty} \dfrac{(k+1) c^{k-1} g(k)}{(k-1)!}+\left(\sum_{k=0}^{\infty} \dfrac{(k+1) c^k g(k)}{k!}\right)^2$$ (copyable ...
0
votes
0answers
34 views

Error in storing the output of a module (subroutine) into an array

For a physics application, I have to compute components of a rank-4 tensor, the Riemann tensor. I do this using a module (subroutine) which looks like this ...
2
votes
4answers
309 views

collect a multivariate polynomial, and simplify all coefficients

I have a polynomial like this: (a x + b c y + d z) (d x + e c y + g z) I would like to rewrite it as something like this: a d x^2 + b c^2 e y^2 + d g z^2 + (c (b d + a e)) x y + (d^2 + a g) x z ...
1
vote
1answer
75 views

Extract coefficients from polynomial with specific form [closed]

I have following polynomial: $$ f(x,t)=a_0(x)(x-t)^0+a_1(x)(x-t)+a_2(x) (x-t)^2+...+\frac{a_{n-1}(x)}{(n-1)!}(x-t)^{n-1}$$ Can I extract that $\frac{a_{n-1}(x)}{(n-1)!}$ coefficients? ...
1
vote
2answers
123 views

Construct Matrices from Coefficient of f[x] in Finite Fields?

I'm working on a problem at the moment using Mathematica and the Finite Fields package, and I've ran into some difficulty converting the problem to a Matrix, so I'm hoping somebody here would know how ...
0
votes
1answer
44 views

Get missing cyclic numbers via modulus?

Consider a list of numbers: list = {1,2,3,4,5}; Taking a random set of three of these numbers: ...
1
vote
2answers
377 views

determine the coefficients of a quadratic equation with “Solve”

Assume we want to determine the coefficients (integer) of a quadratic equation by having some information about the input and output values. If I enter the input and output individually before the ...
0
votes
1answer
74 views

How to find the basis functions of a polynomial solved for boundary conditions?

ss=Sum[a[i]*x^i,{i,0,10}]; eq1=ss/.x->0 eq2=ss/.x->1 sol=Solve[{eq1==0,eq2==0}]; sol1=ss/.sol How can I find the coefficients of ...
1
vote
2answers
192 views

How to find the basis functions of a polynomial?

For example, if I have, e = a0 + a1 x + a2 (-x + x^2) + a3(-x + x^3) + .... + an (-x + x^n) how do I find and list ...
1
vote
0answers
72 views

Extract coefficients from CoefficientRules

So CoffeficientRules[] gives a vector {E1->c1,..., En->cn} for the N monimals Mi in the polynomial P = M1+...+Mi I would like to separate the coefficients ...
0
votes
2answers
73 views

writing a parametric equation in a new form [closed]

I have an equation which contains lots of terms with lots of unknown parameters. I want to write it in the form: ...
1
vote
0answers
83 views

Coefficients are extremely high

I'm currently doing eigenvalue decomposition of a function. The answer given by Mathematica contains strange coefficients, on the outside is a factor of 10^-11 and on the inside are several factors ...
0
votes
2answers
83 views

Assign Coefficients of Exponential Series

I want to assign coefficients of Exp[-5*x] series into C[0,0], C[1,0], ...
14
votes
2answers
671 views

Finding the number of odd quintinomial coefficients

I am searching for the number of odd coefficients of $\qquad (x^4 + x^3 + x^2 + x + 1)^n$ for arbitrary $n$. It took some hours to compute the result for $n=12207$. There are $16333$ odd ...
-5
votes
1answer
150 views

How to get the coefficients of a generator function? [closed]

I am trying to programming the following in Mathematica; however I am having trouble getting this to work inside the For loop. $$\text{For}\left[i=1;i^2<10,i\...
3
votes
1answer
114 views

Coefficients of Knuth's “Convolution Polynomials”

Donald E. Knuth gives in his paper Convolution Polynomials the code ...
1
vote
1answer
91 views
2
votes
0answers
74 views

How to equate the coefficients in the following equation by using Mathematica

I have the following equations $$A(u)=exp \left( \sum_{n=2}^{\infty} \frac{(-1)^n}{n} \zeta (n) u^n \right)$$ and $$\rho (e^{Tu})=A(u) e^{Tu}$$ After expanding the both equations we get $$A(u)=1+\...
1
vote
1answer
94 views

Calculate coefficients of permutations

Let's say $a=(12345)+(41235)-(51234)-(54123)$ $b=(12345)+(21345)-(31245)-(32145)$ And i need to calculate coefficients of $\sum_{\pi\in S_5}\lambda_{\pi}*\pi$ multiplied by a*b (from the left). ...
2
votes
0answers
37 views

Coefficients of a matrix of polynomials [duplicate]

I have a matrix where each entry is a polynomial in the same variable, say a, all with numerical coefficients. The simplest example is: ...