# Questions tagged [physics]

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

944 questions
Filter by
Sorted by
Tagged with
900 views

### Numerically solving radial Schrödinger equation with Yukawa potential

I am trying to solve the radial Schrödinger equation using NDEigensystem but I am running into some issues. There are posts about doing this (see here for example), ...
27 views

### Manual updating of function in Do loop

Previously I had asked a question about solving Maxwells equations with boundary conditions, here Machine overflow when defining boundary conditions. I have managed to successfully run the code ...
39 views

### ReplacePart will not accept coordinates [closed]

So, curiously I get an error claiming that entries like {40,80}, {41,80}... will not work as a valid positional input. I'm making these from creating a table. So, I tried manually entering these ...
27 views

### Specify a tensor or a function with a specific form in xCoba [closed]

Suppose, in the Schwarzschild geometry with the standard coordinates, I wanted to specify an electromagnetic tensor F with the (six) components all being functions of r: A(r), B(r), C(r), D(r), G(r), ...
66 views

### A code to calculate Einstein tensor [duplicate]

I use the following MA code to calculate Einstein’s tensor. I’m asking about the zero component of the Einstein’s tensor, is it correct? Because I think $G_{00}$ should contains the terms in the zero ...
50 views

1 vote
100 views

316 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 ...
1 vote
141 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 ...
167 views

67 views

### Evaluate the time average of Mathieu functions

I defined a function composed of Mathieu's periodic functions: ...
1 vote
127 views

### Modelling projectile with lift and drag forces

I am trying to model a projectile motion with lift and drag forces. I have written the code below, solved for $y$ and $x$, and tried to plot it. However, I don't know how to implement the fact that ...
46 views

I am using Series function on (1/z)(-k^2)^z. Up to z^0, the function gives me 1/z + Log[-k^2]. But in the standard textbook on QFT, it turns out the expansion should give 1/z + Log[k^2/mu^2] -i*pi up ...