# Questions tagged [discrete]

The tag has no usage guidance.

26 questions
Filter by
Sorted by
Tagged with
29 views

### How can I use the DiscretePlot and LogPlot?

I am really new to mathematica and this will seem very basic, but the two last lines of the code do not work (the two prints work just fine), it gives me the error more input is needed(only for the ...
51 views

### Coloring DiscretePlot3D according to min

I have two discrete functions, which I'll greatly simplify for this question: RedFnc[i_, j_] := 1 + i + j; BlueFnc[i_, j_] := 1 + (1 - i) + (1 - j); I am ...
46 views

### phase portrait discrete system

I've tried to see the phase portrait of the systems using Mathematica but I could not I need help with the code: x(n+1)=2x(n)+4y(n), y(n+1)=-x(n)-2y(n) and this system: x(n+1)=x(n)^2-y(n)^2, y(n+...
26 views

### Problem when integrating a discontinuous function

I have this simple code: ...
50 views

### Cumulative difference between discrete cumulative distribution functions

I would please like to ask for how to cumulate and plot the difference between cumulative disitribution functions (:=CDFs). Example: ...
396 views

### A replacement for NextPermutation in Combinatorica [duplicate]

Does anyone know of a replacement for NextPermutation in Combinatorica? The problem with loading Combinatorica is that it interferes with new functionality which I ...
42 views

### Is there a multidimensional FindSequenceFunction for multi-parameter pattern discovery?

FindSequenceFunction is a great tool for discovering formulas of sequences depending on a single index. OEIS is another tool for the case of integer sequences ...
416 views

### NonlinearModelFit when the fitting function produces a discrete list of values?

Short Version: I have a parameterized function (the model) that returns a list of values. I have data that I want to fit this model to, optimizing those parameters, where the list position in the data ...
42 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, ...
30 views

### Discrete variables in ParametricNDSolve [closed]

I'm trying to write a stochastic differential equation, using ParametricNDSolve and WhenEvents : ...
49 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 ...
81 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 ...
64 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: ...
431 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 ...
312 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 ...
105 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 ...
71 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 ...
221 views

### Convert DiscretePlot3D to 2D plot with a Color Function

Observe the following wolfram Mathematica code: ...
292 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 ...
88 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?
130 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 ...
179 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}^...
90 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 should give mm ...
162 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: ...