Skip to main content

Questions tagged [products]

Questions about the use of `Product`, `NProduct`, and other types of multiplication, like `Dot`.

Filter by
Sorted by
Tagged with
1 vote
1 answer
79 views

Are there built in vector cross product identities?

I want to be able to simplify expressions of vectors, such as: Cross[Cross[x,p],Cross[Cross[y,q],Cross[x,p]]] I know I could create my own rule sets, however I'd ...
ions me's user avatar
  • 1,055
1 vote
2 answers
77 views

How to use these many conditions inside product?

I have tried all the way but I could not find a code for that line. It is consisting of three conditions.
Nithiya V 22PHD1215's user avatar
1 vote
2 answers
69 views

How to verify a FactorialPower identity?

How to verify that FactorialPower[x, m*n, k] is always the same as Product[FactorialPower[x - i*k, n, m*k], {i, 0, m - 1}] ...
PalmTopTigerMO's user avatar
6 votes
3 answers
452 views

Why do I get different results for the products of two identical expressions?

I have two expressions with the Gamma function that are identical: ...
Vaclav Kotesovec's user avatar
5 votes
2 answers
189 views

Pattern recognition for products of variables

Pattern recognition doesn't work as I would expect when trying to match products, for example Cases[a[1] b[1] a[2] b[2], x___ a[k_] b[k_] -> k, All] {1} ...
Adrien Martina's user avatar
2 votes
0 answers
65 views

Expanding Pochammer symbols/Gamma function for simplifying expressions

TLDR: How to expand gamma functions or Pochammer symbols in an arbitrarily long product? Some context I am trying to find out a closed-form expression for $\langle r^\alpha\rangle$ for the non-...
Sanjana's user avatar
  • 195
2 votes
3 answers
282 views

Simplifying products of DiracDelta

I want to simplify expressions containing DiracDelta products. For example I want to simplify the expression $$\delta(z-2)\delta(k-5)\delta(t-z-k-9)$$ to give the answer $$\delta(z-2)\delta(k-5)\delta(...
Mohamed Mostafa's user avatar
1 vote
0 answers
48 views

Plot of some complicated functions containing special functions under both Sum and Product

I am trying to plot the $|f(\theta,\phi)|^2$, where the expression of $f(\theta,\phi)$ is as under: $$ f =\sum_{n_j}\Pi_{j_x,j_y,j_z}P_{n_j}\sum_{l}A_s \text{e}^{-ia(l_1q_x+l_2q_y+l_3q_z)}\times \...
R. Bhattacharya's user avatar
1 vote
0 answers
104 views

Taking the derivative of a product

EDIT: see here I am new to Mathematica and I am trying to work though deriving the maximum likelihood estimator for the Poisson distribution as an exercise to familiarize myself with how Mathematica ...
Ben S.'s user avatar
  • 111
0 votes
0 answers
110 views

Kronecker Product for arbitrary number of spins

I want to write a function that can perform the following kronecker product: ...
Gabriele Stevanato's user avatar
1 vote
2 answers
299 views

How to define replacement rule for Minkowski inner product

following question, I have an expression that consists of several Minkowski inner products between 2 four vectors written as in Mathematika: ...
Faktor 2's user avatar
4 votes
2 answers
203 views

Symmetric product

Let define the full symmetrization of a tensor $e_1 \otimes ... \otimes e_N$ by $$ Sym : e_1 \otimes ... \otimes e_N \rightarrow \frac{1}{N!} \sum_{\pi \in S_N} e_{\pi^{-1} (1)} \otimes ... \otimes e_{...
Baloo's user avatar
  • 167
1 vote
2 answers
133 views

Simplify a fraction of symbolic product

How can I convince mathematica to simplify the ratio of these two symbolic products. You can see that the terms in the denominator are present in the numerator. ...
abnowack's user avatar
  • 113
2 votes
1 answer
74 views

Expression involving If and /. gives different result from direct evaluation

...
gmvh's user avatar
  • 123
2 votes
1 answer
93 views

Dropping non-commutative product in the end

Suppose my expressions are given as a combinations of non-commutative products, i.e., $2 X**Y**Z + 3 Y**Z**X$, I want to make this as commutative product and get $5 X**Y**Z$. And want similar things ...
phy_math's user avatar
  • 923
0 votes
1 answer
63 views

Symbolic re-assignment of products

Suppose I have some symbolic tensors $X,Y$ and I want to assign X.Y into something else without specifying what $Y$ is. For example, I may want $Y$ to serve as ...
Evangeline A. K. McDowell's user avatar
6 votes
2 answers
203 views

How to type following expression in Mathematica

I want to eneter following expression in mathematica $$\prod_a^3 \prod_{b\neq a}^3 \frac{x(a)}{b-a}$$ How is this extra condition in product entered in Mathematica? Without the restriction, I would ...
user824530's user avatar
1 vote
3 answers
78 views

Digits product and an iteration process

I would like to create a code which gives me the square of the product of the digits of a number, with the only rule that if a number has a 0, then it doesn't count in the product (for example, if the ...
MathRevenge's user avatar
0 votes
1 answer
804 views

dot product and norm [closed]

Can you solve the following problem in mathematica program? Thank you. Let x=(x1,x2,x3),y=(y1,y2,y3) and ⟨x,y⟩=x1y1+2x2y2+x3y3 be an inner product in a three-dimensional real vector space. Define the ...
Hakan A.'s user avatar
5 votes
1 answer
250 views

Numeric evaluation of a matrix product integral

Working on a problem in quantum mechanics, I rediscovered a notion of a product integral, which I was not familiar with before. In a simple case, when the integrand is a real-valued scalar function, ...
Vladimir Reshetnikov's user avatar
5 votes
2 answers
368 views

How to handle excluded values in a summation or product in Mathematica

I want help to writ that on Wolfram Mathematica : How can I handle the $i \ne j$ part?
Rashed Al-Rababah's user avatar
2 votes
0 answers
77 views

dot product of one thousand matrices [closed]

I have a time dependent matrix. In a thousand different times with the same time intervals I get the values of the matrices. Now, how can I DOT Product these thousand matrices in time order??
Mojtaba Rezaee's user avatar
0 votes
1 answer
98 views

Partial derivative of n-variables product [duplicate]

I am new to Mathematica. I would like to calculate the partial derivative of the product, $\frac{\partial}{\partial x_{j}} y \prod _{i=1}^{n}x_{i}^3=\frac{3}{x_j} y \prod_{i=1}^nx_i^3$, where $1 < ...
XJ.C's user avatar
  • 123
1 vote
0 answers
75 views

How to create this list

Suppose I have two kinds of operators $a[i,j],a^\dagger[i,j]$ where i is a non-negative integer and $j=\pm 1$, I want to create a list containing all possible products of $ a^{(\dagger)}[x_1,j_1]a^{(\...
Vayne's user avatar
  • 101
2 votes
2 answers
455 views

Overwrite a tensor product notation a_\[TensorProduct]b_ := KroneckerProduct[a, b]

I noticed that the definition of KroneckerProduct and For example TensorProduct[({ {0, 1}, {1, 0} }), ({ {0, 1}, {1, 0} })] Output: {{{{0,0},{0,0}}...
wonderich's user avatar
  • 923
2 votes
1 answer
151 views

define edge set of a graph

I want to define a graph in Mathematica which its vertex set is cartesian product of two sets. I define the vertex set by Tuple[] but two vertices are adjacent if and only if the intersection of the ...
Roya's user avatar
  • 33
1 vote
2 answers
71 views

Transform a Matrix as an expression

If I have a matrix that I know it can be written as (xi.xi)*KroneckerProduct(H,xi), where xi and H are vectors. Is there a way to obtain this expression from a given matrix?
Ray's user avatar
  • 41
1 vote
1 answer
51 views

Guess the next number formula [closed]

I have a sequence of numbers such as {1,2,4,8,16} The goal is to create a polynomial f(x) such that: f(0)=1, f(1)=2, f(2)=4, f(n)=nth item on the list I found this function which claims to do exactly ...
Wombles's user avatar
  • 802
0 votes
0 answers
125 views

Cancel common factors in symbolic product

Suppose I have the following function G[n_, k_] := Product[g[n + i]/g[i], {i, 0, k}] where $n,k$ are assumed to be natural numbers and $g$ is a nonzero symbolic ...
blablablup's user avatar
5 votes
2 answers
313 views

How to plot multifactorial function?

The multifactorial function can be extended to the reals (see TheSimpliFire answer) like so: It follows that we can extend the multifactorial function to the reals ...
Mariusz Iwaniuk's user avatar
1 vote
3 answers
189 views

How to factorize $f(x,y)$ into $f_1(x)f_2(y)$? [duplicate]

Suppose we have a real function $f:\mathbb R^2 \rightarrow \mathbb R$ and we would like to know if this function factorizes into $f(x,y)=f_1(x)f_2(y)$ for some real functions $f_1,f_2$. Is there an ...
W. Volante's user avatar
1 vote
2 answers
60 views

Multiplication with custom notation

I would like to compute the product $$(Es+r_{13})(F_{13}s)(F_{3}s+r_{3})(F_{2}s+r_{2})(F_{12}s+r_{12})(F_{1}s+r_{1})(F_{23}s+r_{23})$$ where $E$, $F_i$, and $r_i$ represent arbitrary numbers whose ...
crystal_math's user avatar
0 votes
0 answers
43 views

The command Total sums the entries of a list, is there a comparable command for the product of entries of a list? [duplicate]

I recently just found out about the command Total that gives the sum of a list. Was wondering whether there's an analogue that gives the product of the entries of a list? I see that there is the ...
Paul B. Slater's user avatar
1 vote
0 answers
218 views

How To Define An Outer Product (in xAct)?

I am working with xAct / xCoba / xTras and I would like to construct a matrix out of a vector. So, I have a vector V on a manifold ...
kalle's user avatar
  • 181
2 votes
1 answer
199 views

Plotting list data of cross product of field vectors

I have some experimental data points of electric Ey(t, value) and magnetic field Hz(t, value). I am trying to calculate the ...
Gopal Verma's user avatar
  • 1,065
1 vote
0 answers
1k views

How to prove the Grassmann identity in vector form? [closed]

I am given the following question: Show that for all vectors a,b,c the Grass-mann identity holds: $$ a\times (b\times c)\text {=} (a\cdot c)b - (a\cdot b)c $$ I have tried entering the above identity ...
Coder_fox's user avatar
  • 111
1 vote
0 answers
193 views

partial derivative of sum and product

I would like to compute $\frac{\partial}{\partial f_i} \prod_{j=1}^N f_j$, where $1\le i\le N$. By typing e.g. F[f_] = Product[f[i], {i, 1, N}] D[F[f], f[1]] ...
Graz's user avatar
  • 165
1 vote
1 answer
74 views

Need to verify strange behavior with Product[]

I'm running 12.1.0.0 on MacOS X x86 (64-bit). The expression Product[1 - 1/n^5, {n, 2, Infinity}] yields 0 as output, which is ...
heropup's user avatar
  • 2,122
2 votes
0 answers
64 views

How to calculate the numerical integration of the product of two entries of an exponential matrix? [closed]

Lets define a $6\times6$ matrix $M(t)$ with entries $m_{ij}$ as ...
Saeid 's user avatar
  • 801
5 votes
1 answer
113 views

How can I tell `Dot` to behave automatically linear?

I would like the number $a$ to be taken out: ...
João 's user avatar
  • 155
12 votes
0 answers
264 views

Why is Product[1 + 1/k^5, {k, 1, Infinity}] equal to zero in 12.1?

Bug introduced in 12.1. Fixed in 12.2. In all versions up to 12.0 it is ...
Vaclav Kotesovec's user avatar
1 vote
1 answer
169 views

Multiplying two expressions with a specific function, efficiently

Paraphrasing, the problem I am trying to solve is the following. I am given two "matrix valued" sums ...
Stijn's user avatar
  • 332
3 votes
1 answer
91 views

Using the elements of one Matrix to form a new Matrix with specified rules

Given a matrix [a], how to get matrices [b] and [c] based on the following two rules? rule [a]->[b]: Strike out corresponding term in [a] and take product of the remaining two terms in the same ...
likehust's user avatar
  • 693
8 votes
2 answers
333 views

How to simplify Sum's and Product's of arbitrary length?

I would expect Sum[Subscript[x,i], {i, 1, n}] + Sum[-Subscript[x,i], {i, 1, n}] and ...
Kai Daniel's user avatar
5 votes
3 answers
430 views

Smoother ways for setting up a Product function with j=0 and j != i

I want to implement a Product function, particularly the Lagrange polynomial $\ell_{i}(x)=\prod_{j=0 \atop j \neq i}^{n} \frac{x-x_{j}}{x_{i}-x_{j}}$ Are there ways to implement the "not equal" ...
Rapiz's user avatar
  • 75
9 votes
2 answers
232 views

Closed form of product of Gamma function

Mathematica recognizes this closed form \begin{align} \prod_{k=1}^{n-1}\sin(\pi k/n) &= 2^{1-n}\,n \end{align} just fine: but fails on this one despite that this expression also has a known ...
g.kov's user avatar
  • 193
1 vote
0 answers
131 views

Simplifying the dot product [closed]

Why does the code D[x.x, x] /. {1. x -> x, x .1 -> x} gives 1.x+x.1, while ...
Pxx's user avatar
  • 711
1 vote
0 answers
66 views

How to evaluate an expression [closed]

I have a 3-dimensional array of numbers say A. I want to evaluate the following expression. $\displaystyle\sum_{\sigma,\tau \in S_6}(\Pi_{i=1}^6A(i,\sigma(i),\tau(i)))$. $S_6$ is the symmetric group ...
Anupam Ah's user avatar
  • 111
11 votes
1 answer
271 views

Why is this product equal to zero, when the correct result is 2+GoldenRatio?

Consider the following product $$ \prod _{k=2}^{\infty } \frac{1}{1-\frac{\left(\frac{1}{2} \left(\sqrt{5}-1\right)\right)^k}{1-\left(\frac{1}{2} \left(\sqrt{5}-1\right)\right)^{2 k}}}$$ Mathematica ...
Vaclav Kotesovec's user avatar
1 vote
1 answer
321 views

How to multiply the elements of each site of tensor products to each other while using symbolic representation?

If I have, say three sites in a symbolic operator which is of the form A = a⊗1⊗c and I want it to act on another operator B = a1⊗b⊗1 in order to find the commutator A.B - B....
Net's user avatar
  • 13