TikZ Math Functions in LaTeX: Usage and Common Pitfalls (Unlocking LaTeX Graphics - Video 19)

In this episode of Unlocking LaTeX Graphics, applied mathematician Tammy Kolda explores the TikZ math library and its functionalities within LaTeX. The tutorial covers essential commands like pgfmathsetmacro for math calculations, explains how to handle integer and decimal results, and points out common inaccuracies in computations. Tammy also demonstrates using random number generation and calculating the size of text units in TikZ. This video is based on concepts from her book, Unlocking LaTeX Graphics. 00:00 Math in TikZ 00:40 Setting Up 01:22 PGF Math Command 02:05 Integer Results 03:14 Grouping 03:42 Inaccuracy of PGF Math Calcuations 04:28 Random Numbers 05:34 Text Size 07:44 Thanks for Watching Key terms today: tikz, math, pgfmath, pgfmathsetmacro, rand, width, height, depth Today's Document on Overleaf: https://www.overleaf.com/read/rqwhfqm... Unlocking LaTeX Graphics Book: https://latex-graphics.com Purchase Book on Amazon: https://amzn.to/3z76nwb

Mastering Loops in TikZ: A LaTeX Tutorial (Unlocking LaTeX Graphics - Video 20)
▶︎

Mastering Loops in TikZ: A LaTeX Tutorial (Unlocking LaTeX Graphics - Video 20)

How Assembly Functions Work - The Stack Explained
▶︎

How Assembly Functions Work - The Stack Explained

Locked in… until it’s done / Boom Bap Jazzy Lo-fi for getting things done
▶︎

Locked in… until it’s done / Boom Bap Jazzy Lo-fi for getting things done

Mastering TikZ Layers to Recreate the Multi-Head Attention Figure (Unlocking LaTeX Graphics, Ep. 65)
▶︎

Mastering TikZ Layers to Recreate the Multi-Head Attention Figure (Unlocking LaTeX Graphics, Ep. 65)

Six Hidden TikZ Tricks (Unlocking LaTeX Graphics, Ep. 64)
▶︎

Six Hidden TikZ Tricks (Unlocking LaTeX Graphics, Ep. 64)

Intro to LaTeX : Learn to write beautiful math equations || Part 1
▶︎

Intro to LaTeX : Learn to write beautiful math equations || Part 1

Russell's Paradox - a simple explanation of a profound problem
▶︎

Russell's Paradox - a simple explanation of a profound problem

Recursion in C++:  Illustrated using Factorial, Fibonacci, and the Call Stack
▶︎

Recursion in C++: Illustrated using Factorial, Fibonacci, and the Call Stack

Using Arrows in TikZ LaTeX Graphics (Unlocking LaTeX Graphics - Video 3)
▶︎

Using Arrows in TikZ LaTeX Graphics (Unlocking LaTeX Graphics - Video 3)

We're 99.9% sure this pattern is true, but no one can prove it
▶︎

We're 99.9% sure this pattern is true, but no one can prove it

the true reason C++ always wins
▶︎

the true reason C++ always wins

Linus Torvalds: AI Is Changing Linux Fast
▶︎

Linus Torvalds: AI Is Changing Linux Fast

The FULL VIDEO of Trump they didn’t want released
▶︎

The FULL VIDEO of Trump they didn’t want released

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

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

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains
▶︎

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

You Know This Song (but the Orchestra Doesn’t) | Jacob Collier & VSO School of Music Orchestra | TED
▶︎

You Know This Song (but the Orchestra Doesn’t) | Jacob Collier & VSO School of Music Orchestra | TED

You’ll stop using ChatGPT after listening to this | Jonathan Pageau [ARC 2026]
▶︎

You’ll stop using ChatGPT after listening to this | Jonathan Pageau [ARC 2026]

What was Coding like 40 years ago?
▶︎

What was Coding like 40 years ago?

Reproducing a Complex Diagram with TikZ (Unlocking LaTeX Graphics - Video 44)
▶︎

Reproducing a Complex Diagram with TikZ (Unlocking LaTeX Graphics - Video 44)

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

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