# Questions tagged [physics]

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

432 questions
211 views

### Mathematica package for power spectra of scalar perturbations

Is there any Mathematica package available to numerically compute the power spectra of the scalar and tensor perturbations in cosmology? I'd like to numerically calculate the tensor to scalar ratio in ...
104 views

### Solving a diffusion-reaction ODE with NDSolve

I'm working on solving an equation to estimate production in a spherical catalyst pellet. A working example is given below: ...
925 views

### Plotting the electric field and potential of a dipole

This is a function that takes a function, turn it into a vector, then plots the vector and its contour. ...
370 views

### How can I plot visible spectrum? [duplicate]

I have a data with wavelength and intensity and I draw these graph with excel. then how can i make this into specturm like below?
101 views

98 views

### Is there a way to compute the following definite integrals?

While evaluating the final wavefunction of a free spin-0 particle in one dimension in terms of Green's functions (propagators) and considering the initial conditions as Gaussian wavepackets, I arrived ...
144 views

### ParametricNDSolveValue for ODE with boundary at infinity

I'm trying solve the Schrödinger equation for a given potential using the function ParametricNDSolveValue following the the first method of the post: Find eigen energies of time-independent Schrö...
426 views

### Plotting Hermite-Gaussian polynomial for Gaussian beams

Can you show me all the steps and the code to trace the Hermite modes with Mathematica 11? I want to draw the Hermite Gauss mode for a Gaussian beam with Mathematica 11 but I can not write a ...
225 views

### Finding intersection points from contour plot

The Left hand side of the equation has only real part. But the right hand side has real and imaginary parts. So i am using a contour plot. The intersection of lefthand side and righthand side of ...
364 views

### A product for fermionic variables

I'm trying to write a dot product that can handle fermionic variables, i.e., let $a,b$ be fermionic variables, $a\, b=-b\, a$. There is already a package that can handle fermionic+bosonic variables, ...
278 views

224 views

### Solving a nonlinear system of ODE with DSolve

I have been trying to solve the following system of ODE with initial values using the function DSolve. My code is : ...
373 views

### Position dependent Neumann condition on boundary mesh

I am trying to solve Laplace equation over a time-dependent region using cylindrical coordinates. My system is independent of the angle coordinate, and so the equation looks like: The region ...
342 views

### Solve PDE over time-dependent region

I have some experience with C++ programming, but I am quite new to Mathematica and I think the latter requires a different mindset which I am still not used to. I would like to simulate the effect ...
49 views

### How do I get the output of a square-wave input? (singularity problem)

I am trying to get the electrical response of a system to an input square wave. Here is the code: ...