Grasping the basic math you need
In computer programming, functions provide the means for packaging code that
you intend to use more than once. Functions turn code into a black box, an entity
to which you provide inputs and expect certain outputs. Chapter 4 discusses how
to create functions in Python. Mathematics uses functions in a similar manner to
programming; they are set of mathematical operations that transform some input
into an output. The input can include one or more variables, resulting in a unique
output based on the input. Usually a function has this form:
f (x) = x*2
Do'stlaringiz bilan baham: |