# All Questions

208 views

### Position and string patterns

I am trying to get Position work with patterns. I have the following code: ...
54 views

### Real, scaled sizes of bubbles in bubblechart [closed]

I'm trying to create a BubbleChart3D with sets of 4 numbers, to see which spheres overlap. ...
30 views

### ListPlot: zoom on scroll, pan on drag [duplicate]

How is it possible to create interactive ListPlot with the following behaviour: pan on drag, zoom in/out on mouse scroll, with the zooming centered at the cursor ...
58 views

How it is possible to extend VoronoiMesh to the whole ListPlot in the following example? ...
45 views

### NCAlgebra: define a scalar variable

I have a linear operator L and a scalar h, and would like to expand L[f + h phi] to ...
30 views

### Copy-pasting a floating point number [duplicate]

Here is a behavior of the Mathematica front end which confuses me. Type N[Sqrt[2]] The displayed output is 1.41421 ...
220 views

### How to (correctly) interpolate an array of points?

I'm trying to obtain an interpolation function for points of an x^(-5) function (which goes to infinity at x = 0). ...
67 views

### How to import multiple .m files at once?

For example, I import several files with the following lines: ...
72 views

### Using solve on conditional functions

I know that the code is pretty long, but most of it is just defintion. Do you see why the Solve gives me "his system cannot be solved with the methods available to Solve" back? ...
49 views

### Numerical integration of some oscillatory function [closed]

I solved numerically an equation in the complex plane. I have the numerical solution, and I want to take its integral on the real axis. For instance, the real part of the solution looks like this: ...
30 views

### Difference between using NIntegrate and Integrate inside NDSolve?

The differential equation I am considering depends on an integral, which I would like to solve with NIntegrate (since it will gets more complicated and thus I have to use NIntegrate later). My code ...
63 views

### Working with StarData Versus AstronomicalData

Using AstronomicalData I could easily do something like: ...
114 views

### Bug in NDSolve/WhenEvent?

Bug introduced in v10. I'm fairly sure the following is a bug, and I would normally just report it to WRI. However, this is related to my answer to When using NDsolve, how to determine the ...
10 views

### combinatorics questions [migrated]

How much words we can make from $0,1,2$ ? The restriction is we cant put the digit $2$ after the digit $2$. My solution: I tried to solve it with Inclusion-Exclusion Principle count the number of ...
365 views

### How to implement custom integration rules for use by NIntegrate?

How can NIntegrate be extended with custom implementation of integration rules? This answer of the question "Monte Carlo integration with random numbers generated ...
68 views

### Keeping determine digits in Append to process

The end of my code is written as below. Ignoring the inefficient role of Append, I want to have very simple set of values as for example: ...
45 views

### PodState for showing steps in WolframAlpha

I'm trying to use the 'Show Steps' feature of Wolfram Alpha within mathematica to solve equations. I have the following code: ...
76 views

### How to set width of exported pdf/eps

I want to export a cell's input (the text of the command) as pdf/eps. I have used Export["cell.pdf", cells[[1]]] It works fine, however, I would like to change ...
40 views

### Parallelize Dateset query

I would like to evaluate a Dataset query in parallel, my latest approach being: ...
44 views

### Using distribution of data instead of data in EstimatedDistribution

Because of huge amount of data, the data saved in their frequency. for example {1,1,1,1,1,1,2,2,1,2,2,1,1,2,1,2,1,3,24} saved as ...
89 views

### How to specify a mesh in plotting options [closed]

I have a very simple question: Imagine I have solved a PDE on a mesh and want to display the solution on the same element mesh that was passed to NDSolve. I have ...
99 views

### Understanding difference between NIntegrate result and home-cooked Simpson's rule

In this question I am asking about the different results I get between NIntegrate-ing a function of two variables vs. "doing it myself" with my own implementation ...
131 views

### Smoothing out data points in a ListDensityPlot

I stumbled upon this problem when I was trying to make some nice smooth ListDensityPlots of my numerical data. In short, my problem is that I let Mathematica plot two copies of basically the exact ...
57 views

### Finding the max points of a surface, maximize

So, this should not be hard at all, in fact no one seems so be having my issue so it should be me missing out on a point of information or just experience. So my mission is to with Mathematica find ...
224 views

### MatrixPower performs slower than Do loop

I have two almost identical pieces of code: one with MatrixPower responsible for matrix multiplication and another with Do loop. Why the latter performs much faster? It looks counterintuitive... <...
139 views

### Combine three functions in one graph using Plot3D and show

I have a function, f, which is divided in three functions depending on the ranges of some variables (a and r) and constants (<...
40 views

### DSolve non linear DE

probably my problem i´m gonna ask seems ridiculous and quite basic. I want to solve an equation with the following code, where a,b,c are parameters. But surprisingly they don´t appear in the solution. ...
90 views

### Insert new points at specific places in the Locator Pane?

I am trying to make some BSplineCurve examples for my students. For fun I created the following Manipulate that draw an elephant using ...
15 views

### Question regarding Majoring in Maths etc [migrated]

I was wondering. Is it possible for someone to major in Maths as in do their masters in Maths once they've earned their degree in Computer Science?
48 views

### is there a mode to use Select instead this while loop?

I've a list where a I want to pick up my first element which matches my criteria. This is my work around: ...
45 views

### system of differential equations 3 DSolve [closed]

dS/dt = a - dS - λ S I + β R dI/dt = λ S I - (d + m)I dR/dt = m I- (d + β)R Solve the above equation and plot the curve.
606 views

### Are there more readable and terse method can get this list

I have a list like following list = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}}; I want get this list by a more better method: I ...
158 views

### MatchQ[x y, (x | y) (x | y)] returns False

MatchQ[x y, (x | y) (x | y)] It returns false. Why? I want to eliminate terms like x^2, ...
157 views

### How can I combine NDSolve[] with NSolve[]

Consider the two below ODEs with following dependent B.C. In the boundary conditions $k$ is an unknown. $$y_1''(x)=x$$ $$y_2''(y)=0$$ $$y_1(1)=y_2(1)$$ $$y_1(-k)=y_2(-k)$$ \frac{\text{dy}_1(1)}{\...
195 views

### How to graph a 3D function of two variables? [closed]

How to graph this: \begin{alignat*}{3} x(s, t) &= a\cos(mt) \cos^{k}(ns) &&\cos(t) &&\cos(s), \\ y(s, t) &= a\cos(mt) \cos^{k}(ns) &&\sin(t) &&\cos(s), \\ z(s, ...
17 views

174 views

### Compiling in mathematica

I'm trying to compile what I think is a pretty simple function that does matrix multilplications in a loop (see below). But Mathematica issues the message: Could not complete external evaluation ...
155 views

### Filling between two listplots

I have two lists which are plotted by below simple command ...
141 views

### Adding labels to close points in a ListPlot [duplicate]

I need to add labels to points in a ListPlot. The only problem is that the points can be closely located so if I do it in my usual way it becomes messy. I would ...
99 views

### Can evaluation show what was evaluated along with results? [duplicate]

After I write and evauate the following lines in Mathematica: a = 1 b = 2 x = a + b It will show only the result : 3. I want mathematica to show the following ...