# All Questions

378 views

### Recognizing integers in an image

This is the picture I want Mathematica to read I want Mathematica to recognize these numbers and put them in a list. I know that there is a function TextRecognize, ...
73 views

### FindPeaks “expecting an image” [closed]

I am trying to use FindPeaks for a list of data, but when I have tried to use it it returns an error. I went to the help menu for the function to check that everything is in the correct format, and ...
198 views

### Strange WhenEvent Behavior

Bug introduced in 10.3 or earlier and persisting through 10.3.1 or later Given: ...
45 views

### Why isn't Options[] finding all options? [closed]

I've created a plot with 3 non default options. See below. I would like to list these options using the Option[] function. When calling Options on the the plot, ...
73 views

### how to test if a string containing boxes is syntactically correct?

This is a string that displays as formatted x^2: "\!$$x \^2$$" If I left off the closing parenthesis for example: ...
30 views

### No of integral solutions with restrictions [closed]

x+y+z+w=n,where x<=w,y<=w. total number of non negative integral solutions of this equation?is there any closed form formula. what is the generalized formula across any number of variables?
62 views

### Finding the expansion of $\sin(a_{1}+a_{2}+a_{3})$ on Mathematica [closed]

How to find the expansion of $\sin(a_{1}+a_{2}+a_{3})$ on Mathematica, using $$\sin(a+b) = \sin a \cos b + \sin b \cos a$$ to the end? I tried FunctionExpand ...
104 views

### How to recover “pretty” format after split?

I'm doing this: And get this: But what I wanted is: How can I get the desired output? Is there a way to recover the format from the cryptic output? Note: my "real" list is way longer than ...
100 views

### Solving a system of non-linear equations?

I want to solve the following system of equations: ...
82 views

### How can I define geographic regions and new entities?

There are three functions (GeoListPlot, GeoGraphics and Entity) related to working with geographic regions but it is not clear from the documentation how to create new Entities or custom geographic ...
77 views

220 views

### An expression for the “perimeter elements” of a matrix

For example (5x5): m = Array[x[##] &, 5 {1, 1}]; MatrixForm@m I want to get a clockwise ordered list with the "perimeter" elements (they could be any kind ...
204 views

### How to see a code preview (in ExperimentalExplore[] or related GUI)

I have been messing around with built in ExperimentalExplore[] function. You can call the function in Mathematica yourself to see what it looks like. It is a GUI ...
84 views

### Rasterize alters the quality of the figure

A quick 3D plot ...
94 views

### How to organize expression by symbols (like Collect), but apply different functions to each coefficient

I want to mimic the functionality of Collect[expr, {vars}, func], but with the following modification: The function f that is ...
86 views

### Parameter of “CopySpecial” can't be “MathML” or “CopyAsTeX”?

Consider the following sample: ...
88 views

### Reduce an expression with Sqrt [closed]

r Cos[γ[t]] + 1/2 l Sqrt[1 - (r^2 Sin[γ[t]]^2)/l^2] How can I ask Mathematica to write my expression without l^2 in the ...
163 views

### Symbolic integration of SphericalBesselJ

Backslide introduced in v10 and persisting through v10.3.1. Consider the following integral ...
34 views

### TensorContract with KroneckerProduct instead of ordinary Times

Is it possible somehow to contract two tensors, say A={{a1,a2,a3},{a4,a5,a6}} and B={b1,b2,b3}, where the elements ...
45 views

### Inverted empirical CDF with averaging including BoxWhiskerChart

I'm new to Mathematica and started using it because of interest in statistics. So I've started reading books about statistics and found the problem, that the inverted empirical CDF with averaging ...
45 views

### How to restructure a list of {x,y,f[x,y]}-triples for use with Interpolation? [duplicate]

I have lists of triples {{x1, y1, f[x1,y1]},{x2, y2, f[x2,y2]},... }, which I would like to interpolate. In order to use Interpolation[], I seem to need a list ...
149 views

### Get association element that has a parameter

Say I have an Association of the form: assoc = <|first->"abc", second[param]->"xyz"|> Now to access ...
140 views

### Grouping by total length of elements grouped

How might one split a list of irregularly-long sublists into groups, each of which is shorter than a specified length? For example, given the following input: ...
366 views

### Panning with Mouse

This is related to the question i just asked here but not the same. How could i create a manipulate that lets me move the graph to any position i want by clicking and dragging anywhere. Here is an ...
58 views

### Multi-case function: many single-case delayed assignments; or one Which[]?

A function needs to cope with many different forms of input, such as different heads (Plus, Times, ...
69 views

### How do I keep Speak[] from spelling out words?

When I input Speak["aeiou"] it spells out a-e-i-o-u, but I want it to be pronounced as one word. How do I do this? Is it even possible?
226 views

### Solve motion from Hamilton's equations

I have a system of four coordinates and four momenta (conjugates of coordinates). I have a metric tensor $g_{ik}$ and I know the Hamiltonian: $H(p,q,t)=\frac{1}{2}g^{ik}(q)p_ip_k$ For my current ...
154 views

### Write Sum of Matrices Explicitly

I have sum of lots of matrices A+B+C+D+E+... and I want that Mathematica shows me this as explicit matrix sum, i.e. Explicit Matrix A + Explicit Matrix B + Explicit Matrix C + .... and not just ...
133 views

### How can I get a list of the exponents of a polynomial? [closed]

I have a polynomial 1 + x^2 + x^4 + x^8 + x^9. I want a list of the exponents. {0,2,4,8,9}.
89 views

### Venn diagram of all possibles combinations of 5 number

I’m trying to take 5 random integers between 1 and 100, obtain with them all the possibles operations using only each number one time for every operation. ...
109 views

### Plotting a DateListPlot and a CandleStickChart together

I'm trying to plot a DateListPlot and a CandleStickChart together. Initially I was trying to add a FinancialIndicator by spelunking TradingChart, but it's quite complex, I think I could manage to do ...
104 views

### Epilog doesn't work with ListLogPlot

We have data series: ...
172 views

### What kind of patterns in a list of rules would benefit from being Dispatched?

I have a long list of rules for manipulating expressions. They are of the form: ...
87 views

### Solving an equation and ODE simultaneously [closed]

I have a differential equation like $y'+a*y+b=0$. I have to find the value of $u=c*y+d$. These are the simplified form of the ODE and equation. Also, I have to plot $y$ and $u$ together.
56 views

### Simplify an expression with ArcCos [closed]

How can simplify this expression with Mathematica ? Sin[1/2*ArcCos[x]]^2 Thank you for your help
194 views

### Problem with a plot for 1D wave equation solution using NDSolve [closed]

I can't properly use Manipulate for my solution of a wave equation. Can anyone help me? I have the wave equation in the form: ...
236 views

### Dynamic plot with synchronization of real time

I want to do a dynamic plot with synchronization of real time, that is, I have a function, f[t], that is a function of time (seconds), so I want to see the curve changing not so fast or not so slow, ...
238 views

### Panning by moving Origin (0,0) with Mouse

Given a 10 by 10 grid like the one below and the axis origin somewhere on the grid, I would like to be able to place the mouse pointer at the axes origin (0,0), then press and hold the mouse button ...
115 views

### Explicit Contraction of Tensor Indices [duplicate]

Is there any easy way to explicitly contract indices of several given tensors. For example, ...
437 views

### How do I insert a calculated value into a text cell?

Suppose in a notebook I've calculated the value of some expression and assigned it to a variable. How do I insert the value of that variable in a text cell without just typing in the value? That is, I ...
181 views

### How to continuously run a Python script

I am running this script: script = Import["!python C:\\...python script", "String"]; but I need to run it a few times as it outputs data I need. I run it every ...
60 views

### How to export a list of numerical data to a file in the terminal?

I have a very simple program that export a list to a data file in table form. ...
57 views

### Export data with the number form but is not same as shown in notebook

I want to export data nicely with NumberForm, However it displays Ok in the note book, but not the exported file. Here is the code: ...
69 views

### Search/query the documentation programmatically

I wonder if it is feasible to query the documentation center for e.g build-in functions that contain a "Neat Examples"-section in their respective documentation page. Another functionality that ...
151 views

### Phase in discrete Fourier transformation [duplicate]

I asked a question some days ago and it was very well answer. However, I have a new one. I don't understand why the phase of the discrete fourier transformation is not correct. It has the correct ...
103 views

### How does InternalPolynomialFunctionQ work?

I found that InternalPolynomialFunctionQ performs much better than PolynomialQ. Here is a huge random polynomial in 12 ...
56 views

### How to reference a numbered cell

I want to have a numbered celltype, say '1.7.2 exercise' which counts up, when I put in a new cell of this type ('exercise'). Later in the notebook (or even in a different notebook in the same folder),...
I am currently using Mathematica to solve $\frac{\mathrm{d}x(t) }{\mathrm{d} t} = cv_{H} (1-x) + \beta x(1-x) - (\gamma_{min} - v_{D}(\gamma_{max} - \gamma_{min}))x$ with $x(0) = 0$. In the ...