8
votes
2answers
208 views

Position and string patterns

I am trying to get Position work with patterns. I have the following code: ...
1
vote
0answers
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. ...
0
votes
0answers
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 ...
0
votes
1answer
58 views

Adjusting VoronoiMesh size

How it is possible to extend VoronoiMesh to the whole ListPlot in the following example? ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
5
votes
3answers
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). ...
1
vote
1answer
67 views

How to import multiple .m files at once?

For example, I import several files with the following lines: ...
1
vote
2answers
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? ...
0
votes
0answers
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: ...
0
votes
0answers
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 ...
2
votes
1answer
63 views

Working with StarData Versus AstronomicalData

Using AstronomicalData I could easily do something like: ...
7
votes
2answers
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 ...
0
votes
0answers
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 ...
22
votes
1answer
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 ...
1
vote
1answer
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: ...
1
vote
1answer
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: ...
3
votes
1answer
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 ...
2
votes
0answers
40 views

Parallelize Dateset query

I would like to evaluate a Dataset query in parallel, my latest approach being: ...
1
vote
1answer
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 ...
3
votes
1answer
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 ...
3
votes
1answer
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 ...
6
votes
1answer
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 ...
0
votes
1answer
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 ...
1
vote
2answers
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... <...
2
votes
3answers
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 (<...
0
votes
2answers
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. ...
3
votes
2answers
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 ...
-2
votes
0answers
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?
3
votes
1answer
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: ...
0
votes
1answer
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.
6
votes
4answers
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 ...
3
votes
3answers
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, ...
3
votes
1answer
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)}{\...
2
votes
1answer
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, ...
0
votes
0answers
17 views

Lines tangent to two circles [migrated]

I'm trying to find the lines tangent to two circles. I've seen several examples but with poorlyy explained methods. Given the circle $(x-x_{0})^2+(y-y_{0})^2=r_{1}^2$ and the the line equation $y=...
1
vote
0answers
43 views

Paralell computing - divisors of large numbers [closed]

Program should return a list of all the divisors of n!-1 for n=50,51,...,59 using parallel computing. Here is my current ...
3
votes
0answers
69 views

SendMail sends text as gifs

I have the following mathematica code to send me an email once a calculation is done. The code to calculate is saved in the 'code' variable. ...
1
vote
1answer
75 views

How to make this model in wolfram mathematica?

A model production possibility curve (nonlinear case). I used 1/4 of a circle in the code. ...
2
votes
1answer
65 views

Linear regression

I have a sequence of data: data = {0.647888, 0.522495, 0.454224, 0.417054, 0.396816, 0.385798, 0.379799, 0.376532, 0.374754, 0.373786, 0.373259, 0.372972} How ...
2
votes
1answer
145 views

How to sort eigenvalues?

I am trying to find Eigenvalues to a 12x12 Matrix ($H$) dependent on two variables $x$ and $y$. Later I want to do a 3D plot of one eigenvalue ($E$) over $x$ and $y$. An analytical solution is not ...
2
votes
1answer
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 ...
3
votes
4answers
155 views

Filling between two listplots

I have two lists which are plotted by below simple command ...
4
votes
2answers
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 ...
3
votes
1answer
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 ...
4
votes
1answer
192 views

Mathematica's morphological thinning algorithm

Could anyone cite some papers that describe Mathematica's morphological thinning algorithm?
1
vote
1answer
59 views

Matrix equations solving

can you explain me the easiest way for solving this matrix equation? I have this matrix: a={{-4,1,3,0},{-2,7,1,-1},{1,-1,9,-3},{-1,0,5,-10} and the Equation is: ...

15 30 50 per page