- 1,028
- 767
Mathematica code :
The output looks like this:
But I would have expected only the phases, i.e. the second sublist only. Why do the sine values get reaped along with the phases that are actually sown?
Code:
Reap[ (
sin = (
(
phase = 2 Pi #/32; Sow[phase]; Sin[phase]
) & /@ Range[32]
)
)
]
The output looks like this:
But I would have expected only the phases, i.e. the second sublist only. Why do the sine values get reaped along with the phases that are actually sown?