Mathematical vectors, operations on vectors and vectorized programming.
3
votes
2answers
594 views
creating vectors with normal distribution of lengths
First consider vectors of unit length, say on the unit sphere.
Now I want to give some magnitude to these vectors and I want the magnitude to be chosen from the normal distribution.
In one dimension ...
13
votes
2answers
801 views
How to represent and manipulate abstract indexed vector (or tensor) expressions?
I have a couple abstract indexed quantities, both differential elements
$dx = dx^\mu e_\mu + x^\mu de_\mu$
$du = du^\mu e_\mu + u^\mu de_\mu$
I can compute the expression $(dx + du) \cdot (dx + du) ...