# All Questions

2 views

### generating integer partitions

Mathematica in combinatorica package can generate integer partitions of an integer $N$. For example, IntegerPartitions[4] quickly gives {{4}, {3, 1}, {2, 2}, {2, 1, 1}, {1, 1, 1, 1}} This is nice, ...
31 views

### solving a non trivial equation system

I try to solve a 4 equations, 4 unknowns system. Here is my code ...
59 views

### Keep leading/trailing zeroes (like Defer except with numbers) in a given number

I'm trying to write a function that counts the number of significant figures a given number has so I can ensure my calculations are rounded correctly; however, I am having a lot of trouble preventing ...
110 views

### Splitting a list into increasing sublists

I have a list of numbers (say, for example, {1,2,3,4,3,2,1,2,3,4,3,2}), and I want to split it into sublists so that each sublist is the (smallest) sublist whose ...
66 views

### How to Plot the PDF of Product of two Normals

I've been looking to plot the distribution of the product of two normally distributed variables, x and y, that are uncorrelated. I've tried symbolically calculating the PDF using the ...
40 views

### Plotting 3D data as a surface

I am having a problem plotting some data in a 3dimensional surface. These data are distributed like a surface. And I would like to plot them joining them all as a surface. The data are in the form ...
126 views

Observe: ...
29 views

### part of piecewise plot now showing

I solve two system of differential equations and plot the solutions separately just fine. Then i want to join the two graphs into one by using a piecewise function. The issue i'm having is only one of ...
1k views

### Scraping High-Res images from the MoMA and the Van Gogh Museum websites

Many art websites allow the user to zoom into an image to see it at high resolution by using image tiles. It is great on the website, but presents problems if one wishes to compile a complete high ...
16 views

### How to programatically remove an option for all cells?

I'm trying to remove the CellGroupingRules options in every cell in a notebook. Eventually I opened the Notebook in a text editor and did a find replace, but there has to be a better solution. And ...
82 views
+50

### How to group cell type A under cell type B?

My notebook's groupings for "Subsection" and "SubitemNumbered" are broken: And by broken, I mean I wanted it to automatically group like this which I did manually (with lots of control+shift+g) ...
40 views

### Sensitivity of NonlinearModelFit to model

I have come across a circumstance where NonlinearModelFit is very sensitive to the model used. I am aware that NonlinearModelFit ...
46 views

### What Method values are available for Plot?

The Documentation Center article on Plot notes under Details and Options that Method is one of the options for ...
102 views

### How to solve this equation with NDSolve?

Here is the code: ...
20 views

### Manipulating form of output

To clarify the question that I posted here, I have the following question: I am generating a very large term by the following: ...
21 views

### How to make a cell header highlight on mouse down?

When a cell has WholeCellGroupOpener set to True, it becomes a clickable button that toggles its cell group open and closed. How can I make the cell change color ...
104 views

### Can I code a conditional jump between cells in a notebook?

How can I code the Mathematica equivalent of the following pseudocode: if[condition] ... goto[label_1] ... else goto[label_2] where ...
47 views

### Manipulating output of polynomial expansion

I have the following short code which generates a polynomial: ...
142 views

### Configuring remote access when using a VPN

To address some of the responsiveness issues, I use the Mathematica front end (v9 or v10) to access a remote kernel on a Raspberry Pi. The (advanced) kernel configuration used is this: Arguments to ...
2k views

### Determining the week of a year from a given date

Consider the following: AbsoluteTime["17/04/2012",{"Day","/","Month","Year"}]; From my calendar in my office, I know that April 17th is in the 16th week of the ...
84 views

### Finding quasi-cliques

What is the best way to identify quasi-cliques in a graph in Mathematica? I don't think it has been implemented, so are there any solutions to do this? Or do I have to export the graph data somehow ...
238 views

### Creating “detached” plots

Is it possible to create detached interactive plots in Mathematica like those in Matlab, Jupyter, rather than inline ones? This is interactive GIF from Rodeo IDE as an example, click on it if it is ...
102 views

### Make NonlinearModelFit return continuous function

Suppose I want to fit the dataset ...
737 views

### Kernel crash after idle in version 10.0

Bug introduced in 10.0.0 and fixed in 10.0.2 In version 10.0, when I leave the Mathematica section idle for some time (of order an hour), the kernel quit automatically. The syntax highlighting is ...
99 views

### FindMaximum failing on a trivial problem

I am trying to solve a trivial optimization problem with FindMaximum but for some reason it is not going. I reduced the problem down to the following non-working ...
76 views

### FullSimplify on TransformedDistribution

Bug introduced in 8.0.0 Could someone check that I haven't gone mad? I would like to take the maximum of two $[0, 2 \pi]$ independent uniform random variables. ...
21 views

### Access interactive web forms

I would like to communicate with interactive web forms, e.g., get the same HTML response as if I had clicked a "select" button and then clicked a "submit" button on a web page. This is for automated ...
39 views

### Display coordinates of pointing device in VectorPlot

I want to show the coordinates of the (mouse) pointing device as I move the pointing device over the VectorPlot without a (right or left) click. I have tried ToolTip and MousePosition but I cannot get ...
64 views

### Call library function in compile

On the Wolfram official website, there is an example of calling library function in a compiled function: ...
116 views

### Are variables always assumed to be real in Jordan Decomposition?

If you give the following input in Mathematica 9.0 (Student Edition): JordanDecomposition /@ ({{1, #}, {#, -1}} & /@ {i, I}) Mathematica gives you two ...
87 views

### Mathematica script file in Linux - how to export PDF file and close kernel?

tmp.m file: tmp = Table[RandomReal[], {3}, {4}] Export["test.xlsx", tmp] Quit[] Then ...
141 views

### How to determine if a function is continuous?

I wish to write code for Riemann Stieltjes integrals in Mathematica. A necessary condition for the theorem to hold is that the function must be continuous. The domain of the function is a closed ...
86 views

Observe that ...
608 views

50 views

### Reduction of an Inequality in $\mathbb{C}$

Reduce[ Abs[-((4 p)/(-1 + Sqrt[1 + 4 p + 4 q])^2)] + Abs[-((4 q)/(-1 + Sqrt[1 + 4 p + 4 q])^2)] < 1 , Abs[p]] It is taking lot of time. It is running. Can ...
571 views

### Verify Cayley-Hamilton Theorem

Consider the matrix: A = {{-1, -4, -2}, {0, 1, 1}, {-6, -12, 2}} Now, the characteristic polynomial is found: ...
323 views

### What's the best way to generate all the upper triangular matrix whose singular values are given?

For example, given $\lambda_1 = 1, \lambda_2 = 2, \lambda_3 = 3$, what's the best way to generate all the upper triangular matrix ($3\times 3$) whose singular values are $\lambda_i$? Note:Given a ...
281 views

### Polar Decomposition

I'm new to Mathematica 10 (half-a-month user). I'm looking for a function of polar decomposition but for now I cannot find it. Can anyone tell me about related functions. Thanks in advance.
70 views

### Mathematica program for PLUR decomposition of a symbolic matrix using full pivoting

I wanted to ask if there is a Mathematica program for PLUR decomposition of a symbolic matrix M, such that M = P*L*U*R, using FULL (row and column) pivoting, and where R = reduced row echelon form of ...
90 views

### Mathematica Lattice Reduce Command

I'm going through a very old copy of "Mathematica: A System for Doing Mathematics by Computer" for self practice. I'm on chapter 3, and ran into the LatticeReduce ...
170 views

### $\mathbf L\mathbf D\mathbf L^\top$ Cholesky decomposition

Mathematica can do a Cholesky decomposition $\mathbf A = \mathbf L\mathbf L^\top$, but how do I do a LDL decomposition $\mathbf A = \mathbf L\mathbf D\mathbf L^\top$, with $\mathbf L$ being a unit ...