MathML HTML

A Function with Domain and Range

With MathMl, we can specify the domain and range of a function.

Function.html

<!doctype html>
<html>
  <head>
    <title>XoaX.net's MathML: A Function with Domain and Range</title>
  </head>
  <body>
    <p>
      If the function <math><mi>f</mi><mtext>(</mtext><mi>x</mi><mtext>)</mtext></math> is given by
      <math>
      	<mrow>
      		<mi>f</mi><mtext>(</mtext><mi>x</mi><mtext>)</mtext><mo>=</mo><mi>sin</mi><mtext>&nbsp;</mtext><mi>x</mi>
      	</mrow>
      </math>
      then <math><mi>f</mi></math> is a function
      <math>
      	<mrow>
      		<mi>f</mi><mo>:</mo><mn>&reals;</mn><mo>&rarr;</mo><mn>[-1,1]</mn>
      	</mrow>
      </math>
    </p>
  </body>
</html>
 

Output

 
 

© 2007–2025 XoaX.net LLC. All rights reserved.