跳转到主要内容
Calcton

Big Oh Calculator

Free online big oh calculator. Enter your values and get instant results with the formula, step-by-step working, a worked example and FAQs — everything runs locally in your browser on Calcton, no signup required.

中文版:大 O 记号验证器

Big Oh Calculator
f(n) 键名(1 / logn / n / nlogn / n2 / n3 / 2n)
g(n) 键名(同上)
验证起点 n₀(在 n₀ 到 4n₀ 范围内找最小常数 c)

原理:f(n) = O(g(n)) 的定义是存在常数 c 与 n₀,使得对所有 n ≥ n₀ 都有 f(n) ≤ c·g(n);工具在 n₀ 到 4n₀ 的网格上扫描比值 f(n)/g(n) 的最大值作为常数 c 的保守估计。

步骤:① 输入两个函数键名;② 输入验证起点 n₀;③ 查看判定与最小常数 c。

示例:f = n^2、g = n log n、n₀ = 10 时 c ≈ 7.516072988364(比值 n/log n 随 n 递增,在 4n₀ 处取得最大);反向验证 g = O(f) 则比值趋于 0,同样成立——两者互为上界时记 f = Θ(g)。

注意事项:比值随 n 无界增长时(如 n^2 对 n)依然给出有限 c,因为扫描窗口有限——判定 O 关系应结合增长率直觉,工具的 c 只在窗口内有效;n₀ 应选足够大以越过小常数项的干扰。

相关:主定理计算器用 O 记号给递归式分类;渐近展开计算器展示函数在大 n 时的主导项如何决定复杂度阶。

How to use the Big Oh Calculator

  1. Fill in the inputs with your own numbers — every field shows what it expects.
  2. The result updates instantly as you type; no "Calculate" click needed.
  3. Read the result card for the main figure, the step-by-step formula, and practical notes.

Frequently asked questions

Is the Big Oh Calculator free?

Yes — all math calculators on Calcton are free, with no sign-up required. Your inputs are processed in your browser and never sent to a server.

Is there a Chinese version of this tool?

Yes. Use the Chinese version link above — it is the same calculator with the interface in Simplified Chinese.

References

Formulas and benchmarks used by this calculator follow these published sources.

  1. dlmf.nist.gov
  2. mathworld.wolfram.com
Kevin's profile

KevinContent LeadCalcton Editorial Team · Last updated 2026-10-04

Kevin maintains Calcton's formula verification and content: every calculator cites the standard it implements, worked examples are recomputed programmatically, and health benchmarks follow WHO and international guidelines.

Related calculators

More in this category: Math calculators

About math calculators

Free online math calculators for algebra, statistics, number theory and everyday arithmetic — from quadratic equations and matrices to percentages, fractions and prime factorization, each with step-by-step formulas.

搜索计算器

搜索全站计算器、分类与页面,回车直达