Skip to content

6.5 Writing Mathematical Functions

  • A function is commonly defined to compute a mathematical calculation involving several numerical parameters and returning a numerical result

6%205%20Writing%20Mathematical%20Functions%2064943292d36647e093e962f161798e4c/Untitled.png

Calling functions in expressions

  • A function call often appears within an expression:

6%205%20Writing%20Mathematical%20Functions%2064943292d36647e093e962f161798e4c/Untitled%201.png

Modular functions for mathematical expressions

  • Modularity allows more complex functions to incorporate simpler functions.
  • Complex mathematical functions often call other mathematical functions.

6%205%20Writing%20Mathematical%20Functions%2064943292d36647e093e962f161798e4c/Untitled%202.png