# All Questions

113 views

### Handling of non-file URI

According to the manual, Hyperlink “represents a hyperlink that jumps to the specified URI when clicked”. OneNote produces hyperlinks that begin with onenote://. In Mathematica, creating a hyperlink ...
130 views

### Creating a Dynamic MSSQL connection

Hello i am trying to create a notebook that automatically connects to a database on MSSQL server and would then query this to create a sort of personal report. I have connected to this database and ...
94 views

### Cell format for screen headers

If one picks the menu option Format->Edit Stylesheet and then one opens the "Default.nb" link, the newly opened notebook has a header that reads "Deafult.nb" style definitions. In one navigates down ...
219 views

### How do you put a plot inside a popupmenu that is inside another popupmenu?

I have the next code ...
479 views

### How to scale Histogram counts with the value of bin center?

I am analyzing some variates from a steeply falling power-law distribution (approximately with a power index -4) using Histogram[data, Automatic, "PDF"] While ...
425 views

### Image3D and Graphics3D

also I guess that the topic was tackled in Combining Image3D and Graphics3D. My question is quite similar: How do I match the coordinate Systems of Graphics3D and Image3D? Here some code: ...
261 views

### TrueQ - Test of inequality [duplicate]

I want to look if a term is <0,>0 or ==0. What is wrong when I write ...
77 views

### What is the syntax to combine conditions and options? [duplicate]

How can a condition and an option be written on the RHS of a function? I.e. ...
171 views

### Is there a way to simplify this replacement rule

I have a rather big expression which contains many sums of form q x + w y. I know that y is much smaller than ...
567 views

### How to solve system of integral equations

I have two integral equations ...
102 views

I have a multiple integral of the following form: $$\int_{-\infty}^\infty \cdots \int_{-\infty}^\infty \exp(-\sum_{i,j=0}^n x_i A_{ij} x_j) dx_1 \cdots dx_n$$ Here, $A$ is a square matrix and $x_1 ... 1answer 100 views ### Problem with List Dimension Outer Map [duplicate] I am currently handling a big list which has the following dimension: {6, 3, 4, 2, 2, 1, 8} where the last number 8 represent a ... 1answer 305 views ### How can I define a Listable function only apply to a vector? Consider the function f which should behave as f[{{1, 2}, {3, 4}, {5, 6, 7}}] ... 2answers 156 views ### Using mathematical notation Is it possible to write this function in mathematica exactly as shown, and then run the expression on a dataset? Please note I know that there are several other ways to do this. I am only ... 1answer 495 views ### Extract matrix from a system of linear equations [duplicate] I have a big system of linear equations$f_i(x_1,...x_n)$with$n$variables and$n$equations. I want to extract the matrix$M$where$\vec{f}(\vec{x})=M\vec{x}$. For example if I have$$f_1(x) = x ... 1answer 111 views ### Logic behind Flatten and Append to in Module I have a list(kicks), and a function(fix). I am aware of the problem using Loop and Append or AppendTo. My question is why does the Flatten produce the desired output. List: ... 2answers 298 views ### Force Mathematica not to reduce a fraction I am interested in a function which would stop Mathematica reducing fraction. If my input is 50/100, Mathematica outputs 1/2, I ... 2answers 425 views ### How to automatically get rid of trig functions in an expression? I have a large expression containing many terms like this: Sin[1/2 ArcTan[(2 Log[5])/(Log[5]^2 - 2)]] where a trig function is invoked on a rational multiple ... 2answers 320 views ### Pattern to match L, but not L[_] I have an expression where I want to replace L but not L[_] For example, the following doesn't work and ... 1answer 166 views ### TreeForm display with nested lists as nodes If i have a nested list representing nodes in a binary tree, {3, {2, {1, None, None}, None}, None}, what is the easiest way to show the hierarchy, without all the ... 0answers 107 views ### Nested NDSolves with functions I am trying to solve a system of nested differential equations, and have attached my code below. The first section is some variable declarations, then I solve my first diffeq and store the solution to ... 1answer 279 views ### How does FindInstance work? I was asked a question one day: find an integer n such that the first five digits of 5*7^n is 12345. It's very nice that I can quickly write code like this: ... 0answers 246 views ### How to compute the Lovász number for the given graph in Mathematica? Here is a graph whose adjacency matrix is ... 1answer 107 views ### obtaining real roots of negative numbers in a long expression [duplicate] I have a complicated symbolic expression which contains many terms like$(a/(a-2))^{1/m}$, where$a/(a-2)$could be positive or negative after replacement. I only need the real root after ... 2answers 269 views ### Approximate solution to system of polynomial equations I'd like to solve approximately the following system of equations for$a_1$,$a_2$,$\alpha_1$and$\alpha_2$all real and nonzero: ... 2answers 622 views ### How to position text labels automatically to not overlap other graphics elements? I was plotting reciprocal frame projection using Locators for a point to be expressed in terms of both the original basis (also specified with ... 3answers 199 views ### Variable partitioning of the data in the form of “list of lists” I am looking for a way for variable partitioning of the data in the form of a "list of lists" for interpolating the imported data from excel. The data looks like: ... 1answer 132 views ### How to use ChoiceDialog or PopupMenu with ClickPane What I am trying to do is modify the standard ClickPane example where a list of points (pts) is added to with each click, in the ... 2answers 915 views ### How could I generate words starting with P,h,D? A friend of mine is a PhD candidate and posted a picture on Facebook with funny words starting with 'p', 'h' and 'd' like "Please hire. Desperate" or "Permanent head Damage". I thought I could try and ... 0answers 81 views ### Group theory - symmetry inequivalent sqaure matrices with PBC I would like to obtain the symmetry inequivalent possible occupations of indistinguishable objects in a square lattice with periodic boundary conditions. Examples: 1 object in a 4 by 4 square ... 2answers 492 views ### Slice through Graphics3D is there any possibility to slice through a Graphics3D object? At the end I would like to have a stack of images slicing , e.g.$n$times in$z$-direction:$((x,y,z_{0}), (x,y,z_{1}),…,(x,y,z_{n}))$... 1answer 69 views ### LMS distance from a point to an InterpolatingFunction I have a short script to NDSolve a second-order nonlinear BVP, which as its output produces an InterpolatingFunction object. I ... 1answer 471 views ### Getting clearer StreamPlot output When I do a StreamPlotof a rather complicated pair of differential equations, it loses some details. For example: ... 1answer 183 views ### Levels and slots I am struggling with levels and #, if I understand this I think I will be able to grasp the entire concept. ... 1answer 658 views ### Direct sum of matrices [duplicate] Is there a simple way (perhaps even a built-in function) that allows one to compute the direct sum of two square matrices? 5answers 551 views ### Compiling ColorFunction for faster complex phase-amplitude plots I have gotten into the habit of plotting complex-valued functions on a plane using a color-function along the lines of ... 1answer 171 views ### Raise systemwide keypress event Is there a way to raise system-wide "keypress" events programmatically from within Mathematica? Say "Ctrl+C" or "Ctrl+V", which all other programs can recognize? This is an attempt to gain simple ... 1answer 188 views ### Why is$ProcessorCount different than the selected number of cores in PBS?

By using ParallelTable and submitting my Mathematica code to a cluster, I noticed that it was enhancing the speed even when I selected a single core in a single ...
156 views

### System of integral equations with integrals on both sides

I'd like to solve the following equation numerically for $a_1$, $a_2$, $\alpha_1$ and $\alpha_2$: $\displaystyle\int_0^{\infty}\Big[L_1\Big(\frac{k^2}{2}\Big)\Big]^2e^{-k^2}L_m(k^2)\ dk=$ ...
132 views

### How can I replace UndirectedEdges to pairs of bi-directional DirectedEdge in a Graph?

How can I have pair of edges between nodes in this kind of graphs? ...
390 views

### Cartesian product of sets

I have two types of sets, one of them is a list of points of the form $\{t_{k}\}$ and the other one is an interval of the form $[a,b]$. And my custom set consists of these type of sets and I need to ...
114 views

### Set the style of a cell

I know it's possible to programmatically change options on the selection in a notebook. I'd like to create a button that lets me change the style of a cell. It's a style that doesn't have a keyboard ...
266 views

### Simplifying with noncommutative multiplication

I am trying to do some quantum algebra computations in Mathematica. Up to now I was able to make the noncommutative multiplication linear and to factorize powers. However, I still have some issues ...
301 views

### Find asymptotics of Sum[2^i*Binomial[n-i-1,2*n/3-1],{i,0,n/3}]

I have an expression 2^n / Sum[ 2^i Binomial[ n - i - 1, 2n/3 - 1], { i, 0, n/3}] ...
148 views

### How to write equal subset

I have a unique set S={1,1,3,3,3} but from this unique set I can create many combinations like {1,3,3,3,1}, {3,3,1,3,1}, ... I ...
35 views

### Obtain the coordinates of a point by clicking on it [duplicate]

Is it possible to show the coordinates of a point in a plot by clicking on it ? For example you click on one point on the plot below and you get the point's coordinates.
178 views

### Namespaces in Mathematica

In many programming languages one can define a namespace with namespace abc How can the similar be done in Mathematica? The ...
600 views

### Using TetGen in Mathematica to get 3D Voronoi diagram

In this post, the use of TetGen for 3D Voronoi tesselation has been briefly discussed. However there is still no info about the use of TetGen to generate a 3D Voronoi diagram. The TetGen documentation ...