0
votes
0answers
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: ...
2
votes
3answers
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 ...
3
votes
0answers
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 ...
6
votes
1answer
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. ...
0
votes
0answers
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 ...
1
vote
1answer
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: ...
3
votes
0answers
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 ...
6
votes
3answers
187 views

Merging lists of pairs

I want to add several fluorescence spectra. They are lists of the format ...
0
votes
0answers
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 ...
4
votes
3answers
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: ...
2
votes
0answers
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 ...
0
votes
0answers
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 ...
4
votes
2answers
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 ...
1
vote
2answers
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 ...
1
vote
2answers
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 ...
0
votes
0answers
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.
9
votes
2answers
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. ...
5
votes
0answers
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: ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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? ...
2
votes
3answers
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$, ...
0
votes
0answers
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 ...
2
votes
1answer
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 ...
3
votes
2answers
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 ...
1
vote
2answers
119 views

Query in Lists Mathematica - Pivot table

Recently, I finished a simulation, and I got the following data: ...
2
votes
4answers
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 ...
0
votes
0answers
34 views

Which one will gives best fitting result?

I want to find out the parameters A, B, and C of the ...
3
votes
5answers
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: ...
0
votes
0answers
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 ...
0
votes
0answers
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, ...
5
votes
1answer
57 views

Can Someone Please Explain Internal`$SameQTolerance?

If I input Internal`$SameQTolerance (* output = 0.30103 *) which is the approximation of Log[10,2], or ...
1
vote
1answer
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: ...
7
votes
3answers
171 views

How to solve for the intersection points of two ellipses?

I have a parametric equation of two ellipses as follow $\begin{cases} x=a_1 \text{sin$\theta $}+b_1 \text{cos$\theta $}+c_1 \\ y=d_1 \text{sin$\theta $}+e_1 \text{cos$\theta $}+f_1 \\ ...
0
votes
0answers
26 views

Consistency between Enter keys

The notebook tutorial notes that Shift+Enter needs to be pressed to evaluate input; however, for the number pad, only Enter is required. It appears as though the use of Shift is inverted for the ...
2
votes
3answers
85 views

ToExpression in Manipulate

lets take this small example code: Manipulate[Plot[Sin[x (1 + a* x)], {x, 0, 6}], {a, 0, 100}, Button["a=90", ToExpression["a=90"]]] By clicking the button I ...
6
votes
0answers
110 views

Which IDE do you use for Mathematica development?

After more than a year I revisited the IntelliJIDEA plugin but that still seems to be 'just' an editor, of course there is the Mathematica Workbench but why are there so few improvements? Version 10. ...
8
votes
0answers
83 views

Mathematica is getting slow when repeatedly calling an external program

I found a strange phenomenon that Mathematica is getting slow when I repeatedly called an external program by using ReadList. For example, the following code will display a significant increase of CPU ...
0
votes
0answers
40 views

L1-Norm Minimization

I need the function for the L1-Norm Minimization problem formulated here https://reference.wolfram.com/language/tutorial/ConstrainedOptimizationLinearProgramming.html#261990371 ...
0
votes
1answer
69 views

Pure Function that adds all arguments

the question asks to create a pure function that adds any number of arguments. Is the following acceptable? sum := Plus[##] & It does work, but can it be considered a pure function? I felt like ...
10
votes
1answer
124 views

Using Simplify on a consistent system returns False

Bug introduced in 8.0 and persisting through 10.1.0 or later It's late, but am I missing something here? Why should two independent equations, which together are consistent, ...
0
votes
0answers
25 views

Limit of form 1 raised to infinity [closed]

Right hand limit of any limit of the form 1 raised to infinity should always come out to be infinity and left hand limit of 1 raised to infinity should come to be 0 . why do we get other values as ...
1
vote
2answers
46 views

Formatting a table of values

How do I display a list of values $\{a_1,a_2,\ldots,a_n\}$ in a two column format? --------- 1 | a_1 2 | a_2 3 | a_3 ...... n | a_n I tried ...
7
votes
1answer
136 views

ContourPlot code that worked in 9 does not work in Mathematica 10

I updated to Mathematica 10 from Mathematica 9. I am trying to create contour plots. I have a saved file with some output that I made using Mathematica 9, with the following equation ...
10
votes
3answers
338 views

Modifying strings in a list efficiently

I have a list of strings $\{s_1,s_2,\ldots,s_n\}$. I would like to to produce the following list of strings: $$ \{s_1<>1,\ 1<>s_2<>1,\ldots,\ 1<>s_n\} $$ In other words, I want ...
2
votes
2answers
61 views

Disabling a Button

How can I disable a button after a user clicks it once ? The current input I have is ...
0
votes
0answers
37 views

Recurrence relation for multivariate polynomials

I am trying to define a function which recursively computes a polynomial associated to every binary string: ComputePoly[s_]:=(** Recurse on the string s**) For ...
0
votes
0answers
41 views

Multiple statements in If [closed]

Possible duplicate: I have If[i != L, Interp = (0.5 - datay[i - 1])/(datay[i] - datay[i - 1]), Ttrail = datax[i - 1] + Interp*[datax[i] - datax[i - 1]]] I ...
1
vote
1answer
118 views

Solve a system of non-linear equations

Is there any way to get an exact solution a system of non-linear equations? The system I would like to solve is: $\quad \quad \begin{eqnarray} h_{1}x_{1}=c_{1}\\ h_{2}x_{2}=c_{2}\\ ...
0
votes
1answer
32 views

Grid in manipulate [closed]

I am trying to plot two functions using Manipulate which use the same sliders. When I use Grid to to this the text, "Grid[]" also appears in my output. Using List also causes a similar problem Is ...

15 30 50 per page