Functions

Function

A function maps each input in its domain to exactly one output.

Meaning

What Is Function?

A function maps each input in its domain to exactly one output.

A function maps each input in its domain to exactly one output.

Examples

Examples of Function

1f(x) = x² maps 3 to 9.
Understand

Formula and Key Points

Formula / rule
y = f(x)
  • Know the definition and standard notation for Function.
  • Be able to recognise or compute function in a small example.
  • Connect the concept to nearby topics in the same subject before using it in larger CSE problems.
CSE Connection

Why This Matters in Computer Science

Used to model input-output behaviour in programs, APIs, algorithms, transformations and machine-learning pipelines.

FAQ

Function: Frequently Asked Questions

What is Function?

A function maps each input in its domain to exactly one output.

Why is Function useful in computer science?

Used to model input-output behaviour in programs, APIs, algorithms, transformations and machine-learning pipelines.