MinkowskiQM.m

Given x from 0 to 1, compute ?(x), where ? is the Minkowski question mark function.

You are now following this Submission

Given x from 0 to 1, this program computes ?(x), where ? is the Minkowski question mark function, defined by

?(0)=0, ?(1)=1, and ?((a+b)/(c+d))=
(?(a/c) + ?(b/d))/2, where a/b and c/d are consecutive terms in the Farey sequence. ?(x) is continuous but nowhere differentiable. ?(x) is rational whenever x is rational or a quadratic irrational. If x is rational, the denominator of ?(x) is a power of 2, otherwise it is not.

Cite As

David Terr (2026). MinkowskiQM.m (https://au.mathworks.com/matlabcentral/fileexchange/5031-minkowskiqm-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0