3
votes
2answers
67 views

Table of Buttons [duplicate]

What's the correct way to form a table of buttons in which each action depends on the index in the table? E.g., I want to get {Button[1,f[1]],Button[2,f[2]]} ...
1
vote
1answer
31 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
30 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
99 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 ...
0
votes
0answers
62 views

How to evaluate this integral with a bessel function

I have to evaluate this integral, Sin[θ] 2 π BesselJ[0, k Sin[θ] (μ[j] - μ[i])] Exp[2 k^2 σ^2 Cos[θ]^2], wrt $\theta$ between the interval [0, $\pi$]. The ...
-2
votes
1answer
72 views

monochromatic and mesh style of 3d plotting

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

Strange behaviour of NotElement in Reduce

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

How to make a contour shading like this

How can I adjust the contour shading to appear like below?
5
votes
4answers
444 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
128 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
59 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: ...
3
votes
1answer
32 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
133 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
59 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
70 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, ...
9
votes
4answers
174 views

Evaluation of Alternatives

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

Distance between a circle and a line [migrated]

Find the distance between the circle $(x-3)^2+(y+2)^2=4$ and the line $x + 2y = 9$.
-3
votes
0answers
34 views

Integration by using parameter k [duplicate]

I want to calculate the following code by using parameter k. But, the following code provide me no solution. ...
0
votes
1answer
44 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
118 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
93 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
49 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: ...
0
votes
1answer
56 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
144 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
64 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
36 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
140 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
97 views
3
votes
1answer
98 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 ...
-1
votes
0answers
22 views

How to find the real values of the parameter a, so that the inequation doesn't have positive solutions? [migrated]

The inequation is the following: (x^2 - 6ax + 2x - 5a - 1) / (x+a+1) < 0 If we write this inequation like a/b <0, I may say that for a=0, I found that X1=3a -1-sqrt(9a^2-a+2) X2=3a ...
4
votes
1answer
110 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
76 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
58 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
49 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
63 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
53 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 ...
3
votes
2answers
144 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
38 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
68 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 ...
0
votes
1answer
24 views

Deleting vertices from 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. So How can I delete vertices from a ...
1
vote
3answers
106 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 ...
1
vote
2answers
42 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
112 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
62 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
47 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
52 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 ...
0
votes
1answer
52 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
82 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
56 views

Problem with Combining plots

...

15 30 50 per page