# 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.

423 questions
Filter by
Sorted by
Tagged with
1 vote
68 views

### How to use an "otherwise" clause in Which

I want to classify a set of vectors according to the number and position of zeroes they contain. The components of the vectors are non-negative. I'm using ...
61 views

### How do we define the function near the end of my post?

Suppose I have two sets $F_{1,n}$ and $F_{2,n}$ written as: ...
398 views

### Is there a more elegant solution than f[a, b, Sequence@@#3,...]?

I am trying to construct a list of many possible combinations using Outer and Permutations. Something that looks like that: <...
1 vote
45 views

### How to rescale list to interval $(0,1)$ [closed]

Imagine I have an arbitrary list l = RandomReal[{-5, 10}, 10] Out[]= {4.17452, 1.75762, 4.16905, -3.63225, 8.34172, 5.39626, -4.2107, 3.50873, -1.52441, -3.7147} ...
88 views

...
55 views

104 views

### Binary permutation list code in Mathematica

Given some natural number $N$, I am interested in the set of all binary permutations of length $N$ (with the intention of storing in lists depending on how many $1$'s appear in each permutation). My ...
149 views

### How to draw a barchart with a vertical line

The following code works just fine with a few caveats. ...
29 views

### Should Expanding a function result in changes to its Plot?

(Title needs improving) I'm trying to find the analytical expression for the attenuation of an AC voltage through a passive low-pass filter. The solution involves finding the time-dependent charge (<...
149 views

### What is the limit of the sum as t approaches infinity?

I am unable to find the limit of the following sum as t appraoches infinity ...
68 views

### Individual block diagonalisations take more time than single diagonalization of block matrix

Sample Problem of a large block matrix: I want to find the lowest eigenvalue of a blockdiagonal matrix h[x] for a range of values of ...
30 views

### How to resolve problem during summation of functions?

I am trying to find out the output of this basic problem but getting an error. If anyone can resolve this will be helpful. ...
162 views

### Calculating the sum of means of lists as n approaches infinity

I am unable to calculate the sum for larger values of n. ...