Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [discrete]

The tag has no usage guidance.

1
vote
2answers
25 views

How to use a given list of values for a parameter in FindInstance?

How should I specify a discrete range for a parameter as one of the conditions in FindInstance? MemberQ/Element functions don't seem to work. For example, ...
0
votes
0answers
32 views

Harmonic amplitude spectrum

I have simulated an electrical machine in mathematica in discrete calculus. One of the results is three phase currents. My plotted answer is like below: Now I'm looking for harmonic amplitude ...
1
vote
0answers
18 views

Discrete variables in ParametricNDSolve [closed]

I'm trying to write a stochastic differential equation, using ParametricNDSolve and WhenEvents : ...
2
votes
0answers
29 views

BinarySearch Built-in and BinarySearch1 Self defined help [closed]

I am trying to create my own binary search to compare with the built-in function. I have referenced the docs, but the output is not correct and implies an issue. Please help with my function syntax ...
0
votes
1answer
59 views

Create Poisson distribution

I would like to make a phone call at the average arrival rate of λ = 300 [call / minute] per minute in the Poisson distribution of the telephone exchange and save it on the list. I don't know even if ...
3
votes
1answer
56 views

FindGeneratingFunction gives up too easily [closed]

I am trying to automatically find a generating function from the coefficients of a simple rational function using Mathematica's FindGeneratingFunction: ...
1
vote
1answer
131 views

How to define a function only for integers

I want to create a function which only accepts integers. if a value other than integers are given it should output zero. This is what I've tried so far. I'm trying to do some discrete time signal ...
5
votes
2answers
259 views

Record Statistics for Discrete Random Walks

I code a random walk of length 100 drawn from a LaplaceDistribution: Accumulate[RandomVariate[LaplaceDistribution[0, 1], 10000]] I am having trouble counting the ...
5
votes
1answer
63 views

Filling and transferring water between containers to obtain a desired volume

A classic class of math puzzles involves two irregular containers, $A$ and $B$, having known volumes $V_A$ and $V_B$ and an infinite source of water (from a spigot, say). You can fill either ...
5
votes
4answers
85 views

Plotting displacement values over defined region

I have a deformed 2D region of triangular Elements specified by their Nodes in $x$ and $y$ coordinate system. In addition, I ...
1
vote
1answer
59 views

Assignment to slots with inequality constraints

Suppose that I have a table A with each of its n columns corresponding to an "individual" and each of its m rows corresponding to a "task". The element of the jth ...
2
votes
1answer
166 views

Convert DiscretePlot3D to 2D plot with a Color Function

Observe the following wolfram Mathematica code: ...
7
votes
0answers
173 views

How to locate a stream line starting from a saddle point?

I read in a table of gradient vectors and plot using the ListStreamPlot. I want to locate and color the line that represents the "boundary" of the flux. A flux line that 1)starts from a saddle point 2)...
1
vote
1answer
197 views

Flat line in Plot PDF of empirical data

I am currently trying to plot the probability density function PDF of an empirical data set. However, unfortunately, I always receive just a flat line in the ...
0
votes
1answer
72 views

Plot on a range by using restricted number of points [closed]

Suppose some function. I need to plot it on the given range, but using the finite number of points. After that I need to approximate obtained discrete plot by the curve. Is it possible to do this?
0
votes
0answers
112 views

How to fit one discrete data set to another with shifting and tilting?

I have two sets of discrete experimental data, each data set consists of many {x,y,z} positions. Both data sets have overlap region; you can merge both data sets together with shifting and tilting one ...
0
votes
1answer
137 views

Solving a system of differential equations including a discrete time function

Given a graph of $N$ nodes, I would like to solve the following set of differential equations: where $G_i'(r,s)\triangleq \frac{d G_i(r,s)}{ds} = \Big(1-L_i(t) - I_i(t)-B_i(t) - C_i(t)\Big)\sum_{j=1}^...
2
votes
2answers
84 views

Producing a particular sequence of integers recursively [closed]

I am supposed to write a function which computes the next integer in a sequence from the given one. For example: nextval[57] should give mm ...
1
vote
0answers
139 views

Find wavelet transform coefficients in L1 norm [closed]

For my masters task I have to perform a Haar wavelet transform using an L1 norm. But Mathematica's built-in wavelet library can work only with L2 norm space. I tried to do this: ...
1
vote
1answer
160 views

ListConvolve returns only one value

Generating my first function ...
2
votes
1answer
129 views

Multiple discrete RV convolutions performance

I have a discrete random variable with PDF of (just a simplified example) Piecewise[{{1/3, x == 5 || x == 10 || x == 15}}, 0] Actually, in my code this is a <...