Trending questions
97,743 questions
-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 ...
0
votes
1
answer
171
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 ...
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
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
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
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 ...
2
votes
3
answers
227
views
In a nested, ragged list, pairing each element of one sublist with each element of another
This may be a silly question, and if it is, I'm willing to withdraw it. I have a list of lists myInitialList. I wish to write a function to transform ...
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 ...
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 ...
4
votes
1
answer
185
views
Blurry AxisObject
I am trying to imitate default frame of ContourPlot with AxisObject. I used AbsoluteOptions ...
2
votes
1
answer
112
views
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 ...
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 ...
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$...
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 ...