Content MathML 簡易リファレンス
MathML の仕様は大きく2つに分けられる言語から成ります: Presentation MathML と Content MathML です.
誤解を恐れずに言えば, Presentation MathML が数式の見た目をマークアップするのに対して, Content MathML は数式の意味をマークアップするための言語です.
このページは Content MathML の手頃な要素リストです. MathML 2.0 をベースに MathML 3.0 の新要素を追加しています. 廃止予定の要素 ( reln, fn, declare ) は外しています.
式の構造
式の構造
| 要素名 | 使用例 | 
| cn |  | 
| ci |  | 
| csymbol |  | 
| cs |  | 
| cbytes |  | 
| cerror | 
  DivisionByZero
  
    divide
    x
    0
  
]]> | 
| sep |  | 
| apply |  | 
| bind |  | 
| bvar |  | 
| interval |  | 
| condition | 
  x
  
    0x
  
]]>
  
    x5
    3
  
]]>
  x
  
    xC
  
  fx
]]> | 
| domainofapplication |  | 
| share |  | 
 
関数と逆関数
関数と逆関数
| 要素名 | 使用例 | 
| lambda |  | 
| compose |  | 
| ident |  | 
| inverse |  | 
| domain |  | 
| codomain |  | 
| image |  | 
| piecewise |  | 
| piece |  | 
| otherwise |  | 
 
論理
論理
| 要素名 | 使用例 | 
| and |  | 
| or |  | 
| xor |  | 
| not |  | 
| implies |  | 
| equivalent |  | 
| forall | 
  x
  
    xx
    0
  
]]>
  p
  q
  
    
      p
      q
      pq
    
  
  
    p
    q2
  
]]> | 
| exists |  | 
 
集合論
集合論
| 要素名 | 使用例 | 
| set | 
  abc
]]>
  x
  
    x5
  
  x
]]>
  S
  
    ST
  
  S
]]>
   x 
  
    
      x5
      x
    
  
  x
]]> | 
| list |  | 
| in |  | 
| notin |  | 
| subset |  | 
| notsubset |  | 
| prsubset |  | 
| notprsubset |  | 
| union |  | 
| intersect |  | 
| setdiff |  | 
| cartesianproduct |  | 
| card |  | 
 
算術と代数
算術と代数
| 要素名 | 使用例 | 
| plus |  | 
| minus |  | 
| times |  | 
| divide |  | 
| quotient |  | 
| rem |  | 
| power |  | 
| root |  | 
| factorial |  | 
| gcd |  | 
| lcm |  | 
| abs |  | 
| conjugate |  | 
| real |  | 
| imaginary |  | 
| arg |  | 
| floor |  | 
| ceiling |  | 
| max |  | 
| min |  | 
 
関係
関係
| 要素名 | 使用例 | 
| eq |  | 
| neq |  | 
| gt |  | 
| lt |  | 
| geq |  | 
| leq |  | 
| approx |  | 
| factorof |  | 
 
列と級数
列と級数
| 要素名 | 使用例 | 
| sum |  | 
| product |  | 
| limit |  | 
| tendsto | 
  
  
    
    x
    2
  
  
    
    a
    2
  
]]>
  
  
     x
     y
  
  
    f
      x
      y
    
    g
      x
      y
    
  
]]> | 
 
微積分とベクトル解析
微積分とベクトル解析
| 要素名 | 使用例 | 
| diff |  | 
| partialdiff | 
  xm
  yn
  k
  f
    x
    y
  
]]>
  x
  y
  f
    x
    y
  
]]>
  113f
]]> | 
| degree | 
  
  
    x
    n
  
  
    y
    m
  
  
    
      x
      y
    
  
]]>
  
  n
  a
]]>
  
  3
  X
]]> | 
| int |  | 
| lowlimit |  | 
| uplimit |  | 
| grad |  | 
| curl |  | 
| divergence |  | 
| laplacian |  | 
 
線型代数
線型代数
| 要素名 | 使用例 | 
| vector |  | 
| matrix |  | 
| matrixrow |  | 
| determinant |  | 
| transpose |  | 
| selector |  | 
| vectorproduct |  | 
| scalarproduct |  | 
| outerproduct |  | 
 
統計
統計
| 要素名 | 使用例 | 
| mean |  | 
| sdev |  | 
| variance |  | 
| median |  | 
| mode |  | 
| moment |  | 
| momentabout |  | 
 
超越関数
超越関数
| 要素名 | 使用例 | 
| exp |  | 
| ln |  | 
| log |  | 
| sin |  | 
| cos |  | 
| tan |  | 
| sec |  | 
| csc |  | 
| cot |  | 
| sinh |  | 
| cosh |  | 
| tanh |  | 
| sech |  | 
| csch |  | 
| coth |  | 
| arcsin |  | 
| arccos |  | 
| arctan |  | 
| arcsec |  | 
| arccsc |  | 
| arccot |  | 
| arcsinh |  | 
| arccosh |  | 
| arctanh |  | 
| arcsech |  | 
| arccsch |  | 
| arccoth |  | 
 
定数とシンボル
定数とシンボル
| 要素名 | 使用例 | 
| primes |  | 
| naturalnumbers |  | 
| integers |  | 
| rationals |  | 
| reals |  | 
| complexes |  | 
| imaginaryi |  | 
| emptyset |  | 
| exponentiale |  | 
| pi |  | 
| eulergamma |  | 
| infinity |  | 
| true |  | 
| false |  | 
| notanumber |  | 
 
他形式とのマッピング
他形式とのマッピング
| 要素名 | 使用例 | 
| semantics | 
  
  
    123
    456
  
  
    N[123/456, 39]
  
  
    $0.269736842105263157894736842105263157894\ldots$
  
  
    evalf(123/456, 39);
  
  
    
      0.269736842105263157894
      
        736842105263157894
        ‾
      
    
  
  
    
    
    123
    456
    
  
]]> | 
| annotation |  | 
| annotation-xml |  | 
 
参考資料
More pragmatic in Probability and Statistics, see:
The language specifications:
Content dictionaries: