Math 2.0

Approximations and expansions Definition

Big O notation

Definition

Let ff and gg be real functions defined on an interval [x0,∞)[x_0, \infty). The notation f(x)=O(g(x))f(x) = O(g(x)) as x→∞x \to \infty means that there are real numbers C>0C > 0 and x1≥x0x_1 \ge x_0 with ∣f(x)∣≤C∣g(x)∣for all x≥x1.|f(x)| \le C |g(x)| \quad \text{for all } x \ge x_1.

Remarks

The same definition works as x→ax \to a, with ∣x−a∣<δ|x - a| < \delta in place of x≥x1x \ge x_1. If g(x)≠0g(x) \ne 0 for large xx, then f=O(g)f = O(g) means that f/gf/g is bounded for large xx. For example, 3x2+5x=O(x2)3x^2 + 5x = O(x^2) as x→∞x \to \infty. Mathlib defines it for filters, as Asymptotics.IsBigO.

Where this leads

23 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Big_O_notation, Formal definition
About this page
Tag0RYTGBJAGN
URIm2://0RYTGBJAGN
Aliaseslandau-big-o
Kinddefinition
WritingW1 stated
MSC41A60
DefinesBig O notation

Markdown · JSON · Edit on GitHub

What this page needs for W2

  • edge instance_of in: one example (0 of 1)
  • edge not_instance_of in: one non-example that fails one clause (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Used by