Questions using the Sum command, especially for series and other algebraic objects, and related functions such as SumConvergence

learn more… | top users | synonyms

1
vote
2answers
39 views

What can I use as an equivalent of python zip in mathematica inside of Sum[]? [on hold]

I want to take two lists of the same length: widths and weights, and sum a function (of 3 variables) over a single index using the elements from both lists that have that index. Then I want to plot ...
3
votes
1answer
62 views

The fastest way of raising indices of high rank tensor

I have some high dimensional high rank tensors, let's say $$F_{ijkl}$$ and I need to find $$F^{abcd}=g^{ai}g^{bj}g^{ck}g^{dl}F_{ijkl}.$$ Here $g^{ij}$ is the contravariant metric. Simple summation ...
1
vote
1answer
64 views

How should I enter indexed terms? For example, constants $n_k$ for $k\in\{1,\,\ldots,\,N\}$

How should I enter $\quad \quad \sum^{N}_{k=0}{f(n_k)}$ into Mathematica? More generally, how should I work with the indices? Take the following as an example. I know how the ...
1
vote
1answer
117 views

Multiply out product of sums

For a specific quantum mechanical problem I need to multiply out operators in order to calculate a trace by hand. For example I need a Hamiltonian squared with $H^2$. The Hamiltonian contains of a few ...
3
votes
1answer
83 views

Simplify a huge expression with limited memory

I would like to perform some analytical sums such as the following ...
1
vote
0answers
53 views

How can I get the exact value of this infinite series? [duplicate]

I want to compute the exact value of this infinite series $$\sum_{n=1}^\infty\arcsin{\left(\dfrac{2}{\sqrt{n(n+1)}(\sqrt{n}+\sqrt{n-1})}\right)}$$ I tried to implement something like this ...
2
votes
1answer
41 views

Sum of Products [closed]

What is a way to nest a product in a sum: $$\sum_{i=2}^{N}\cos\theta_i\cos\theta_i^\prime\prod_{j=i+1}^{M}\sin\theta_j\theta_j^\prime$$ where $N$ and $M$ are two numbers? Thank you.
2
votes
1answer
184 views

Simplify results further

I have an extremely long result in polynomial form following some matrix operations. However, given the symmetry of the problem, I can safely say that the solution will reduce much further than is ...
1
vote
0answers
46 views

Does Sum calculate all terms before summing them?

After calculating the sum of a large number of large objects, using B = Sum[RandomInteger[{0, 1}, {10^6}], {100}]; I find that ...
1
vote
0answers
58 views

Improve speed of evaluating a sum over four indices

I am trying to implement the Fox-H function with several variables as sum of residues. I have arrived at the following function; ...
10
votes
2answers
246 views

Asymptotics of $\frac{\sum _{i=0}^{\lfloor n/2 \rfloor} {2(n-2i) \choose n-2i} {n \choose 2i} {4i \choose 2i}}{2^{3n - 1}}$

I am fairly sure that asymptotically $$\frac{\sum _{i=0}^{\lfloor n/2 \rfloor} {2(n-2i) \choose n-2i} {n \choose 2i} {4i \choose 2i}}{2^{3n - 1}} \sim \frac{2}{\pi n}.$$ I tried ...
2
votes
1answer
58 views

The Summation of a Summation in Mathematica

I am trying to input $\sum_{a_1=1}^{n-1}$$\sum_{a_2=1}^{{a_1}-1}$$\sum_{a_3=1}^{{a_2}-1}$$\sum_{a_4=1}^{{a_3}-1}$$...f({{a_1},{a_2},{a_3},{a_4}...})$ into Mathematica. The number of sums should be a ...
0
votes
1answer
201 views

How to calculate the unknown quantity in an infinite series?

I'd like to calculate x value in this equation. Basically, I tried to 2 types of method which are FindRoot and NSolve. But, I have failed the calculation caused by these errors up to now. If ...
0
votes
1answer
268 views
11
votes
3answers
375 views
0
votes
0answers
60 views

Replacing function in Sum

I have this expression, which, after execution, gives these $F[s,r]$ in output. $$ S_{1,1}=\sum _{s=1}^{16} \sum _{r=1}^{16} F(s,r) \text{Tr}\left[G_r.G_1.G_s.G_1\right] $$ Here is a piece of ...
1
vote
1answer
56 views

Weird sum regularization? [duplicate]

I noticed some weird behavior in "Dirichlet" regularization of infinite sums. Let us first compute ...
1
vote
0answers
103 views

Summing the probability distribution to 1 to convince myself

I have worked out a probability distribution and want to check its sum which is necessarily 1. First we write $$ r \triangleq \frac{(2 \lambda + \mu)^2}{2(\mu + \lambda)^2}, \quad s \triangleq ...
1
vote
1answer
65 views

Problem in minimizing expression

I am trying to implement bootstrapping (https://en.wikipedia.org/wiki/Bootstrapping_(finance)) of CDS curve. To implement it I am trying to minimize a series of expression. The minimum value of ...
0
votes
2answers
65 views

Solving two variable using two expressions each involving summation

I am trying to solve for h1 and h2 using function solve as in below code, Expression in solve has two equation each equates sum ...
0
votes
2answers
108 views

Strange evaluation of an sum involving binomial coefficients

I stumbled upon this problem while playing with Mathematica 10. Can anyone help me explain the following behaviour? I define a sum ...
2
votes
1answer
59 views

Sum over multiple indices that take specific values

Pretty simple question: how do I sum over multiple indices that can only take specific values all together? To clarify: let's say I have the following sum: $\sum p_{a,b,c} f(a,b,c)$ where $f$ is a ...
1
vote
1answer
49 views

Solve for a variable using expression involving sum of quantities

I am trying to solve for h1 using function solve as in below code, Expression in solve equates sum of two expression. Both left hand and right hand side of expression is the sum of four quantities ...
2
votes
1answer
39 views

Indeterminant expression encountered in Summation

I have a function that I'm trying to find an explicit form for the coefficients in its power series expansion. On paper, it is a long calculation so I decided to write up the formula in mathematica. ...
1
vote
1answer
52 views

Summation notation

I have the current setup for calculating Allan Deviation: which was coded as: Sqrt[Total[Differences[y]^2]/(2 (M - 1))] However, after doing some research, ...
0
votes
1answer
115 views

Replacement of terms/Pattern matching involving products of derivatives of a function

In delving into Ramanujan summation, I'm trying to get a hold of the relations of the form $$\sum_{n=0}^\infty f(n)=\dfrac{h\frac{d}{dx}}{{\mathrm{e}^{h\frac{d}{dx}}}-1}\int_{0}^\infty ...
1
vote
1answer
83 views

How to evaluate sum with different coefficient in each term?

I would like to know if there is a syntax that allows me to enter a sum that has coefficients that vary for every term? I have no interest in evaluating them numerically, but rather to keep them as ...
1
vote
1answer
83 views

Work around bugs in Summation, Hypergeometric function?

I'm so confused I don't even know how to phrase the question, so here's what's happening: I need an analytic form for this: ...
1
vote
1answer
34 views

series combinations

is there any possibility of displaying all possible series of the form: "1+/-2^2+/-3^2+/-...+/-n^2", where one can choose the sign before the each term and knows the numbers of the terms in the ...
0
votes
1answer
39 views

Problem with double sum on the calculation of Ricci tensor

I wrote a program in Mathematica to calculate the Riemann and Ricci tensors (obviously, passing trought Christoffel symbols first), however just later I thought of calculating Ricci tensor directily ...
0
votes
0answers
50 views

Is there a way for me to get Mathematica show its steps? [duplicate]

I have seen similar questions but they were quite dated (3+ years). When performing, say an Integration, it would be beneficial to see the major steps such as variable substitution, change the order ...
9
votes
2answers
228 views

How to implement symbolic Ramanujan's summation in Mathematica?

How to implement Ramanujan's summation in symbolic form in Mathematica? For instance, I want as input the function $f(x)=x$, as output $-1/12$, as input $f(x)=1/x$, as output $\gamma$ (Euler's ...
0
votes
1answer
60 views

How do you stop Mathematica from evaluating a sum? [closed]

A concentration $A(i,j)$ varies over i,j. I'd like to include the summation of $A(i,j)$ in my Mathematica expressions, but it evaluates the sum ...
2
votes
1answer
63 views
1
vote
2answers
113 views

Collect distributed sums

I have another task that somehow should be trivial. Suppose I have the following expression $$ \sum_{i=1}^n \frac{2}{9} x_i + 2 \sum_{i=1}^n \frac{1}{9} x_i, $$ or in Mathematica-FullForm ...
2
votes
3answers
65 views

Referring to the components of a vector within a sum

I feel like I'm missing something obvious here, but.... I'm playing around, trying to do the standard deviation for my stats homework (don't worry, I already worked out the answer by hand), and I ...
1
vote
0answers
88 views

Real part of a sum

I would like to take the real part of the following expression: Sum[(a[i] + I b[i]) r^i/(r^2 + z^2)^i, {i, 0, 2 n}] where all of ...
0
votes
3answers
224 views

Mathematica plotting help (plotting a complex fourier series) [duplicate]

How would I plot the following in Mathematica? $ \displaystyle\sum_{n=2}^{10} \bigg(\dfrac {4ine^{inx}(-1)^n}{(n^2 - 1)^2} - \dfrac{4in e^{-inx}(-1)^n}{(n^2 - 1)^2} \bigg) $ Thanks.
4
votes
1answer
114 views

Converting a sum into $\Sigma$ notation

I have a simple expression of the form $\quad \quad t^5+t^4+t^3+t^2+t+1$ and I want Mathematica to convert this to the form $\quad \quad \sum _{i=0}^5 t^i$ Is there a way to do this?
2
votes
0answers
48 views

Simplifying symbolic multiple sums

suppose I have a multiple sum with an unspecified number of indexes: $$\sum_{i_1=1}^n \ldots \sum_{i_k=1}^n x_{i_1}\otimes\ldots\otimes \hat{x_{i_j}}\otimes\ldots\otimes x_{i_k}$$ with $x_{i_j}$ ...
3
votes
1answer
38 views

Apply a list to a summation expression

I've gotten unexpected (at least to my novice eyes) application of a list of values to a Sum expression where the variable for imax is also used in the expression ...
2
votes
1answer
231 views

Problem with infinite sum

I am facing a problem in evaluating infinite sums of the following form. As a first thing define the following function ...
1
vote
1answer
101 views

Summing terms in Table

I have a table that looks like Table[m, {k, 10}, {j, k}, {i, j}] where, m is a square matrix that depends on the indices $i, ...
7
votes
1answer
92 views
2
votes
2answers
170 views

Strange result of an infinite sum

I have the following definition: o[a_] := Sum[ x^(2 k + 1) Product[(2 i + 1)^2 - a^2, {i, 0, k - 1}]/((2 k + 1)!), {k, 0, Infinity}] Now when I evaluate ...
3
votes
0answers
69 views

Decrease computation time of module [closed]

I need to compute the exponential of a matrix (in this caseR) by the summation method where R is a square matrix with symbolic ...
0
votes
1answer
53 views

Weird results of calculating a sum of binomials?

In[1]:= Sum[(-1)^k*Binomial[n, k]*Binomial[k, j], {k, 0, n}] Out[1]= (j Binomial[0, j])/(j - n) According to this output, for any ...
1
vote
2answers
63 views

Infinite Sum with exclusion

From another question I tried to implement something like: Sum[r^(1 - l[n]) DD[n], {n, Complement[Range[1, Infinity], {4}]}] but this does not work because ...
1
vote
1answer
58 views

Truncate a sum in a 'smart' way

Consider a series like this: $$\sum_{n=1}^{\infty} (c_n r^{2-n/2}+d_n r^{-n/2})$$ Sum[c[n]r^(2-n/2)+d[n]r^(-n/2),{n,Infinity}] I want, now, to keep only the ...