All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

Common boundary/axes in animation of multiple plots [closed]

r=1; Animate[ParametricPlot[(r/p) {Sin[s/r], 1 - Cos[s/r]}, {s, 0, p*2 Pi r}, GridLines -> Automatic, PlotStyle -> {Blue, Thick}], {p, 1/10, 1, 1/7}] How ...
3
votes
0answers
70 views

How to correctly DSolve it?

Solving a PDE with Mathematica, I obtain sol = DSolve[Sqrt[D[u[x, y], x]] + Sqrt[D[u[x, y], y]] == x, u, {x, y}] ...
0
votes
0answers
55 views

Overflow in NDSolve

The code is like this ...
4
votes
1answer
62 views

Is it possible to specify a node in ToElementMesh?

I want to make the mesh created by ToElementMesh has a node at my specified position. For example, in the following code, I discretize a disk to element meshes with ...
0
votes
1answer
46 views

How to obtain a normalized fourier transform?

In my code I solved a differential equation system, then I made a fourier transform of the solution in differents times, this is my code ...
0
votes
1answer
40 views

Particle moving in a 2D box [closed]

does anyone know, how classical mechanics (likes forces, velocities or boundary conditions) could be integrated in a code? do you maybe have some ideas how i can write a code for my particle in a 2D ...
0
votes
0answers
21 views

How do I find the slope or cone in Fourier Domain for moving images [closed]

I am translating this shown image by 10 pixels horizontally and 10 pixels vertically and linearly increasing the amount of pixels I am translating for four images (Eg.: [10,10], [20,20], [30,30], [40,...
5
votes
2answers
82 views

Sort list by a condition on parameters

Consider the following list list={{{0,0,0},0},{{0,0,1},a},{{0,0,-1},-a},{{1,0,1},b},{{1,0,0},-b},{{1,1,1},a+b},{{1,1,1},a-b},{{-1,0,-1},{-a-b}},{{-1,0,-1},{-a+b}}}; ...
2
votes
1answer
49 views

How to mark nodes and insert weights in an adjacency graph?

I have a graph with 12 nodes. The x and y coordinates are give as ...
1
vote
1answer
44 views

How to generate assumptions automatically for definite integrals?

In Mathematica, a trick to speed up the process of definite integrals is by adding assumptions. For example, the following codes run faster if we add such assumptions: ...
0
votes
0answers
33 views

Plot trajectories of 1D coalescing particles: Reshape irregular size array

My question boils down to: How can I reshape a list composed of sublists of different sizes? I am trying to plot the trajectories of 5 particles (1D), and if they collide, they merge into one same ...
4
votes
1answer
50 views

ColorFunctionScaling and OpacityFunctionScaling with values other than 0 and 1

I have a 3D density plot that I was able to get to look okay with setting ColorFunctionScaling and OpacityFunctionScaling to ...
0
votes
2answers
55 views

Framed legend for a combined ErrorListPlot and ListLinePlot

I am struggling to add legends to a combined plot of ErrorListPlot and ListLinePlot. Here is the code. When I tried to add ...
0
votes
0answers
152 views

Why Mathmatica wont solve my equation

I am try to find the relationship between $a,h,V$. I am trying to find what $a$ equal to in terms of $h,V$. My final objective is to plot a few curve of $a$ $vs.$ $V$ with different $h$ value. ...
2
votes
1answer
85 views

Getting plots form differential equation with two discrete parameters

I am solving the following differential equation for different values of a and n: $\qquad y'=- \lambda (y^2-Y_{eq}^2)$ where $\qquad Y_{eq}(x)=1/\pi^2 \int_0^\infty y^2/[\exp(\sqrt{x^2+y^2})+1]dy$ ...
1
vote
1answer
80 views

Mathematica 12.2 on Windows 7 [closed]

The Mathematica 12.3 setup.exe installer will not run on Windows 7, due to the operating system not being supported by that Mathematica version. Although Mathematica 12.2 also does not support ...
0
votes
0answers
33 views

How to select all real numbers from a list? [closed]

I want to select all of the real numbers from a list, e.g. {10,I,7}. I thought this could be done with Select[{10,I,7},Reals] as one would for another criteria like "Positive", but as is ...
16
votes
4answers
423 views

Pathfinding on 2D regions

How can I find a shortest or near optimal route between two points where the route is constrained within a 2D region? First, consider the following bundle of lines: ...
2
votes
1answer
154 views

How to calculate the complexity of summation

I am trying to calculate the computation complexity of an algorithm and I have reached the following summation (that shows the number of operations) and I don't know how to find the Big O. (H is a ...
0
votes
1answer
38 views

Recognizing the type of hypergeometric series based on the dominant terms

I am solving a (infinitely long) differential equation which has the solution $$ y(r)=-\frac{c}{5}+\frac{l^4c^3}{20r^5}+\frac{l^{6}c^5}{16r^9}+\mathcal{O}(l^8), $$ where I am not sure about the sign ...
1
vote
2answers
54 views

Efficiently saving a vector graphic with RegionPlot and labels

I would like to save an image as a vector graphic (.pdf), so that when I zoom in, the lines and labels remain crisp. However, the image I am saving also contains components that are generated by ...
6
votes
6answers
4k views

Numerical differentiation methods

Is it possible to write code in Mathematica that implements various differentiation methods (like forward, central, extrapolated, etc.)?
0
votes
1answer
107 views

Feynrules + FeynArts - Calculating amplitudes

I am working on a model which is an extended model of the standard model (SM + Complex Scalar Field). I am using FeynCalc (9.0.3) patched with FeynArts (3.11). I run ...
0
votes
0answers
56 views

How to partition a graph optimally [closed]

I have a graph with $N$ nodes. Some node may not have any edge between them. every edge has a weight. How to find the optimal partitioning of the graph so that total weight in the system is maximised....
1
vote
1answer
55 views

Evaluating list inside list in a table [closed]

I'm stuck with a List and Table command. I want to evaluate $F[x,y]$ and get all the possible configurations, knowing that x and y are lists. How I should evaluate this correctly in Mathematica? and ...
1
vote
1answer
94 views

How to write this tensor?

How can I write this tensor in Mathematica? $$\mathcal{P}_{ijkl}(N) = \Big( \delta_{ik} - N_iN_k \Big) \Big( \delta_{jl} - N_jN_l \Big) - \dfrac{1}{2} \Big( \delta_{ij} - N_iN_j \Big)\Big( \delta_{kl} ...
0
votes
1answer
30 views

Rescale color function of multiple plots

I have 5 ListDensityPlots that are using the same color function but the color bar runs over a different range in every plot. For example here are two of the 5 plots that I have I want these plots to ...
3
votes
1answer
257 views

Import all data from a HTML table, including empty cells

I wanted to create a dataset of all UFO sightings in April of 2018. The AssociationThread doesn't want to work, because some of the entries are missing value, what ...
0
votes
0answers
58 views

Help needed for Separate graph for Influence of Micropolar parameter(k) in velocity and micro rotation profile [closed]

Help needed for Separate (=separation?) graph for Influence of Micropolar parameter(k) in velocity and micro rotation profile, influence of Prandtl number in temp profile, and influence of Brownian ...
0
votes
1answer
47 views

listing according to constrain

Given a 3x3 matrix, check each of the columns starting from the first one, and if a column contains 1 or -1 the output is x, otherwise the output is y. Then list the sequence of these x,y as a vector. ...
2
votes
0answers
54 views

How to increase the font size of automatic created window

I am using MMA 12.1.1.0 on Ubuntu 18.04. I changed a new screen and the font of the toolbar became very small compared to other applications and managed to solve that. But, the font in the automatic ...
1
vote
0answers
42 views

Plot a sample trajectory in StreamPlot [closed]

I am stuck in what it should be a very simple task, and I wonder if you could give me some light on this: I have the following two differential equations: ...
2
votes
2answers
104 views

Mathematica can't seem to handle Truncated BinormalDistribution when there is non-zero correlation coefficient

I would like to use Mathematica to analyze (e.g., compute moments, plot, etc) a truncated bivariate normal distribution. For example: ...
0
votes
1answer
60 views

Join two Datasets that share a particular column [closed]

I have two datasets dataset1 and dataset2: They both share column a. How can I ...
13
votes
3answers
1k views

Finding and visualization of branch cuts and branch points

Is it possible to determine branch cuts and branch points for complicated functions using mathematica Iam trying to determine the brnach cuts and branch points of this complicated function We have ...
1
vote
1answer
53 views

LinearOptimization duality

I'm solving a linear program using LinearOptimization. I'm curious why "DualityGap" does not return zero (as described in the docs). Here's the code: ...
2
votes
0answers
79 views

Solving a System of Equations Closed Forms

I am relatively new to mathematica and I do not know how to get the closed form from the system of equations. I have 7 equations with 7 unknowns: $c_{*},\omega_{*},h_{*}, P_{*}, g_{*}, Q_*, L_{Y_{*}}$ ...
3
votes
2answers
129 views

Find intersection points between ParametricRegion and other curves

How do you instruct Mathematica to return intersection points between curves as numerical values, when using ParametricRegion to represent at least one of the ...
4
votes
2answers
105 views

Problems with OpenSQLConnection on Mathematica 12.2 (Linux)

I used Mathematica to access the data of a MariaDB MySQL database. Within the version 12.0 it worked well on linux using the following code: ...
2
votes
1answer
48 views

Output vertex pair(s) whose distance is the graph's diameter

Assuming you have a connected graph (in my case also undirected and equal/no edge weights), how could you see all the vertex pairs whose shortest length path is equal to the graph's diameter? An ...
1
vote
1answer
45 views

Change of Variables in vector Calculus

I have and expression involving gradients (or directional derivatives) $$ \mathbf v (\mathbf x) \cdot \mathbb{\nabla} \mathbf v ( \mathbf x) - \mathbf v(\mathbf x') \cdot \mathbb{\nabla'} \mathbf v ( ...
1
vote
1answer
105 views

Tuning the optimal control synthesized according to the Pontryagin maximum/minimum principle and choosing the cost function

I continue to study the topic I started here: Problem with optimal control and Pontryagin's maximum principle A simple ODE system $(1)$ is given: $F=\begin{cases} \dot{x}=g \\ \dot{g}=-g+\frac{df}{...
0
votes
1answer
54 views

ParametricPlot3D with variable plot limits

I would like to use ParametricPlot3D in the following general way: ParametricPlot3D[\[Sigma][u,v],{u,0,2Pi},{v,-f[u],f[u]}]. ...
3
votes
1answer
130 views

JavaGraphics` and CreateDialog don't work with ListPlot in Mathematica 11.3/12

Bug introduced in 11.2 and persists through 12.2, case 4331202 I'm trying to see some plots based on data from a remote cluster as it runs various Mathematica 11.3/12 scripts, so I want to use the ...
2
votes
1answer
90 views

<<JavaGraphics` for ListPlot still not working in 12.2 [duplicate]

Bug introduced in 11.2 and persists through 12.2. A previous answer by Lukas Lang gave some hope, where he outlined a method to change how the $DisplayFunction ...
2
votes
1answer
88 views

Neural network evaluate on multiple gpus simultaneously

For instance, I have 4 gpus, now I want to calculate neural network on each gpu simultaneously, or make use of all of my gpus to calculate the data. The code might like ...
0
votes
1answer
46 views

Why do the points in a curve are connected to those in another after FindClusters?

I have a few questions about the function FindClusters. There's two group points data, and the following figures are obtained from these data. Figure 1-1 is the the ...
5
votes
0answers
102 views

AceFEM: Divergence in iterative procedure (Newton-Raphson) for fine meshes

I am trying to model a problem of a nearly incompressible $10~\rm{m} \times 2~\rm{m}$ beam with a uniformly distributed end load. The beam has a Young's modulus of $200~\rm{Pa}$ and a Poisson's ratio ...
3
votes
2answers
162 views

Recursion in String Length of Roman Numeral

I am new to Wolfram language (Mathematica) programming, I have below problems. To summarise the problem : The input is a positive integer, and the output is a recursive list of the lengths of the ...
-2
votes
0answers
35 views

Binomial tree put option [closed]

Good evening. I would like to knowwhat is the best code to create a binominal tree of an American put paying dividend stock. Thank you

15 30 50 per page
1
3 4
5
6 7
1557