Basic Functions
In this chapter, we'll cover some of the basic building blocks for more complex functions that we will build in later chapters.
Some terminology and concepts used in this chapter are listed below.
Types of Functions
Valued Functions
A valued function is one that can return anything, and is highly dependent on the input. An example of a valued function is
Boolean Functions
A boolean function is one that returns either or . In computer science, boolean means a value that is true
or false
.
In our boolean functions, a value of will mean that a certain condition is false, and a value of will mean that the condition is true. These boolean functions are exceptionally useful while implementing conditions in our formulas.