# All Questions

219 views

### Orderless pattern matching of rule lists

I am looking for a compact way to specify a pattern to match a rule list with MatchQ that allows for enumerating the rules in the rule list in an arbitrary order. ...
437 views

### What exactly is “ParameterErrors” of NonlinearModelFit?

I am trying to get what I call a "$\chi^2$ fit". This means taking a function $f(x,p)$ of the variable $x$ with a parameter $p$ and finding the value of $p$ that minimizes the "distance" from a data ...
48 views

### Financial number format

How can I change this function: nFormat=NumberForm[#,{\[Infinity],2},NumberPoint->",",NumberSeparator->".",DigitBlock->3,ExponentStep->10]&; So ...
130 views

### How to make the GroupOpeners visible in the SlideShow regime?

I am preparing a presentation on Mathematica and realized that though I made the GroupOpeners visible in the working regime (through the OptionInspector), they are invisible in the regime of the ...
56 views

### Importing and running a notebook [duplicate]

I have a very long .nb file. I want to subdivide the different sections into separate notebooks, then call them in a common nb ...
202 views

### How to solve this FindFit::nrlnum:

the following code show error message FindFit::nrlnum: "The function value {6.71759 -9.36268*10^-8\ I,6.51797 -8.42641*10^-8\ I,6.31789 -7.49014*10^-8\ I,6.1179 -6.55387*10^-8\ I,5.91794 ...
232 views

### Reducing mesh details while exporting to vector format SVG

I am trying to export a simple cuboid into .SVG format. In the output file, the cuboid is finely meshed, which increases the file size. How to remove this detailed mesh? ...
157 views

### Finding Minimum of a list after interpolation

I have a set of lists called Er[l], where l is from 1 to 13. I want to find the minimum point in the plot in these lists after interpolation by spline method. I need the values and the points on the ...
565 views

### Can (compiled) matrix permanent evaluation be further sped-up?

Update II  Sample code for simulating boson-sampling experiments has been added (as an answer). This code exploits new Mathematica capabilities relating to both empirical and smooth ...
339 views

### How to change the color of a button while it is pressed

I want to change the color of a button while it is pressed, pause for a short time and then change the color back to the original color. I can't seem to figure out how to do this (tried various forms ...
84 views

### Using Product for different variables

when using product in mathematica the initial and maximum value of the product will be the variable itself that will be maupulated. what I need is to make these initial and maximum of the product as ...
235 views

### updating code from 5.0 to 9.0

I am updating a code from a 5.0 version to a 9.0 version. I am speaking about "Advanced visual quantum mechanics". There is a package with this code: ` ...
242 views

### Pulling constants out of integrations [duplicate]

The following is the code and output of a Mathematica command How do I get Mathematica to remove $g(y)$ outside the integral?
160 views

### RowReduce : Record of all the row operations for RREF

I read "for what right-hand sides $b=(a,b,c)$ does $Ax=b$ have a solution", but that question pertains to solving for the unknown vector. I'd like a record of all of the row operations required to put ...
73 views

### Hypergeom to Bessel

Is there any way to get Bessel function equivalent to a Hypergeom function. Would it be possible in general ? From maple integration (As discussed in Answer ID 37931), the result of a symbolic ...
80 views

### Having Trouble Solving this System of ODEs

I am having trouble finding any solution to this ODE: ...
341 views

### How to make a control array of buttons or togglers?

An array of buttons From time to time I wish I had a control array of the sort native to Visual Basic. A control array of buttons would be a table of buttons in which each button "knows" its ...
140 views

### Why does using ReplaceAll twice produce a different result?

Why does this: Solve[a x^4 + b x^3 + c x^2 + d x + e == 0, x] /. {2 c^3 - 9 b c d + 27 a d^2 + 27 b^2 e - 72 a c e -> F} produce a different result from ...
304 views

### Integrate message: can't prove Integration limits are real

I'm working on solving differential equations through Fourier series, I made a function to help me calculate the coefficients that looks like this: ...
349 views

### How do I evaluate Mathematica expressions and insert them in a LaTeX file?

I want to make use of Mathematica as the backend to solve some computations used in my LaTeX input file. As I have no knowledge to make it in Mathematica, I used Maxima as explained in the following ...
596 views

### How can I scale the y axis?

I have a file I import and read into a table of $2 \times n$. I can plot this data using the following code: ...
215 views

### Code hanging inside a For loop

I'm pretty new to Mathematica (and functional programming in general). I'm working on some code to find winners (maximal values) in a list. The code I have that is hanging is this line. ...
197 views

### How to improve the performance of this code

I have implemented a code in Mathematica 9 to simulate a scattering problem, and I got really disappointed about its performance when compared to Matlab. Since I am a newbie in Mathematica, would ...
79 views

356 views

### ContourPlot3D for a 3D vector contour plot

The procedure ContourPlot3D allows plotting the contour lines of the components of a 3D-vector. The problem is I don't know how to give the contour planes of each ...
215 views

### Cut out circle out of circle

In the documentation of FilledCurve, one can create a circle "cut-out" of a bigger circle using FilledCurve and ...
135 views

### Assign one button to two variables

I am trying to use the one button to assign to two variables. Here is an example of how I want it to work. expression: ...