# Tag Info

### Generating list with short code

Using Splice (new in 12.1) - 24 characters Splice @ {#, # - 1} & /@ Range @ 9 {1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6, 8,...
• 77.6k

### Generating list with short code

f[n_] := Riffle[Range[n], Range[0, n - 1]] f[10] will yield 20 terms. {1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6, 8, 7, 9, 8, 10, 9} Can crop as desired
• 62k

### Manipulate module to plot function with long list of parameters

How I can automize the process of adding controllers You can generate the controllers outside Manipulate using any method such as Table command and then use the result inside Manipulate. Each time ...
• 146k
1 vote
Accepted

### Visualization of Minimization Problem

The problem is that $x=y^\frac{1}{\alpha}$ is a solotion to the equation $x^\alpha=y$, but not the only solution. $x=y^\frac{1}{\alpha}\mathrm{e}^{\mathrm{i}\frac{2k\pi}{a}}$ is also a solution to the ...
• 438
1 vote

### Generating list with short code

a[n_] := 1/2 + (-1)^n 3/2 FoldList[#1 + a[#2] &, 1, Range[20]] -> {1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6, 8, 7, 9, 8, 10, 9, 11} or in one line: ...
• 62k

Only top scored, non community-wiki answers of a minimum length are eligible