# All Questions

34 views

### An issue evaluating RegionInteresect

Description: I am trying to find a RegionIntersect between a Disk and a Polygon. I have ...
44 views

### How to apply a function to a list, being able to use a list index inside of the function? [on hold]

In the documentaion I find things like: M = {a, b, c}; kappa[x_, y_, z_] := x PauliMatrix[1] + y PauliMatrix[2] + z PauliMatrix[3] kappa @@ M // MatrixForm But ...
360 views

### Animated point following a sinusoidal path on sphere

Could someone help me with animating a point following a $\sin$-like path on the sphere? It should be something like this: This green point should walking on a sine (this red line) around sphere.
126 views

### How can one match a function in a replacement rule

I'm trying to write a delayed replacement rule that is capable of matching both the functions and their parameters, like ...
46 views

### ColorFunction causing division by zero error (going outside domain?)

On the following plot example, I get a division by zero error (10.4.1): ...
44 views

### Can parallelization speed up FindClusters?

I have a clustering task that would take FindClusters 2-3 months1 to complete. Can this calculation be sped up with parallelization? (FWIW, the data to be ...
3 views

### Double Integral Range [migrated]

we want the Surface between the two equation: $r= 1 + cos\theta$ $r = 1$ (circle) we can use a duble integral to solve this: $$S = \int_{-\pi/2}^{\pi/2} \int_1^{1+cos\theta} r \,dr\,d\theta$$ ...
54 views

### How to label individual points in data set with use of SciDraw?

I'm trying to lable each point in data set and adjust corresponding TickLabels. Here is my code: ...
48 views

### Code conforming to math in Java/Sage code

I've already posted a question here asking for help writing code. Here's the key points: I'm looking for a way to use calculate OEIS A144311 efficiently in Mathematica. This series considers ...
54 views

### Equation cannot be solved with the methods available to Solve [duplicate]

I am a beginner to Mathematica. I am trying to get the solution of such equation as: Solve[-b*M + L*R - a*M*Log10[L*c + (L*d*(1 - M)*S)/R] == 0, R] Constants are ...
37 views

### finding list by expresion

Well Im new to mathematica. I have list of x which contain {1,23,45,6,43}. And I get expression from g = Fit[t, {1, v, v^2}, v] how can apply list x to g to ...
118 views

### How to correctly implement in a new function the scoping behavior of Table, Sum and other commands that use Block to localize iterators?

It is documented that "Block is automatically used to localize values of iterators in iteration constructs such as Do, Sum, and Table." Therefore the dummy index (iterator) in a Sum is shielded ...
42 views

### zooming out and adding text to revolutionplot3D

I am trying to work some details for to the following animation: ...
50 views

### Definite and indefinite integral give different results

I'm trying to find an expression that, given $x$, $y$, and $R$, gives the indefinite 2D integral of a function at the circle centered on $(x_0, y_0)$ with radius $R$. With $g$ as defined below, I'd ...
57 views

### Permutations on graph vertex labels

I want to generate all the possible adjacency matrices of equivalent unlabeled graphs. For example, consider the simple path graph of three vertices. There are three possible adjacency matrices: ...
114 views

### What is wrong with my code so it neither produces a correct plot nor an error message?

I am trying to define some initial functions and then using them to define my secondary functions and then plot the secondary functions. I am supposed to get two curves with a finite width ...
34 views

### Customize FillingStyle in LIstPlot3D

I'm trying to plot inundation at different elevations on a 3D ground surface elevation plot. The closest I have got so far has been to use FillingStyle as the ...
58 views

### How to solve and draw the phase portrait of a linear system [on hold]

How to solve and draw the phase portrait of this linear system $\frac{dx}{dt}=Ax$ where $A=\begin{bmatrix}{0}&{2}&{0}\\{-2}&{0}&{0}\\{2}&{0}&{0}\end{bmatrix}$
45 views

### Why is NDSolveValue giving these problems in 3D that it didn't have in 2D?

I'm trying to do the same thing I did in this thread (ignore the actual question I was asking about, I just linked it to show the geometry and equation solving I'm doing), but this time for 3D instead ...
1k views

### Why does N[1.000 01, 10] return 1.00001, but N[1.000 001, 10] returns only 1.?

Why is it so? When I ask for N[1.00001, 10] I get quite reasonably 1.00001 But when I ask for ...
130 views

### Table and IF statement

I want to make a table to get a nbyn matrix. However, the diagonal are divided by zero. For example: n = 5; Table[1/(Sin[i] - Sin[j]), {i, 1., n}, {j, 1, n}] I ...
116 views

### Plot two curves and confidence bands representing the uncertainties in their parameters

Here is the plot I want to make using Mathematica 8.0 : ...
36 views

### Best way to use interactive locators [on hold]

I am trying to use the Manipulate Locators option to move some points around. Ideally, I'd also like to have a button to save the points to a variable. Is there a good way to do this? Additionally, is ...
31 views

### Problem exporting equations from MathType into Mathematica [on hold]

I'm using MathType to write equations and sometimes I have to compute large expressions. I have tried to use Mathematica by copying equations to there and it works fine but only if there are no ...
23 views

### How to get a script to print MaxMemoryUsed[] upon getting a system signal?

I want to instrument a Mathematica script so that, upon receiving any system signal (e.g. SIGINT, aka Ctrl-C) it will print1 the ...
44 views

### Efficiently create a list of factors of consecutive integers

I'm interested in a scalable (read: sublinear) algorithm for producing the list of integer factors of each integer from 1 to n. ...
44 views

### Finding parameters with NMinimize doesn't do any steps

To find the best fit for an SVM, I have to constantly re-train my classifier with different parameters based on the result of the test set. I created a helper function which trains the SVM with the ...
52 views

### Can I use StringExpression or RegularExpression to manipulate Symbolic XML?

Please, consider an XML document containing these fields: ...
41 views

### How can I recover from front end crash after debug session?

On Mathematica 10.3 running on Raspberry Pi 3, the debug session on the Front End hung and I had to kill the Front End. ( I now know better: better 'kill -9' the Kernel process and not the Front ...
118 views

### Expand power of a polynomial

I'm very new to Mathematica, so excuse my innocence. I have the following expression: $$\left( \sum_{n=0}^r \frac{(-1)^n}{n!} y^n \right)^f$$ I would like Mathematica to expand out the expression ...
573 views

### Pulsed NMR animation

I'm new here and have never interacted with the community so excuse me if this has been asked before or if I format incorrectly or anything like that. Anyway, I'm trying to make an animation for a ...
103 views

### Filters on image vs data

I was using GaussianFilter and realized that applying it to an array yields a different result from applying it to an image. For instance: ...
35 views

### Create a loop for assignment of Solve output [duplicate]

Is there a way to automatically assign the output of solve to a number of symbols? For example, assume that I have the solve statement as follows: ...
64 views

### Why does NDSolve and NIntegrate not give the same result?

I have plotted solution of two equivalent equations one in Integral form (right chart) the other in Differential form (left chart) using NDSolve and NIntegrate but they give me completely different ...
31 views

### Scaling HSB colors for export

In Mathematica, Hue[h,s,b] uses HSB colors. However, unlike anything I've ever seen, the h, ...
39 views

### Testing if a character is a whitespace [on hold]

Is it possible to define a function which returns true if its only argument is a whitespace character (space, tab, newline, ecc...), false otherwise? I tried with various testing functions on the ...
30 views

### Insert several sequential alphanumeric characters pdf [on hold]

As I can make it through "this" directory 1 to "this" in the directory 2 and so on for 50 pdf, Deputy sample directory Example
89 views

### Tree graph showing all simple paths with dead ends between two vertices in undirected graph

I have undirected weighted labeled graph. How i can generate and visualize tree graph, showing me all simple paths (and dead ends) from vertice A to vertice B? For example, for this graph to show ...
69 views

### Are the triangles in DelaunayMesh oriented ccw?

MeshCells[R, 2] returns the triangles from R=DelaunayMesh[pts], where pts is a list of 2D ...
34 views

### Quits Kernel during evaluation of CreateTopologies

I am using Feynarts 3.9 and FeynCalc 9.0.1 with Mathematica 10. Every time I load FeynArts with FeynCalc and execute t = CreateTopologies[1, 1 -> 2]; ...
46 views

### Minimize variable domain neither real nor integer [on hold]

In Mathematica, can I have a variable domain something like x ∈ {1, 1/k}, where k is a constant? In my problem formulation ...
52 views

### The  in Solve results [duplicate]

I assign the result of a Solve to the variable eq8. Then I attempt to use this result in the definition of a function as follows: ...
3 views

### Query about hyperplane in SVM [migrated]

I am a beginner in Machine Learning. I was reading through basics of SVM and read this definition: The goal of a support vector machine is to find the optimal separating hyperplane which ...
117 views

### Plotting a table with many y values

I'm trying to plot a bifurcation map for a Lorenz System. I have a function (called estables in the code that follows) which, for a certain value r, returns the ...
135 views

### Transcritical Bifurcation phase portraits

An example equation for a Transcritical Bifurcations is given by: $$\dfrac{dx}{dt} = f(x, r) = r x - x^2$$ In Mathematica, we can define the function as: ...
48 views

### Prevent autocompletion for symbols in contexts other than “Private`”

I've been working on a Mathematica package (call it QuantumDot) that has become huge. Right now, all the back-end helper functions are in context ...
249 views

### Calculating overlapped area between random circles

Suppose I am plotting random circles like in the following example: m=125; ...
32 views

### FindSpanningTree command doesn't work

I want to solve a network analysis problem by FindSpanningTree command. But it yields nothing: FindSpanningTree[G1] ...