# All Questions

5 views

### How to Fold (FoldList) this in a more compact (efficient) way?

Example code: x = Table[something[i], {i, 5}] Table[Fold[f1[#1, f2[#2, a], a] &, x[[i]], {c1, c2, c3}], {i, Length[x]}] This above is just an example. I ...
16 views

### Incorrect use of Scaled causes crash

Bug introduced in 8.0 and persisting through 10.0.2 or later While playing with Scaled, I made a syntax error which caused a crash instead of an error message ...
17 views

### Sum of derivatives

I'm trying to write the expression: $$\sum_{i=1}^3 g_{ii} \partial_i \partial_i f,$$ where $f$ is a function of variables $\{x_1, x_2, x_3\}$ and $g$ is a 3x3 matrix. My expression is: ...
27 views

### Linear algebra: Matrix transformation [on hold]

I have 3 matrices (the Pauli matrices): s1 = {{0, 1}, {1, 0}}; s2 = {{0, -I}, {I, 0}}; s3 = {{1, 0}, {0, -1}}; and I have placed them in a 3 component vector: ...
23 views