Beyoncé isn't the only one with swag.

In New Orleans, seventh-grade math teacher Ciera Paul was trying to help her students understand the finer points of a recent geometry lesson. So she turned to Queen Bey's lyrics to "Formation" for help.

What followed is probably the best "Formation" remix you'll ever hear. In a video that's since gone viral, Paul tells her students at ReNEW Cultural Arts Academy, a charter school, that the objective of the lesson is to "find the area and circumference of a circle when given the radius or diameter." On cue, the class sings in unison, "I'm so crazy with my circular measurements/Pi times diameter gives me the circumference."

"I'm so reckless everytime [sic] I square my radius/I multiply it times pi to get the area."

Then the class stands up from their seats and dances while singing, "Geometry matters/Down in Louisiana/Remix these lyrics with vocab because math matters."

"Complimentary is 90 degree angles/Supplementary equals 1-8-0/I solved the problem like I'm a superhero."

And then in a final ode to greatness, the class belts out: "I bring A's home in my bag/SWAG!"

The fun doesn't stop there. The Spanish speakers in the class then continue on with their own translation. "Estoy tan loco con mis medidas circulares/Pi Multiplican diámetro me de la cicunferencia."

"Estoy cada vez de manera imprudente I Square mi radio/Lo multiplico por pi para obtener el área."

And then the refrain, in English: "Geometry matters, down in Louisiana/Remix these lyrics with vocab because math matters."

Watch the full video here:

"One Sunday night while I was at home, Beyoncé's 'Formation' came on the radio, and I thought to myself, 'I bet they're going to like this song,'" Paul told ABC News. And it worked. "They were all just like this is so fun; this is so awesome," Paul said.

Beyoncé is good for the youth.