Skip to main content

Questions tagged [operators]

Questions about using or composing operators--functional mappings from one state or vector space to another.

Filter by
Sorted by
Tagged with
0 votes
0 answers
61 views

I'm trying to implement expected value angle brackets with all the rules of expected values built in, so that I can symbolically manipulate complicated expressions involving expected values, but I'm ...
AnonymousPlatypus's user avatar
2 votes
2 answers
150 views

I'm trying to create a function that handles operators. The only thing left to do is implement the commutator. The minimal working example of func is ...
hlediks's user avatar
  • 499
3 votes
1 answer
128 views

I am trying to construct a linear differential operator programmatically. My approach is based on the worked-out example in the NonCommutativeMultiply documentation....
hlediks's user avatar
  • 499
9 votes
2 answers
763 views

I'm taking the enjoyable (but very high-level) Wolfram U course in Discrete Mathematics. That course gives the logical operator precedence as ...
Tom Barson's user avatar
3 votes
1 answer
226 views

I am working on a matrix multiplication problem where I have two matrices, MatA and MatB. ...
Jennifer Derleth's user avatar
1 vote
0 answers
119 views

I am working with the Bose-Hubbard model and I want to construct the following operator as described below. I have $L$ lattice sites where I want to construct this operator $e^{i*\phi*N_{R1}}$ where $...
CuriousMind's user avatar
1 vote
1 answer
125 views

I am working on symbolic quantum mechanics calculations in Mathematica, where I need to compute the Hermitian conjugate of expressions involving non-commutative operators. For instance, I have ...
travelInrrj jj's user avatar
0 votes
0 answers
38 views

I am working on a quantum system and need to expand and simplify a Hamiltonian in Mathematica. The Hamiltonian is given as: $$ H_{I} = \hbar \frac{\chi}{2} a_{1}^{\dagger 2} a_{1}^{2} + \left(i\hbar \...
travelInrrj jj's user avatar
0 votes
0 answers
102 views

I need to define the properties of conjugate transpose in mathematica: Properties of Conjugate Transpose: ...
Reya Rose's user avatar
3 votes
2 answers
306 views

Big Mathematica novice here, hopefully this isn't too trivial? I would like to define a function in Mathematica that takes $f$ as an input and produces repeated applications of the operator $\Theta_\...
anxious_plankton's user avatar
0 votes
0 answers
189 views

How can I let Mathematica tell me that trace(Identity matrix)=n for n by n identity matrix? It's easy for human but what would a Mathematica code be? A harder task: How can I let Mathematica tell me ...
XYSquared's user avatar
  • 101
0 votes
2 answers
169 views

My objective is to define an opeartor op such that for every rational function $f(c)$ of a fixed symbol c, $op(f(c) x)=f(c) op(x)$. What is a good way to implement ...
user475525's user avatar
0 votes
0 answers
145 views

I am trying to calculate eq (A3) ...
Anshul Bokade's user avatar
2 votes
1 answer
119 views

I'm a beginner in Mathematica and I'm learning about dealing with differential equations but I'm stuck in this problem What I tried to do is I observed that I have the same differential operator ...
Youssef Yasser's user avatar
10 votes
1 answer
215 views

Values of a list can be added to an association's values like so, ...
Carl Verdon's user avatar
0 votes
1 answer
125 views

If I define P[x]=D[#,x]& (derivative operator) How can I define another operator $Q$ such that $Q(f(x))=Pf(x)+a$ (for example)? Thanks.
roly's user avatar
  • 213
0 votes
1 answer
93 views

Given the following set of equations: ...
Jee's user avatar
  • 386
0 votes
0 answers
58 views

If I define a differential operator: T[i_] := D[#, x[i]] & I am able to apply it multiple times to a function without any issues: ...
Antoine Vauterin's user avatar
3 votes
3 answers
269 views

I am having difficulty implementing finite differences in the correct columns of my code. ...
Rubens Vilhena Fonseca's user avatar
2 votes
1 answer
139 views

I have some symbolic indexed objects $A_i$, $B_{ij}$, $C_{ijk}$, $D_{ijkl}$, etc. I want to define a symbolic differential operator $\partial_{xy}$ that acts on these indexed objects in the following ...
Franz5217's user avatar
7 votes
6 answers
686 views

Is there a more concise way of achieving the following result (possibly without d |->)? ...
azerbajdzan's user avatar
  • 32.8k
2 votes
0 answers
82 views

How can I define the operator $\sqrt{m^2-\frac{\partial^2}{\partial x^2}}$, such that it acts on the function $\psi(x)$ as follows: \begin{eqnarray*} \sqrt{m^2-\frac{\partial^2}{\partial x^2}}\...
Yu-Sen Zhou's user avatar
3 votes
3 answers
373 views

I am working with finite difference methods analytically and I would like to be able to perform operations on subscripted variables. I would like to generate the following expression by applying a ...
Hefaestion's user avatar
4 votes
3 answers
370 views

How can I construct a determinant-type differential operator, where the multiplication of elements in the determinant represents the composition of multiple differential operators? \begin{align*} \...
D.Matthew's user avatar
  • 249
0 votes
1 answer
89 views

I want to define my own vector notation so that the input \[Del] \[Cross] a outputs curl[a] while the ...
ymma's user avatar
  • 1
2 votes
2 answers
352 views

I'm doing some work on stochastic processes, where I use random functions which are defined by their properties over averages, i.e $$\langle f(t) \rangle =0 \\ \langle f(t) f(t')\rangle = \alpha(x,y) ...
J Pin's user avatar
  • 21
0 votes
1 answer
121 views

I have the following expression: $$(\nabla+\vec{P})^2$$ where $P=(r\cos\theta sin\phi,r^4\sin\theta,r\cos^3\phi)$ I would like to open the brackets and simplify the expression. Are there in ...
Mam Mam's user avatar
  • 1,933
1 vote
3 answers
197 views

I have an expression of the following type: x f[a] g[b] where x is a number but f[a] and <...
Pxx's user avatar
  • 711
8 votes
7 answers
2k views

I have the following lists Y and EY with actual and estimated outcomes. ...
M.E.'s user avatar
  • 333
2 votes
1 answer
187 views

For example, I define the circle plus as a_\[CirclePlus]b_ := a + b^2; a__\[CirclePlus]b_ := (a[[1 ;;-2]]\[CirclePlus]a[[-1]])\[CirclePlus]b; But when I try ...
Curious Cat's user avatar
1 vote
1 answer
81 views

I am trying to define a function (an operator) that "integrates then translates" a function. More specifically, for an input f[x], I want to integrate it as \int_0^x f[t] dt, then translate ...
user122916's user avatar
1 vote
0 answers
342 views

I am having trouble writing the momentum operator in the differential form to complete a piece of code shown here so that I can show a commutator [P,Q] = I . Here is what I have done so far, and I ...
cows's user avatar
  • 165
1 vote
2 answers
257 views

I'm trying to evaluate some scattering amplitudes terms in Mathematica using the spinor helicity formalism. For that, I need to turn products like $\epsilon_i\cdot k_j$ into spinor product which can ...
Marcosko's user avatar
  • 319
11 votes
2 answers
282 views

Suppose that I have a function that has two patterns: disksConstantRadius[radius_][points_] := Disk[#, radius] & /@ points (noting that this would be better---...
Craig Carter's user avatar
  • 7,554
1 vote
0 answers
159 views

I know how to define a single-variable differential operator like Clear[Op] Op[x_] := a D[#, {x, 1}] & and I can do operations like ...
z.v.'s user avatar
  • 199
7 votes
1 answer
337 views

With reference to the answer by @Bill to the question posted here, I am trying to understand the following three lines ...
seeker's user avatar
  • 867
2 votes
1 answer
337 views

Consider Clear[x]; x = 2; x < 2.9 || x > 3.1 This yields True So, everything is o. k. (interesting) But when you replace ...
user7427029's user avatar
1 vote
1 answer
251 views

I am trying to make a finite difference operator such that it would behave similar to the partial derivative $\partial_{x}f[x]$. $\delta_n[f[n],m] := \frac{f[n+m]-f[n]}{m}\ .$ I couldn't find a way to ...
Questioneer's user avatar
2 votes
1 answer
104 views

I have the vectors defined as follows: v1={x1,y1,z1}; v2={x2,y2,z2}; v12=v2-v1; v21=v1-v2; I am passing an integer function for iteration purpose as follows: ...
Aschoolar's user avatar
  • 893
2 votes
1 answer
194 views

For example, I have defined a bunch of binary functions Sum1, Sum2, Prod1, ...
Yifeng Huang's user avatar
2 votes
1 answer
130 views

TreeForm[HoldForm[ (9-2^2+10 8)/9]] produces this: Is there a way to use Divide instead of ...
Geremia's user avatar
  • 540
2 votes
2 answers
171 views

I need to define a multivariable differential equation of the type $$ \mathcal{D}=\Theta_1^2-z_1(-\Theta_1+\Theta_2+\Theta_3+\Theta_4)(1+\Theta_1+\Theta_2+\Theta_3+\Theta_4)\\ \;\;\;\;\;\;\;\;\;\;\;\;\...
Forum's user avatar
  • 21
0 votes
1 answer
77 views

Recently I have met with some confusing abnormalities when trying to determine if there is a specific operator (usually Plus[] ) in an expression by programming. ...
AlbertLew's user avatar
  • 493
2 votes
1 answer
115 views

Given the expression How can I define the following operator like g[u_, v_] := eq1 The correct definition is
Jose Nuñez's user avatar
3 votes
2 answers
217 views

I have a problem in doing an operation on this vector {{2,3},{3,4},{5,6}}-{1,1} I want to minus this to get the result ...
Ahmed's user avatar
  • 369
0 votes
1 answer
190 views

I am trying to write the code for the following expression in Mathematica: $$\partial_{x} e^{-g x}=-g e^{-g x}+e^{-g x} \partial_{x}\,.$$ I was able to do so with the help of the following links with ...
Sam's user avatar
  • 3
0 votes
0 answers
88 views

How to write the expression for first order differential operator in Mathematica? What I mean to say that I want to evaluate $$\frac{\partial}{\partial x}f(x)=f'(x)+f(x)\frac{\partial}{\partial x}.$$ ...
Sam's user avatar
  • 3
3 votes
1 answer
133 views

I'm trying to workout a long expression with derivations, the thing is I can't seem to transfer this problem to code. What I need is a operator $D = l^\mu \frac{\partial}{\partial x^\mu} $ where $l^\...
Nitaa a's user avatar
  • 800
7 votes
1 answer
504 views

I was looking at some sample code in a YouTube video and saw an "operator" (not sure this is the right term) consisting of a horizontal bar with circles on the ends. I searched through the ...
Robert McCormick's user avatar

1
2 3 4 5 6