Questions tagged [physics]
Questions related to the application of Mathematica to problems in physics.
970
questions
51
votes
6
answers
6k
views
ColorData["VisibleSpectrum"] is wrong?
Bug introduced in 10.0 or earlier and fixed in 11.1
I am trying to visualize the visible spectrum using the built-in ColorData["VisibleSpectrum"] function which "...
9
votes
1
answer
3k
views
Efficient implementation of cubic equation of state
...In this case the Peng Robinson Equation of State. Equations of state are empirical equations with parameters derived from experimental data. They are used to predict pure component and mixture ...
54
votes
6
answers
44k
views
How to calculate scalar curvature, Ricci tensor and Christoffel symbols in Mathematica?
I am seeking a convenient and effective way to calculate such geometric quantities. I've used packages like TensoriaCalc, but they don't work at all time. Sometimes,...
56
votes
8
answers
12k
views
Circuit drawing in Mathematica
This past semester I taught an introductory electromagnetism course and had quite a nice time using Mathematica to draw all sorts of figures and diagrams (mostly for problems and etc.). However, I was ...
4
votes
1
answer
2k
views
Computing Slater determinants
I need to compute Slater determinants. I'm wondering if I would benefit from assigning each of my functions to a variable prior to computation. I'm working with Slater determinants, but my question ...
2
votes
1
answer
263
views
Need more float precision
I have a Physics problem which huge and tiny numbers and Mathematica just gives me a speed of my particles which is the speed of light. Then $1/\sqrt{1-v^2/c^2}$ becomes singular.
If I use smaller ...
14
votes
3
answers
3k
views
Constructing a symbolic Hermitian matrix
I need to construct a symbolic Hermitian matrix like
m = {
{ n, a, b, b},
{Conjugate[a], n, b, b},
...
}
but I am not able to set ...
4
votes
1
answer
3k
views
NDSolve, Schrödinger equation, and decaying solution
I am trying to solve a Schrödinger equation for a particle hitting a step potential using NDSolve in Mathematica. Here is my code:
...
23
votes
6
answers
18k
views
How do I plot a plane EM wave?
I would like to display an electromagnetic (EM) wave. I have written code that works, but it does not "shade" the area between the graph and the axes. Both the ...
13
votes
1
answer
5k
views
Kramers-Kronig relations
I am trying to calculate the change of the refractive index from the change of the absorption coefficient using the Kramers-Kronig relations, in Mathematica.
...