All Questions
Tagged with mathematica or wolfram-mathematica
4,479 questions
0 votes
0 answers
50 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. ...
1 vote
1 answer
92 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-...
0 votes
0 answers
69 views
Evaluation of a function within a function in Mathematica
I apologise if the answer to my question is facile, but I'm new to Mathematica and normally use Matlab. I have two variables that I define as follows: delta = Sqrt[u^2 - 4DC(theta - lambda)]; xi = ...
0 votes
0 answers
42 views
Customized Chart Element Function for Box Plots in Mathematica
I am trying to make a box chart for four data sets with the data points shown on each box. This can be done using the Chart Element Function (CEF). I need a custom pointstyling detailed below. ...
0 votes
1 answer
89 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 ...
1 vote
1 answer
55 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 ...
0 votes
0 answers
99 views
How to solve this complex equation in MATHEMATICA?
I am trying to solve a complex integral equation including an infinite continued fraction. Continued fraction to order n=50 $Version (*14.2.0 for Microsoft Windows (64-bit) (December 26, 2024)*) ...
1 vote
0 answers
148 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 ...
0 votes
1 answer
59 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}];...
2 votes
1 answer
507 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-...
1 vote
0 answers
65 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}, {...
0 votes
0 answers
55 views
What should be the data format for a neural network with 2 inputs and a scalar output
I have a very simple network model: two named input ports, one summing layer, one linear layer and a scalar output. Despite many attempts, I cannot select a suitable data format that would be accepted ...
1 vote
0 answers
142 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 ...
-1 votes
1 answer
117 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 ...
0 votes
0 answers
59 views
Cannot Clear K[r] with Clear["Global`*"]
Why doesn't the following simple code reset K[r]? In[1]:=$Context K[r]=4r; Clear["Global`*"]; K[r] Out[1]=Global` Out[4]=4r If I use, say, A[r] or B[r] instead of K[r], they get cleared. ...