4,475 questions
Score of 0
0 answers
52 views
Creating custom 3D plots with annotations confined to planes
I want to create a 3d plot that only shows data and annotations in the xy, xz, and yz planes. Especially, annotations should be fixed to these planes as well, and should not rotate out of them when ...
Score of 2
0 answers
93 views
How to deal with Mittag_Leffler function in Matlab or Mathematica?
I want to calculate a solution with Mittag_Leffler function in in Matlab or Mathematica.
$f(p) = \sum\limits_{k=0}^{\infty} (v/D)^k L^{(\alpha-1)k+\alpha-3} E^{k+1}{\alpha,(\alpha-1)k+\alpha-2}(-p/D L^...
Score of 0
0 answers
94 views
Issues reading long binary streams from serial port in Mathematica
I am experiencing reproducible problems when reading binary data from a serial port in Mathematica when the total length of the stream becomes large (several thousand bytes). The same hardware and ...
Score of 1
0 answers
54 views
MEvaluate in Mathematica not returning anything
After installing MATLink, I tried the running the following cells in Mathematica:
Needs["MATLink`"]
OpenMATLAB[]
and
MEvaluate["mat = magic(4)"]
But nothing showed up in the ...
Score of -1
1 answer
77 views
Mathematica looping lstol
My program loops through a large number of parameter combinations and performs FindRoot on functions of those parameters. The results of the FindRoot calls are used in additional computations. At ...
Score of 0
0 answers
72 views
Parallel Equations Expansion in TFORM
TFORM is considered a great tool for manipulating large and symbolic equations. In this thread, I’d like to share my optimization problem, which concerns a very simple operation — equations expansion.
...
Score of 1
1 answer
119 views
Trouble Plotting short term Solution on Maple
I’m trying to solve a problem from Modern Mathematical Methods for Scientists and Engineers using Maple, specifically applying the Fokas method (Unified Transform) to the heat equation on the half-...
Score of 0
1 answer
107 views
Legendre function comparison between mpmath and Mathematica
I am working on a project and I would like to make sure I use Legendre function correctly. I've made a simple comparison between mpmath and Mathematica and the results are different:
For mpmath in ...
Score of 1
1 answer
65 views
How to store the first parameter of Block in a variable?
Let's say I have a function
MyFunc[x_] := x + y
I can do this:
Block[{y = 1}, MyFunc[1]]
which gives the result 2 correctly.
Now, what to do if I want to save {y = 1} into a variable, something like
...
Score of 1
0 answers
201 views
How fix error in Mathematica "NDSolve::ndsz: At t == ... step size is effectively zero; singularity or stiff system suspected" when using Manipulate?
I am trying to solve a nonlinear system of differential equations in Wolfram Mathematica using NDSolve and visualize the solution with Manipulate. However, I encounter the following error when running ...
Score of 0
1 answer
73 views
Generation of particular combinations
In Mathematica I implemented this simple code:
n = 8;
a0 = Range[0, n - 1];
a1 = Subsets[a0, {2}];
a2 = Subsets[a1, {2}];
a3 = Select[a2, Length[Union[Flatten[#]]] == 4 &];
a4 = Subsets[a3, {n/4}];...
Score of 2
1 answer
854 views
Running Wolfram Engine in Visual Studio Code
I downloaded the Wolfram Engine and have verified that it works by running it in the terminal.
I also downloaded a VSC extension for the Wolfram Langauge: https://github.com/WolframResearch/vscode-...
Score of 1
0 answers
73 views
Reading and resaving in a file a matrix with the same name but with different dimensions with Mathematica
My main code runs a large program and saves the results in a text-like notebook (Put[...] & Save[...]) that contains result matrices, like e.g.,
tab1 = {{1, 2, 3, 4, 5, 6}, {2, 4, 6, 8, 10, 12}, {...
Score of 1
0 answers
165 views
Getting a Asymptote 3D graph look more like Mathematica's
I am trying to get Mathics3 to produce Asymptote output that more closely matches what Mathematica produces.
Here is an example of Mathematica output for Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}]:
and ...
Score of -1
1 answer
129 views
Solve complicated equation in Mathematica
I have a complicated equation and I wanna solve it with Mathematica. But, Because of the equation form I can't find analytical solution. So I try to solve it numerically. I try some method but can't ...