© J.J. Merelo 2020
J. MereloRaku Recipeshttps://doi.org/10.1007/978-1-4842-6258-0_4

4. Math

J. J. Merelo1 
(1)
Granada, Granada, Spain
 

Programming languages are the offspring of mathematics, but they have different capabilities to translate mathematical language and expressions to code. By implementing operators using their Unicode glyph, you will find that Raku code is closer to math than it is to other languages. By its functional nature, Raku functions can also work as pure functions (applications, in mathematical terms) and thus the data flow can be seen more clearly in Raku code.

In this chapter, we will work through several recipes that deal with mathematical objects and apply mathematical operations in sensible ways.

Recipe 4-1. Generate Mathematical ...

Get Raku Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.