Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Introduction to Functions | Functions and Their Properties
Mathematics for Data Science with Python

bookIntroduction to Functions

メニューを表示するにはスワイプしてください

Functions are fundamental in mathematics and data science. They specify how inputs map to outputs, and they're used to analyze trends and model behavior. From machine learning models to data transformations, functions underpin decision-making.

Imagine a vending machine: you insert an input (x), and it follows a specific rule to produce a unique output (f(x)). Just like different coins provide different drinks, each input in a function maps to a single, predictable result.

Types of Functions

  • One-to-one (injective) functions: each input has a unique output. No two inputs share the same result;
f(x)=2x+3f(x) = 2x + 3
  • Many-to-one functions: multiple inputs can map to the same output;
f(x)=x2f(x) = x^2
  • Onto (surjective) functions: every possible output has at least one input mapped to it;
f(x)=x4f(x) = x - 4
  • Into functions: some outputs remain unused, meaning the function doesn't cover the entire codomain;
f(x)=x2f(x) = x^2
  • Bijective functions: a function that is both One-to-One and Onto, meaning it is reversible.
f(x)=3x+2f(x) = 3x + 2
question mark

Which function type allows multiple inputs to map to the same output?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  1

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 1.  1
some-alt