# Questions tagged [code-review]

This tag is intended for the review and improvement of style for already functioning code. It not meant to change the objective of the code.

288 questions
Filter by
Sorted by
Tagged with
196 views

### Approximating the density of $S\cap[a,b]$ using a Folner Sequence of $A$, where $S \subseteq A$?

Edit: I redid my code but it's still not working. How do we use Mathematica to approximate $$D(S\cap[a,b])=\lim_{n\to\infty}\frac{\left|S\cap{F_n\cap[a,b]}\right|}{\left|F_n\cap[a,b]\right|}$$ ...
30 views

### Why is my code for density using Folner Sequences giving incorrect values? [duplicate]

I am creating a code that calculates or approximates $$D(S\cap[a,b])=\lim_{n\to\infty}\frac{\left|S\cap{F_n\cap[a,b]}\right|}{\left|F_n\cap[a,b]\right|}$$ where $D$ is the density of $S\cap[a,b]$ (...
48 views

### Why is Manipulation not creating a graph?

Why does manipulation not give a graph? ...
291 views

77 views

...
202 views

### Exporting a Manipulate expression to .avi and .gif

I've the following code: ...
306 views

### What is wrong with this code? (Usage of FunctionInterpolation and how to make code efficient)

I am trying to create an interpolation out of a function that comes from an improper integral. The end goal is to make a 3d plot over a specific region. Specifically, I have the following code: ...
55 views

### What is a good way to implement a versatile folder structure checking system?

I'm writing an 'application' (set of *.wl and *.wls files) that requires a given folder structure to function; I am not sure how this structure will eventually look like, because it changes as I ...
164 views

### Improving the run time of random walk simulation

One of our professors told us that during his thesis he used Mathematica in simulating it since it is about networks, I don't know how he did it but all I know is he said it took about two weeks to ...
91 views

### Can a certain pair of expressions be compressed into one?

I've been employing this pair of statements ...
58 views

### Is this decryption function idiomatic?

This is my first non-trivial Mathematica notebook, which I wrote for a cryptology homework. It encrypts/decrypts strings using an affine cipher. Is the code readable/idiomatic? How could it be ...
72 views

...
76 views

### Finding the limit of a function

I have the following code: ...
115 views

### Is there any better way to generate random unique quadratic equations with rational zeros, simplest integer coefficients?

This is my attempt but I want to make it more compact if possible. ...