# All Questions

24 views

### Undo (CTRL Z as well as under edit) bug after pressing contol shift

As some of you might know, if you press control + shift on windows, you change your keyboard layout. For example, : becomes ±. This happens sometimes in Mathematica, and it results in a weird bug: ...
100 views

### Efficient extraction of a subset

The context is molecular dynamics. The data is in the format (index_1, index_2, distance). The goal is to find all of the distances to the neighbors of point index_0 and to present a set listing the ...
49 views

### NMinimize with NIntegrate (crash in symbolic evaluation, memory leak)

This is a "common" problem from what I've seen, but with a different spin. I have a function I use often that finds a fit of an expression to another expression with some free parameters (e.g. for ...
82 views

### Manipulate code crashes V10.1

This code is working with Mathematica 9, but Mathematica 10.1 is becomes unresponsive when I try to evaluate it. ...
22 views

### Why does NSolve not solve this system of equations on a bounded domain?

I have three functions $E1,E2,E3$ of $t1$ and $t2$. The expressions are slightly complicated and involve trigonometric functions. For clarity purpose, they are given at the end of the question. I ...
53 views

### Quotes vs No Quotes for Association Keys

I've tended to not put quotes around the names of my Key when making Associations. For example: ...
31 views

### How to calculate residues using different branches of the logarithm.

My goal is to be able to compute the residues of something like $z^{\alpha} R(z)$ where $0 < \alpha < 1$, $R(z)$ is rational, and the exponential can be chosen with any branch. I found a way to ...
187 views

### Merging lists of pairs

I want to add several fluorescence spectra. They are lists of the format ...
42 views

### Why is Mathematica computing this residue incorrectly? [closed]

I am new to Mathematica. I wanted Mathematica to calculate the residue of $\frac{z^2}{z^2 +1}$ at $z = i$. It gives the value $0$. The value should be $i/2$. My input is ...
142 views

### How to produce a matrix plot from 3 matrices a, b and c following RGBColor[a[[i,j]],b[[i,j]],c[[i,j]]]?

I am trying to produce a single-plot from 3 matrices, let's say: ...
42 views

### ParametricNDSolveValue has a problem with complex numbers

Edited: I have simplified the example compared to before and narrowed the problem down a bit. I would like to use ParametricNDSolveValue as function for data ...
59 views

### How do I solve a system of PDE with a Dirichlet boundary condition and piecewise condition Initial?

How do I solve the system of PDE with boundary value like this and initial conditions piecewise Please help me to find a solution in a Wolfram Mathematica program. I have several times ...
79 views

### Evaluating a Series expansion of PolyLog function

I am trying to evaluate an expansion of the following integral $$\int_0^\infty \frac{p^4}{1+\exp\left({\frac{p^2}{2mT} - \frac{\mu}{T}}\right)}\, dp = A_0(m,\mu) + A_2(m,\mu)T^2 + \ldots$$ in terms ...
74 views

### Find all roots of a function with parabolic cylinder functions in a range of the variable

I want to find all roots of a function involving Parabolic Cylinder Functions. In what follows, I define 2 variables $\xi1$ and $\xi2$, which in turn depend on $\omega$. My function is then defined as ...
59 views

### What is the role of the pattern object in this implementation?

In the documentation I found a nice idiom which allows me to do model fitting with interpolating functions. I think this kind of thing is amazing and a credit to the utility of an environment like ...
38 views

### How to launch the browser with a given url programatically? [duplicate]

The front-end can do this already for hyperlinks... I was wonder how to do this in general.
82 views

### Finding self-intersections of a closed curve represented by an interpolation function

I've been trying to find particular simple closed curves on a plane. ...
71 views

### Reference to multiple stylesheets

I need to set StyleDefinitions for a notebook in such manner so I can provide references to multiple stylesheets: ...
34 views

### Calculations using imported .csv files

How do I co calculations after I have imported two files (in my case .csv files). I want to take the average of the columns/ rows and then display them to the user in a new chart. Example A1 of one ...
42 views

### Bounds of a closed curve

how to find the rectangular bounds of a curve which is of the form f(x,y) and forms a closed loop. The sides of the rectangle are parallel to the axes and are tangents to the curve. The time taken for ...
36 views

### Crop specific range of pixels on both sides of an Image [closed]

How can I crop 182 pixels on both sides(left and right) of an Image? ...
131 views

### Trouble with differential equation

I tried to solve this differential equation: $$\epsilon y''(x)+xy'(x)=-\epsilon \pi^2 \cos(\pi x)-\pi x\sin(\pi x)$$ with boundary conditions: $y(-1)=-2, \space y(1)=0$. If we take $\epsilon=0.1$, ...
24 views

### Fitting problem: InterpolatingFunction can not be localised

I got simple data looking as follows {{541.447, 311752.}, {540.359, 311723.},.. I tried to fit it in mathematica for the first time with a function that usually ...
49 views

### Turning powers into an explicit product

I have the following nested list {{yy[1, 4] yy[2, 7]}, {yy[2, 5]^2}, {1}, {yy[1, 5]^3 yy[2, 3]^2}} with objects yy[#1,#2] and I wish to get rid of the powers ...
54 views

### Can I disable specific items in a PopuMenu control?

I have a PopupMenu in a Manipulate with items in it that are inapplicable in some cases, and rather than removing them, I would ...
119 views

### Query in Lists Mathematica - Pivot table

Recently, I finished a simulation, and I got the following data: ...
135 views

### Symbolic cut-off of high-order terms

I know that I can cut-off high-order terms of a $1$-variable polynomial P = a0 + a1*x + a2*x^2 + a3*x^3 + a4*x^4 + a5*x^5; simply by doing for example ...
34 views

### Which one will gives best fitting result?

I want to find out the parameters A, B, and C of the ...
119 views

### How to filter list of list of rules on certain condition?

For example, Solve[] returns all solutions as a list of list of rules. And mine looks something like this: ...
25 views

### Taking limit of a singular function does not answer

I'm trying to take limit of a function like this that is singular in d=3 ("Infinite expression 1/0. encountered"). Do you know how it is possible take this limit? Plotting the function is ...
9 views

### Using InverseSeries on series with non symbol series parameter

I am attempting to use InverseSeries in the following way: InverseSeries[A[y]+A[y]^2+O[A[y]]^3, A[x]] However, upon execution it does not perform the operation, ...
57 views

41 views

### Sum of Integers with a Pure Function

How would I find the sum of an argument, with the constraint that they are all integers (so if the argument contains a non-integer value, the function will not evaluate). I came up with these two: ...