Skip to main content

Questions tagged [physics]

Questions related to the application of Mathematica to problems in physics.

4 votes
3 answers
411 views

How to fit function with data?

I have ...
Sale Gauss's user avatar
1 vote
1 answer
84 views

Value of a function over permutations of two lists

I want to do the sum (in Ising lattice gauge theory) ...
QFTheorist's user avatar
1 vote
1 answer
54 views

Sum on a lattice where variables can only take two values (Ising lattice gauge theory)

I want to study the Ising Gauge Theory which has the Hamiltonian \begin{equation} \mathcal{H} = -J \sum_{n,\mu,\nu} \sigma_3(n,\mu)\sigma_3(n+\mu,\nu)\sigma_3(n+\mu+\nu, -\mu)\sigma_3(n+\nu, -\nu) \...
QFTheorist's user avatar
0 votes
0 answers
77 views

How to calculate Einstein tensor components for this metric?

I try to calculate the Einstein tensor compenents from the eqution: $ G_{\alpha\beta} = \frac{\nabla_\beta (\partial_\alpha \phi)}{\phi} - \frac{1}{2\phi^2} \left[ \frac{\partial_4 \phi \partial_4 g_{\...
Dr. phy's user avatar
  • 287
1 vote
1 answer
105 views

Plot after applying NIntegrate

I'm trying to integrate and graph $I$ vs $b$ the following integral (eq. 24 in this paper) in wolfram mathematica $$ I = \int_{2}^{\infty} \frac{g_i^3 \mathcal{K}_t \mathrm{~d} r}{r^2\left|\mathcal{K}...
Soliton-104's user avatar
2 votes
1 answer
222 views

Numerical ground state wavefunction of Schrödinger equation with a Coulomb potential in 2D from NDEigensystem

I want to numerically solve the ground state wave function of the hydrogen atom with the Coulomb potential using the NDEigensystem. Here is the code to get the ground state wave function from the ...
AminD's user avatar
  • 51
1 vote
1 answer
163 views

Animating a double spring spherical pendulum

I want to make an animation of a double spring spherical pendulum. The first mass is connected to the ceiling with a spring, and the second mass is attached to the first one with a spring too. The ...
Denis D. Bavrin's user avatar
0 votes
1 answer
103 views

Change of variable of a numerically solved integral

I have the following function that numerically integrates a function on the interval $\left[ 2, 100 \right]$ ...
Soliton-104's user avatar
0 votes
1 answer
93 views

Writing a function that sorts by low powers while ignoring higher powers of various variables

I'm writing a Mathematica code with the aim of automating operator mixing calculations in QCD (at least at one-loop order). So far, it can generate Feynman rules and all graphs, assign the rules, call ...
y9QQ's user avatar
  • 11
1 vote
0 answers
84 views

Intensity pattern [closed]

I'm trying to get the following intensity pattern from this paper In the Newtonian case, the equations for the intensity (eq. 9 and 10 in the article), I put them in Mathematica with the change $b^2 =...
Soliton-104's user avatar
0 votes
0 answers
71 views

How do you create a program to calculate the spectrum of a pulse of arbitrary shape?

Develop a program designed to compute the spectrum of a pulse with an arbitrary shape. My current program might not suitable for solving this problem. ...
Iра Сотник's user avatar
1 vote
1 answer
192 views

Animation of double pendulum with a spring (3DOF)

I've got a problem with animating a double pendulum where the first mass is connected with a ceiling with a bar and the second mass is connected with the first one with a spring. Below is my code ...
Denis D. Bavrin's user avatar
1 vote
1 answer
266 views

Plot solution of an integral with parameter

In this article, they solve the following integral $$ \mathcal{I}_{o b s}\left(\nu_0\right)=\int_{\gamma_i} \frac{(A(r))^{3 / 2}}{r^2} \sqrt{\frac{1}{A(r)}+r^2\left(\frac{d \varphi}{d r}\right)^2} d r ...
Soliton-104's user avatar
4 votes
1 answer
360 views

Animation of a spring pendulum

I would like to animate a spring pendulum. Below is my piece of code. The Lagrangian and equations are correct, in which I am sure, but the animation looks terrible and non-realistic. Could someone ...
Denis D. Bavrin's user avatar
1 vote
2 answers
150 views

Making the timestep of Euler method integration a variable

I am fairly new to Mathematica, and I've been trying to implement the Euler method of integration for a fluid velocity field. I can't work out how to make the timestep a variable of my Euler method ...
Feneb's user avatar
  • 13

15 30 50 per page
1 2 3
4
5
65