4 ms·
Q4: What is it plotting? `random()` returns a float, right? Is it plotting... r*cis(theta), where r is the random invocation and theta varies uniformly across t
by justinpombrio 3y ago
Q4: What is it plotting? `random()` returns a float, right? Is it plotting... r*cis(theta), where r is the random invocation and theta varies uniformly across the circle, normalized so that all the circles are the same size (where cis(theta) = (cos(theta), sin(theta))?
- maxbond 3y agoNah, it's plotting polar vectors, and it uniformly picks an angle. The random(...) is just the magnitude of the vector.
- justinpombrio 3y agoFYI, r*cis(theta) _is_ a polar vector. So it's the thing I said, but with the angle chosen randomly.
- deleted 3y ago[deleted]
- maxbond 3y agoGotcha. My bad, thanks for clarifying.