1
vote
1answer
48 views

How to create sublists of consecutive elements? [duplicate]

I have a list of elements, for example: myList={5, 12, 16, 18, 19, 24, 28, 29, 31, 32, 35, 42, 43, 47, 50, 53, 60, 61, 62, 64, 79, 82, 84, 92, 105, 128, 136, 153, 154, 155, 156, 158, 159, 160, 164} ...
3
votes
1answer
43 views

While loop repeats itself using initialization cell

I am running While loops in an initialization cell for the purpose of submitting the notebook to the online cluster. However it appears to me that the While loop in an initialization cell would run ...
0
votes
1answer
143 views

How can we draw a stencil for discretization of PDEs?

How can we draw some multi-node (e.g. 5-node, 9-node, etc.) stencils that occur in the process of discretization of PDEs, such as the following ones? or As a matter of fact, I would like to ...
-2
votes
1answer
93 views

monochromatic and mesh style of 3d plotting

how to adjust the mesh and monochromatic plot to be same as this
5
votes
0answers
213 views

Strange behaviour of NotElement in Reduce

Bug introduced in 8.0 or earlier and persisting through 10.4 or later Confirmed, as bug, by WRI: [CASE:3527549] I have observed curious behaviour on domains supplied to ...
1
vote
1answer
370 views

How to make a contour shading like this

How can I adjust the contour shading to appear like below?
6
votes
4answers
581 views

Entropy[…] doesn't calculate the entropy of a probability distribution? What does it do?

I know the definition of entropy of a probability distribution: $$H = - \sum_i p_i \log p_i $$ So for example, in a Bernoulli distribution with $p = 0.2$, $1-p=0.8$, the entropy is $0.5$. However, ...
9
votes
1answer
148 views

Maximizing a recursive functional equation

I would like to maximize a recursive functional equation but I am struggling with setting up the problem correctly. The equation I am interested in captures the nature of a decision process over time ...
2
votes
2answers
66 views

Multiple functions with shared arguments in Manipulate

I am trying to define multiple functions with the same set of parameters and then put them in a Manipulate to simulate their behavior. Ideally it should be something like that: ...
4
votes
1answer
50 views

keyboard shortcut to invoke Insert new matrix

I frequently need to type in some matrices, and the menu command Insert>Table/Matrix>New... ...
-1
votes
4answers
178 views

Import vs ReadList CSV file with Currency Values

A testing file with the specified format can be downloaded from here Let's read a few lines from this file ...
0
votes
1answer
129 views

ParametricPlot3D crashes Kernel when called repeatedly in loop

I have a parametric function surf[u,v]. It can be plotted successfully like this: ...
1
vote
1answer
91 views

Rasterize and Graphics, size difference

I am writing my own TreeForm function and for this I want to make sure that framed text boxes in Graphics do not overlap. First, ...
11
votes
4answers
199 views

Evaluation of Alternatives

I recently stumbled upon a few examples that suggest patterns containing Alternatives do not evaluate for individual alternatives. For example: ...
0
votes
1answer
50 views

How to apply a user-defined function to a list [closed]

I'm using Wolfram | Alpha Pro; I have a function f[n] = 351n^(-0.7); How do I apply it to each element of a list like {2, 9, 22}? f/@{2, 9, 22} just results in ...
6
votes
2answers
141 views

Getting an explicit representation of the function returned from Interpolation [duplicate]

I am using Interpolation to get an InterpolatingFunction that fits a set of points. For example, ...
2
votes
1answer
109 views

Issue with NSolve for solving six equation and six unkown [closed]

I am trying to solve the following six equations and six unknown but It takes me one hour then the program stops. Would you please give some help. I am a beginner. $eqe1=0.000466667 \left(A_2 \cosh (...
0
votes
1answer
52 views

Different Results from Simplify, dependent on explicit vs computed rules

Can anybody explain why these two pieces of code are giving me different results? Heres the inputs: ...
1
vote
1answer
77 views

How to calculate the derivative at a point of a non-integrable multivariable function?

I want to integrate this function with respect to θ1 and then take the derivative of that function with respect to n. Since the ...
5
votes
3answers
184 views

How to tell Mathematica to get the real-only inverse function?

The problem I have is that Mathematica seems to play better with complex numbers so that the result of N[InverseFunction[Function[x,x^3]][-1]] is ...
0
votes
1answer
119 views

Discrete Fourier Transform: help on how to convert x axis in to the frequency when I have a set of data samples [duplicate]

I have a huge data set (400000 sample) and when I plot them ListLinePlot[Au4, PlotRange -> {All, All}] I used the following code to Fourier transform it <...
1
vote
1answer
76 views

Uploading an image to a CloudDeploy Wolfram Language web app

I want to do image processing using the Wolfram Language on a web app hosted on the Wolfram Cloud. The user must be able to upload a PNG image to the Wolfram Cloud, how can I set this up? I've ...
5
votes
1answer
215 views

How does Mathematica detect the number of cores in a system?

I'm running Mathematica 10.3.1.0 on a machine with 16 cores, but Mathematica (in the Parallel settings) says "Number of processor cores is 8." It's a 16-core Opteron 6300 chip on an Ubuntu system. All ...
2
votes
1answer
109 views
3
votes
1answer
251 views

Solve a nonlinear PDE equation with a Neumann boundary condition

I am trying to use Mathematica 10 to solve a PDE $$u_t=u_{xx}+u_{yy}+u(1-u),$$ in the unit disk $(x,y) \in D=\{(x,y):x^2+y^2<1\}$, with the Neumann boundary condtion $$\frac{\partial u}{\partial n}...
4
votes
1answer
121 views

Error given by the Clear function

I'm trying to clear out some variables that I've previously used, so that I can use them again. I tried this in a different notebook and it worked, however, now, a command like : ...
3
votes
0answers
178 views

Is the free Mathematica Trial Version a full version? [closed]

There is a trial version of Mathematica in the Wolfram website, which can be downloaded for free with a license valid for 15 days. Is this version of Mathematica a "full version"? That is, during ...
2
votes
1answer
83 views

How to plot linear term of a function expanded by Taylor seires in Mathematica?

I am quite new in Mathematica and I am trying to plot a linear term of a particular function in Mathematica. I have tried something like this: ...
0
votes
1answer
148 views

Trouble solving a system of 2 ODE's with NDSolve

I'm trying to solve a system of two coupled second-order ordinary differential equations using Mathematica's NDSolve. The functions of r that appear in the equations are ...
1
vote
3answers
78 views

replacing complex numbers

I know: I'm going to make a poor showing, but really I can't understand this: a is an expressione whose FullForm is ...
1
vote
1answer
67 views

Conditional probability syntax [closed]

What syntax do I use to compute this in Mathematica? Game of Yahtzee: 1. Suppose you get three 5’s on the first roll. What is the probability of rolling the other two dice and completing the Yahtzee ...
4
votes
2answers
184 views

How to get the frequency information of an mp3 audio?

I have: music = Import["http://www.qlcoder.com/uploads/145425353234642.mp3", "mp3"] Then I get: But what I want to get is ...
2
votes
1answer
49 views

Arrowheads cover the end of the ticks

When arrowheads are added to the axes, the ends of the ticks are covered by the arrowheads, e.g., ticks for $1$ disappear in the plot below, ...
2
votes
2answers
83 views

Label multiple Data in Set of plots

in this simplified example I defined several data and plotted them at once to reduce typing work. Unfortunately I cannot find the syntax or option to label/ name each data array, which all belong to ...
3
votes
2answers
147 views

Deleting vertices from a Graph and preserving structure

My goal is to remove vertices from graphs (and the edges from them) and then take GraphComplement to find out cut sets in graphs with sink and source such as here. ...
1
vote
3answers
139 views

Plot multiple functions with different but overlapping intervals

Suppose I numerically solve a differential equation by using sol = ParametricNDSolve[{y'[x] == b y[x], y[0] == 1}, y, {x, 0, 0.3}, {b}] And then I want to plot $...
3
votes
3answers
110 views

Random bipartite graphs?

RandomGraph[{n,m}] generates a random graph with $n$ vertices and $m$ edges. I want to generate a random bipartite graph, like ...
-1
votes
2answers
127 views

Solving a quasi- or nonlinear PDE

Is the following PDE solvable in mathematica 9? When i solve it, the DSolve command does not do anything. ...
-2
votes
1answer
66 views

Manipulate aborts the computation of NDSolve with the Piecewise function after curtain time [closed]

I'm facing the problem with performance: Manipulate is working fine till end time =60 sec, after that it aborts. There is NDSolve inside Manipulate with Piecewise function, and the plot of the ...
0
votes
1answer
99 views

Interpolate the discrete list into continuous function

I have a data whose list plot shows up following graph I would like to interpolate the missing data and make the function continuous but for particular x-coordinate there is multiple values of $y$ ...
3
votes
0answers
69 views

NelderMeadMinimize for 2D Gaussian fitting

I would like to fit a large number (10^5-10^6) of small images to 2D gaussians by taking advantage of the NelderMeadMinimize package from Oleksandr: Shaving the last 50 ms off NMinimize. The ...
2
votes
1answer
81 views

extract data from a graph image

How do I convert the following image graph into data (if possible into function)? I checked this answer and found that my problem is grid and plot have same color.
1
vote
1answer
112 views

Visualize how a function varies as its parameters vary [closed]

I'm quite new to Mathematica, so maybe i havent figured out the right help file to look or the right function. I apologize if thats the case, but I would like to be pointed in the right direction if ...
1
vote
1answer
66 views

Problem with Combining plots

...
7
votes
3answers
114 views

Prevent Dynamic from behaving dynamically until notebook evaluated

If a notebook containing a = {1, 2}; Dynamic[a[[2]]] (* 2 *) is executed, closed, and then opened in a new session, it yields along with the expected error ...
0
votes
0answers
40 views

Integration by using NDSolve [duplicate]

I have no idea how to calculate the problems. For example consider following differential equation (DE): ...
0
votes
1answer
36 views
8
votes
0answers
121 views

What are the time and space complexities of Classify/Predict?

Does anyone have knowledge of the O(n) time & space complexities for various model types supported by Classify[] and ...
1
vote
2answers
117 views

How can I add a checkbox to a Manipulate expression?

I'm looking for a simple example about how to add a simple On-Off switch in a manipulate function. More specifically, I defined a curve with two parameters. One is a continuous parameter that is ...

15 30 50 per page