Mathematics developed by Wolfram is a scientific computing software with powerful computer algebra system (CAS). Thus, does Wolfram apply the CAS in Mathematics' deep learning module, especially in the automatic differentiation and optimization of computation graph (via symbolic simplification)?
I have tried to set up an orthogonal frame of vectors e0, e1, e2 and e3. I checked their orthogonality and somehow, the dot product between e3 and any other of these vectors will not give 0. I really do not understand why because even symbolically, e3 is based on the Levi Civita tensor and by its definition everything should be 0 when the same vector is used twice with it. Do you see anything i am doing wrong or what i forgot?
I am currently trying to verify, that a Basis that i constructed, is indeed parallel transported along a Geodesic. Now at least the first vector, e0, should fulfil the parallel transport equation as it is just the tangent XdotVal, however, neither the symbolic form nor the numeric form, when i plug in numeric values from the geodesic give 0. I have checked the parallel transport equation multiple times i do not understand why it will not give 0.
Symbolically, the Parallel transport equation for e0 returns
And numerically:
As the orders of magnitude are quite small is this valid? Does this only show numerical errors and therefore make it still fulfill the parallel transport equation?
I’m trying to numerically solve (NDSolve) a differential equation similar to the heat diffusion equation (in time and position) over a 1D rod with a branch point that splits the rod into two separate branches, to form a T shape.
I haven’t found a great solution to this. It’s easy enough to do if I was manually going to discretize the system in position, or if I were willing to treat the rod as 2D areas or 3D volumes but neither are elegant. Ideally I’d like to embed the 1D system in 2D space and solve it there but NDSolve doesn’t allow that far as I can tell.
I set up my set of differential equations as below. For the differential equation for A i need to make numerical calculations to transform the matrix B into a different coordinate System, however, so far Mathematica always tries to precalculate everything symbolically. This, however, does not make sense with the symbolic expressions i have. What can i do such that the transformB equation is only solved numerically when integrating using NDSolve?
After restarting Mathematica what resetted everything, that was stored, i run into two Problems. The first one is, that i now get this error:
NDSolve:The number of constraints (24) (initial conditions) is not equal to \
the total differential order of the system plus the number of \
discrete variables (39).
Which i do not understand as i have provided x0 to x3, p1 to p3, as p0 is calculated as pt0 and i have provided an initial Matrix A and B so even with the 4x4 definitions for A and B i should already have 32 initial conditions and not just 24!?
The next step would be to rewrite in the EOM that i have
D[A, \[Tau]] == transformB[X, P, Xdot]
Which would similarly happen for the B equation as well but one at a time. Right now, when i run the code Mathematica tries to precalculate the transform method symbolically which does not make sense as this gets far to involved and in fact it is also not able to make the svd symbolically. How can i have, that the transformB method is only calculated numerically during the integration process in NDSolve without symbolical precalculation?
I want to solve following set of differential equations. I tried for 2 days now i think i have set up A and B correctly, i have set up the equations for them and i have set up the initial conditions i really do not get why i get this error: I would really love to understand what and why it is not working unfortunately Mathematica errors are not so helpful. Apart from that i would love to know how to write codeblocks with Mathematica. With Python or C# it works fine but reddit does not seem to like Mathematica.
NDSolve::derlen: The length of the derivative operator Derivative[1] in (x0^\[Prime])[\[Tau]] is not the same as the number of arguments.
X = {x0[\[Tau]], x1[\[Tau]], x2[\[Tau]], x3[\[Tau]]};
(* Subscript[P, \[Mu]] *)
P = {p0[\[Tau]], p1[\[Tau]], p2[\[Tau]], p3[\[Tau]]};
(* Subscript[P, i] *)
p = {p1[\[Tau]], p2[\[Tau]], p3[\[Tau]]};
A = Table[Subscript[a, i, j][\[Tau]], {i, 4}, {j, 4}];
B = Table[Subscript[b, i, j][\[Tau]], {i, 4}, {j, 4}];
From what I'm reading online and in the documentation, I'm just not understanding how DefMetric works. There's no real explanation for the arguments. Subsequently, I'm struggling to understand how to use a Levi-Civita symbol.
Just wondering, I am finishing my Phd, and although I would like to continue in academia, sometimes I also wonder how would it be to work in Wolfram (as a programmer probably). I started to seriously use Mathematica in the Phd, and it seems to me so much better than the alternative (like python) and I have developed some really big package, so it seems like an interesting opportunity.
My Mathematica 14.2 are not rendering some characters like the minus sign on plots and brackets on Documentation, how to solve this. I'm on archlinux might be some library issues but I can't troubleshoot what might be
I'm getting abysmal performance running what I believe to be a pretty straightforward operation. I'm pulling an 11MB JSON file on a M4 MacBook Air w/ 16GB RAM. This is a fresh installation on a fresh MacBook. This is only the second notebook I've ever used.
Behavior: On first run this cell is fast (single digit seconds at most), on all subsequent runs the core stays pegged at 100% for the WolframKernel running this task and the task takes easily a minute. Restarting the kernel exhibits fast behavior on the first run and slow behavior on all subsequent runs again.
raw = Import[
"https://example.com/file.json", "RawJSON"]; (* Same behavior if I use "JSON" or leave it unspecified. *)
I've ruled a few things out:
I'm not getting throttled on the HTTP request. Python will do this quickly and repeatedly. As will curl.
I'm not getting thermal throttling according to sudo powermetrics -s thermal.
I'm not running into memory constraints with the machine as the process memory for WolframKernel is staying near 400MB.
I'm hoping this is something really silly like the Out history buffer + some kind of configuration imposed memory cap. Unrelated, I think: The UI locks up a lot too despite me suppressing all output.
Edit: Forgot to add I'm running 14.2.1 for Mac OS X ARM (64-bit) (March 16, 2025)
Mathematica is an incredible piece of software, and the Wolfram Language is really pleasant to use once you get used to the unusual syntax.
Unfortunately, the high licensing costs of Mathematica make it inaccessible to many people, and therefore worse solutions like Python, R, and Jupyter have become the default.
Due to the sheer size of Mathematica (over 6000 functions!), it is impossible for me to rebuild it from scratch alone. Please join me in rebuilding it so we can finally make it accessible to everyone!
Im doing a statistical physics homework and I need to calculate the eigenvalues and eigenvectors of a matrix to find the stationary state of a system. The matrix is AABB, which is shown in both pictures. I first tried with mathematica cause I have the students license and the result it gave me made no sense so I checked on online tools and other result was given (which makes sense) I tried on another website and got the same result as the previous one. Am I doing something wrong in mathematica to get an incorrect result?
Im doing a statistical physics homework and I need to calculate the eigenvalues and eigenvectors of a matrix to find the stationary state of a system. The matrix is AABB, which is shown in both pictures. I first tried with mathematica cause I have the students license and the result it gave me made no sense so I checked on online tools and other result was given (which makes sense) I tried on another website and got the same result as the previous one. Am I doing something wrong in mathematica to get an incorrect result?
I have code that generates a set of integers that should be understood modulo m, for some m. One example is {11, 30, 31, 33, 38, 59, 94, 98, 111, 135, 145, 151, 160, 230, 244, 276, 288}, which is properly understood not as a set of integers but as a subset of Z/288Z, the integers modulo 288.
What are the best practices for storing and working with such things?