Using Radians in TikZ: Seamless Degree Conversion (Unlocking LaTeX Graphics, Ep 66-redo)

In this redo of episode 66 of Unlocking LaTeX Graphics, applied mathematician Tammy Kolda shows how to work with radian angles in TikZ, which normally expects degrees. By loading the TikZ math library, she uses the deg (degree) function to convert radians to degrees on the fly, and, crucially, wraps it in round to avoid subtle off-by-one errors when the conversion is not an integer. She demonstrates the approach in two common places: polar coordinates (angle:radius) and node angle anchors (node.angle) to place points on a circle at angles like π/4, 2π/3, π, and 3π/2. She also notes the need to wrap math expressions in curly braces and credits viewers for the original question and for catching the prior bug. 00:00 Welcome & Today's Topic 01:02 Document Setup 01:44 Polar Coordinates 02:31 Using Radians in Polar Coordinates 03:55 Using Radians in Node Angle Anchors 05:21 Why Round? 06:08 Thanks for Watching Key terms: texlatex, TikZ, radians, degrees, polar coordinates, node angle anchors, math library, deg function Other Episodes Original episode 66:    • Using Radians in TikZ: Seamless Degree Con...   TikZ math functions:    • TikZ Math Functions in LaTeX: Usage and Co...   TikZ styles:    • Mastering TikZ Styles in LaTeX (Unlocking ...   Node angle anchors (mini from Ep 64):    • TikZ Node Angle Anchors (Mini 1 from Ep 64...   Label key (mini from Ep 64):    • TikZ Node Label Key (Mini 2 from Ep 64 of ...   Today's Document on Overleaf: https://www.overleaf.com/read/wpwxtwy... Unlocking LaTeX Graphics Book: https://latex-graphics.com Purchase Book on Amazon: https://amzn.to/3z76nwb