# All Questions

77,841 questions
Filter by
Sorted by
Tagged with
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 ...
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}] ...
55 views

### Overflow in NDSolve

The code is like this ...
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 ...
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 ...
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 ...
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,...
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}}}; ...
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 ...
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: ...
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 ...
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 ...
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 ...
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. ...
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$ ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
4k views

### Numerical differentiation methods

Is it possible to write code in Mathematica that implements various differentiation methods (like forward, central, extrapolated, etc.)?
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 ...
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....
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 ...
94 views

105 views

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 ...
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 ...
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 ...