# Questions tagged [broken-code]

Use this tag only if you did your research and you still don't know why your syntactically correct code does not work.

108 questions
Filter by
Sorted by
Tagged with
1k views

### What's wrong with this FFT-based Von Kármán vortex street simulation?

About 9 years ago, I came across this interesting website, and found the following paragraph with a broken Mathematica code sample: When fluid passes an object, it can leave a trail of vortices ...
5k views

### How to set up a simple Monte Carlo simulation?

there is a 1% chance that there will be a scattering event, if there is a scattering event the direction of scattering will be determined by a random sample of the custom[a_] function and if there is ...
1k views

1 vote
879 views

### Error message: Coordinate index 0 is out of range for the enclosing GraphicsComplex

I am unable understand following error message: Coordinate index 0 is out of range for the enclosing GraphicsComplex. How to fix it? Attached data here: pts and polygons. See also end of question. <...
1 vote
267 views

### Creating an interactive plot that zooms into the function

Suppose we want an interactive plot for the code: ...
1 vote
233 views

### QR decomposition using Gram Schmidt [closed]

First of all I don't want to use the reflection method, only Gram-Schmidt. So here's the program for Gram-Schmidt: ...
1 vote
99 views

When I use variables, errors are encountered. But when I change the variables to constants, I don't have a problem, but I wonder why. ...
1 vote
108 views

### How do we find the limit of my code?

Suppose we have the following: ...
1 vote
I created a "distribution deviation" where for $\left\{a_1,...,a_k\right\}$ we take all take the mean of all combinations of \$\frac{\min\left\{a_{i},a_{j}\right\}}{\max\left\{a_{i},a_j\right\...