<< Chapter < Page Chapter >> Page >
A short introduction to writing Content MathML by hand. It covers tokens, prefix notation, and applying functions and operators. Inaddition it introduces writing derivatives, integrals, vectors, and matrices.

The authoritative reference for Content MathML is Section 4 of the MathML 2.0 Specification . The World Wide Web Consortium (W3C) is the body that wrote the specification forMathML. The text is very readable and it is easy to find what you are looking for. Look there for answers to questions thatare not answered in this tutorial or when you need more elaboration. This tutorial is based on MathML 2.0.

In this document, the m prefix is used to denote tags in the MathML namespace. Thus the <apply> tag is referred to as <m:apply> . Remember all markup in the MathML namespace must be surrounded by <m:math> tags.

The fundamentals of content mathml: applying functions and operators

The fundamental concept to grasp about Content MathML is that it consists of applying a series of functions and operators toother elements. To do this, Content MathML uses prefix notation. Prefix notation is when the operator comes first and is followed by the operands. Here is how towrite "2 plus 3". <m:math> <m:apply> <m:plus/> <m:cn>2</m:cn> <m:cn>3</m:cn> </m:apply> </m:math> This would display as 2 3 .

There are three types of elements in the Content MathML example shown above. First, there is the apply tag, which indicates that an operator (or function) is about to be applied to the operands. Second, there is the functionor operator to be applied. In this case the operator, plus , is being applied. Third, the operands follow the operator. In this case the operands are thenumbers being added. In summary, the apply tag applies the function (which could be sin or f , etc.) or operator (which could be plus or minus, etc.) to the elements that follow it.

Tokens

Content MathML has three tokens: ci , cn , and csymbol . A token is basically the lowest level element. The tokens denote what kind of element you are acting on.The cn tag indicates that the content of the tag is a number. The ci tag indicates that the content of the tag is an identifier. An identifier could be any variable or function; x , y , and f are examples of identifiers. In addition, ci elements can contain Presentation MathML. Tokens, especially ci and cn , are used profusely in Content MathML. Every number, variable, or function is marked by a token.

csymbol is a different type of token from ci and cn . It is used to create a new object whose semantics is defined externally. It cancontain plain text or Presentation MathML. If you find that you need something, such as an operator or function, that isnot defined in Content MathML, then you can use csymbol to create it.

Both ci and csymbol can use Presentation MathML to determine how an identifier or a newsymbol will be rendered. To learn more about Presentation MathML see Section 3 of the MathML 2.0 Specification . For example, to denote " x with a subscript 2", where the 2 does not have a more semantic meaning, you woulduse the following code. <m:math> <m:ci> <m:msub> <m:mi>x</m:mi> <m:mn>2</m:mn> </m:msub> </m:ci> </m:math> This would display as x 2 .

Questions & Answers

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Cnxml tutorial. OpenStax CNX. Jul 08, 2009 Download for free at http://cnx.org/content/col10121/1.10
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Cnxml tutorial' conversation and receive update notifications?

Ask