ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: cylindricalCoords

cylindricalCoords(S) applies the transformation

x = r⋅sin(φ)
y = r⋅cos(φ)
z = z

to all three-dimensional cylindrical real vectors (r, φ, z) in the set S, and returns the new set of Cartesian coordinates (x, y, z).

This is useful for plotting cylindrical graphs. Simply create a set S of cylindrical coordinates (r, φ, z) and then transform it using

S ≔ cylindricalCoords(S)

after which it can be plotted using drawSet3, drawLines3, etc.

Example: An illustrative way to draw a grid cylinder with radius 4.
         net ≔ createNet(0, 2⋅π, 0.01, π/12, -10, 10, 0.1, 1)
         paramNet ≔ createImage("❨4, r_1, r_2❩", "r", net)
         cylinder ≔ cylindricalCoords(paramNet)
         drawSet3("cylinder")