# All Questions

92,233 questions
Filter by
Sorted by
Tagged with
83 views

### How to set the precision for the entire notebook

I want to do various computations conditional on a given precision for the entire notebook. I use the following code: ...
1 vote
34 views

### functional derivative with respect to the partial derivative of the metric with xAct

I want to compute the functional derivative with respect to a partial derivative of the metric with the mathematica package xAct. This is what I have tried so far: ...
74 views

### Rotating text in the Epilog of a plot results in distortion

I want to rotate text in a plot. When I rotate by 90 degrees, or 180, it's perfectly OK. But if I want to rotate to 60 or 45 degrees, then the text appears distorted (see example below). How can I fix ...
79 views

### Nice output for FourierTransform

I want to demonstrate FourierTransform in a lecture. However if you give FourierTransform a differential equation it does not ...
204 views

### Different answers when attempting replacement of function argument

I have three function computing Fibonacci numbers which return correct answers when directly called with e.g. fib1: ...
1 vote
31 views

### Monitor inside core function

I like DistanceMatrix: its performance is surprisingly high, even for a big data. However, for a huge arrays and custom ...
120 views

### Why does using a sparse matrix for least squares instead slow down the speed?

Here is the code. The matrix appears to be relatively sparse in terms of its visual representation, but why does using least squares result in significantly slower speed compared to the previously ...
22 views

### Simplify vector calculus based on component splitting

I am interested in verifying a few Vector Calculus expressions using Mathematica. These expressions are based on splitting a vector field into its transverse components (in the xy- plane) and ...
3k views

### Digits of Pi in colored spiral

In How to make the digits of π go around in a spiral like this? it is described how to plot pi in a spiralform (in my case as binary number): ...
30 views

### Function asymptotics showing different result after inter integration [closed]

I have a function fg[r_, t_, t2_, \[Phi]_, DR_]. I want to do the following Integrate it for t2 from 0 to t Then take the asymptotic limit r-> 0 The result of ...
73 views

### Which condition is better for WhenEvent?

I'm solving a non-linear system with NDSolve. See my previous post In the WhenEvent, which one is better for ODE solving ...
89 views

### MaTeX text looks shabby when latex generated pdf is not zoomed

I want to use Matex for the figures in my plots which I eventually would like to use in overleaf. I create a plot and use Matex in it and right click on it to save as pdf. I then use this pdf in ...
95 views

### Searching AnatomyData efficiently

I really like AnatomyPlot3D, but find it exceedingly difficult to find Mathematica's terminology for an anatomical structure. Listing all of them and searching by ...
370 views

### How to handle units of measurement?

I'm trying to understand how Mathematica handles units of measurement. That is I expect that a calculation should return a certain unit, but I don't succeed. Let's consider this example: ...
64 views

### Maximizing a function that is only defined numerically

I have a function of multiple variables that is only defined numerically. I am trying to maximize the function and find the critical points as fucntions of two parameters p and s using FindRoot but I ...
122 views

### Speed up this computation involving NSolve many times?

Can you think of a way of speeding up this computation ? I don't. ...
33 views

### Trouble implementing switching hybrid system with NDSolve

I'm trying to use NDSolve to simulate a hybrid nonlinear system that switches between different linear behaviors based on states and inputs (i.e. switching from one linear behavior to another) which ...
396 views
+50

57 views

### FunctionCompile get IR source code [closed]

A new fancy option to compile WL's function using LLVM is amazing. Is there any way to get the IR's (intermediate representation) representation of it? According to specification there are two forms ...
62 views

### Calculation hangs when called an own function from own loaded package. Debug output shows strange things

I created a package a long time ago and it was working, but in the versions 13.2 13.3 an old created function hangs when called. If I evaluate the same function from a cell manually and then call, it ...
60 views

...