Newest Questions
97,743 questions
2
votes
1
answer
51
views
Constructing a URL query using URLDownload or URLRead
I am trying to download data from NOAA and I can't figure out how to construct a query to do it.
This URL points to a page that contains data for tides at six minute intervals between Jan 01 2021 and ...
0
votes
0
answers
87
views
Wikipedia word cloud question from "An elementary introduction to the wolfram language"
I have been following the aforementioned course and it has been great. I am currently stuck on question 36.4: "Publish a form on the web that takes the topic of a Wikipedia page and gives a word ...
0
votes
1
answer
94
views
HowTo vertically center node labels in Graph output
Version: "14.3.0 for Linux x86 (64-bit) (July 8, 2025)"
The code listed below using the data following it produces the result shown in the image. I want the node labels positioned directly ...
3
votes
1
answer
221
views
What is the meaning/utility of __[] AKA BlankSequence[][]?
I understand BlankSequence in other contexts, but not this one __h means a pattern of one or more things each of which have head ...
1
vote
0
answers
56
views
Eigenvectors of GSE with right properties
I encountered a weird problem when trying to study a few properties of eigenvectors of matrices sampled from the Gaussian symplectic ensemble (GSE). I have encountered this while trying to understand ...
4
votes
2
answers
265
views
Visualizing Different Coordinate Representations of Complex Numbers
As a beginner with Mathematica, I apologize if this question is too basic. I would like to show introductory students that a complex number can be represented in several different coordinate systems ...
1
vote
2
answers
339
views
Creating a spiral
This is both a math question and a Mathematica question. I am trying to draw a simple spiral, and found this diagram that fits what I am trying to create.
Implementing the math, using Mathematica, I'...
2
votes
1
answer
146
views
Numerically integrate an implicit vector vectorizedly
I want to define a function f[x] and then be able to integrate numerically as a vector - not component by component. The following is my failed attempt:
...
-2
votes
0
answers
73
views
Why iteration fails? [closed]
I'm solving this ODE and it seems that the first iteration (urho[1]) works but when I try to calculate urho[2] it fails. The ...
2
votes
0
answers
88
views
$Assumptions set in init.m are reset back to True
I set $Assumptions to something in init.m. I followed it with printout to see that it was being set. However, once I get to my ...
1
vote
0
answers
127
views
Summation contains additional $\frac{\zeta(3)}{8\pi^2}$ term if evaluated without presimplification
As noted in this math.se question from 2018 (which was using WolframAlpha and Mathematica 7.0, though it persists in 14.0.0), Mathematica's evaluation of the following sum depends on where the ...
2
votes
2
answers
121
views
Log-scaled bar legends in both directions
EDIT: This question has been heavily edited to only show the one question I have without confusion.
I am simulating points $X_j$ and getting outputs $Y_j=f(X_j)+e_j$ where $e_j\sim N(0,3)$ where $f$ ...
3
votes
2
answers
226
views
Solving a coupled 2nd order differential equation numerically using NDSolve
I would like to solve the following system of differential equations numerically for two one-dimensional functions $R(x)$ and $\phi(x)$:
\begin{eqnarray}
c_1 \left(R''(x) - (\phi'(x))^2 R(x) \right) - ...
4
votes
1
answer
141
views
Visualizing multiple paths to infinity in the complex plane using Mathematica [closed]
Hello everyone — I’m reading about the extended complex plane and the “point at infinity,” and I find the geometric picture quite helpful. According to this text, in the complex plane $z \in \mathbb{C}...
2
votes
2
answers
189
views
Finding asymptotes of a function defined by a relation of two variables
Based on this question, how does one analytically compute the asymptotes for the equation defined by:
$$(x+y+2)(x+y)^2 = x+9y-2 ?$$
I can easily plot the curve...
and can manipulate equation for ...
0
votes
0
answers
85
views
How should I handle required package dependencies in a package?
I'm writing a package A.
However, package A depends on package B (Mathematica), which the ...
0
votes
0
answers
45
views
Error when saving notebook, Mathamatica searches for a .m file
Whenever I save a my notebook (filename.nb), I get the error "RenameFile: Directory or file
"..path..\filename.m" not found.", and the file doesn't save.
It happens both with ctrl+...
0
votes
1
answer
170
views
How does Mathematica define the indefinite integral $\int f(x) dx$? [closed]
How does Mathematica define the indefinite integral $\int f(x) dx$?
For example, if you input into Mathematica Integrate[Sin[x], x] it will return $-\cos(x)$ and ...
2
votes
0
answers
61
views
how to improve the predictor corrector schemes including computational cost
I am currently implementing a variable-order fractional predictor–corrector scheme in Mathematica. Since I am still a beginner with Mathematica programming, I encountered several issues during the ...
0
votes
0
answers
78
views
Displaying parentheses in axes labels
I have a list plot that I want to plot in a framed graph and have the following labels on the axes.
...
0
votes
0
answers
45
views
As shown in the figure, how to draw a graph with a broken y-axis? [duplicate]
Piecewise function. The two segments have significant differences. The y-axis needs to be split to show the trend of each segment, and a connection is required in the middle.
This is quite different ...
2
votes
5
answers
213
views
How can I generate the $z^2$ grid-mapping diagram (rectangular grid → curved grid)?
I would like to generate a diagram in Mathematica showing how the mapping
\begin{equation}
w = z^2
\end{equation}
transforms a rectangular grid in the complex $z$-plane into a curved grid in the $w$-...
1
vote
0
answers
122
views
1
vote
0
answers
73
views
Neural Networks and Non Linear Fits
I'm trying to obtain the parameter models for various types of acoustic absorption materials.
When dealing with fiber (polyester, with low flow resistivity), the Wilson model, which has two parameters,...
1
vote
1
answer
81
views
How to check if two edges have consistent orientation in all simple cycles of a graph?
How can I check whether two edges (tagged "c" and "d") have consistent orientation (either always the same ...
3
votes
1
answer
156
views
What, if any, is the list analogue of KeyValuePattern?
I am trying to understand the function of KeyValuePattern. According to the documentation,
KeyValuePattern[{patt1, ...}] is a ...
0
votes
1
answer
94
views
NDSolve options for increasing precision near boundaries for "stiff" integration
I'm trying to estimate the solutions u[x,t] to a backward diffusion equation PDE using NDSolve (note - I need the time-dependent solution, as I already have solutions to the equilibrium case where the ...
1
vote
3
answers
419
views
How to change the color of the individual squares on a chessboard?
The code I have written to create a chessboard is as follows:
...
0
votes
0
answers
54
views
0
votes
1
answer
88
views
Specifying an Answer to Questions in introductory Real Analysis [closed]
I'm trying to understand how to formulate answers to the following questions using MMA as asked in Bartle and Sherbert (2000) Real Analysis dealing with sets.
For n_PositiveIntegers and ...
2
votes
1
answer
112
views
4
votes
1
answer
185
views
Blurry AxisObject
I am trying to imitate default frame of ContourPlot with AxisObject. I used AbsoluteOptions ...
0
votes
0
answers
44
views
How do I switch off the spell checking in notebook text cells? [duplicate]
When I write my notebooks I usually use English in the text cells. However, in some cases, I need to write in Russian or German. Then the German or Russian text appears underlined. Please find below ...
1
vote
1
answer
164
views
1
vote
2
answers
51
views
How can I include all terms within a sum? [duplicate]
I would like to include terms that factorize a sum within the sum.
For instance, from
k Sum[Subscript[x, i], {i, 1, L}]
getting
...
3
votes
2
answers
222
views
How can I append data to a file with tab-separated values?
I'm producing a lot of data which I want to save to a file in tab-separated format:
$\begin{matrix}x_1&&f(x_1)\\x_2&&f(x_2)\\x_3&&f(x_3)\\&\ldots\end{matrix}$
I'd like ...
0
votes
1
answer
110
views
NMinimize apparently enters an infinite loop
I've stumbled across what seems to be a weird interaction of the NMinimize function.
I'm minimising the function -Log[Sin[2x]] + a Cos[x]^2 for $0 < x < \pi/2$...
1
vote
0
answers
69
views
How to simply change filled-in marker with empty circles in the given code?
I use this code
p1 = Graphics[{PointSize[0.05], Red, Point[{{4, 0}, {7, 0}}]}];
p2 = Plot[Sin[x], {x, 0, 10}, PlotRange -> {-2, 2}];
Show[{p1, p2}]
which gives ...
2
votes
1
answer
215
views
Converting a list of a function in Mathematica [closed]
Assume that I define:
...
7
votes
1
answer
206
views
Feature Extractor for Molecules
Running FeatureSpacePlot[mols] gives me an interesting plot and I would like to understand the method.
Does anyone know or can point me to a reference page on how ...
3
votes
1
answer
152
views
Is RarerProbability useful with asymmetrical distributions?
The documentation clearly states that for the symmetrical normal distribution RarerProbability[distribution,x] gives the two-sided p-value for x.
Using direct ...
2
votes
1
answer
116
views
Integration of function involving ArcCsc with assumptions returns wrong answer
When I ask Mathematica (version 14.1) to do the following symbolic integration:
...
1
vote
1
answer
97
views
How to make a Framed PlotLabel span the exact width of the plot Frame?
I am trying to add a title with a background color to my plot. Currently, using Framed inside PlotLabel only creates a box around the text itself.
I want the background box of the title to:
Span the ...
1
vote
0
answers
58
views
ToRules that preserves conditions that cannot be written as Rules
I would love to have a ToRules that can act on say Reduce output that preserves conditions that cannot be written as rules. Something that creates something like
...
0
votes
0
answers
66
views
The heat conduction equation of solar cells can't be solved [duplicate]
The heat conduction equation of solar cells can't be solved. NDSolveValue::ndnum: Encountered non-numerical value for a derivative at x == 0. ...
3
votes
1
answer
103
views
How to preserve tooltips for SVG Maps created by Mathematica?
I want to produce an SVG map by Mathematica that preserves tooltips that are in Mathematica so that they are also in the SVG. The problem is that the tooltips do not export.
Here is an example:
That ...
3
votes
2
answers
130
views
Define meaning for symbol such as ⇓ despite 'Incomplete expression; more input is needed'
Example
The notation $a\Downarrow_bc$ can mean something like "the program $a$ results in $c$ when executed according to the semantics of $b$".
In Mathematica, I input this as ...
8
votes
0
answers
167
views
CollinearPoints returning True for noncollinear points
I think there might be an issue with CollinearPoints at least in the 14.2 Windows version I'm using. The issue arises where there are duplicate points and mixed ...
4
votes
2
answers
139
views
Matching an expression in Hold
Trying to replace some of the expressions wrapped by Hold as below to get $\frac{k d\theta }{dt}$, ReplaceAll does not replacing ...
4
votes
2
answers
294
views
Mathematica does not give me any contour here
I would like to have an idea what kind of curbe is being formed from the intersection of the plane $x+y+z=9$ with the surface
$\sqrt{16-x^2}+\sqrt{25-y^2}+\sqrt{36-z^2}=12$ under the restriction $x,y,...