{"id":45624,"date":"2019-07-16T03:01:21","date_gmt":"2019-07-15T17:01:21","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=45624"},"modified":"2019-07-16T02:55:54","modified_gmt":"2019-07-15T16:55:54","slug":"maths-symbology-via-div-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/maths-symbology-via-div-primer-tutorial\/","title":{"rendered":"Maths Symbology via Div Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/talk_maths.html\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"Maths Symbology via Div Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/maths_stuff.jpg\" title=\"Maths Symbology via Div Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Maths Symbology via Div Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve long been interested by &#8230;<\/p>\n<ul>\n<li>HTML and Javascript and CSS web applications &#8230; that can &#8230;<\/li>\n<li>display Mathematical symbology &#8230; and be capable of &#8230;<\/li>\n<li>some sharing capabilities<\/li>\n<\/ul>\n<p>So, in a similar line of thinking to <a title='HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial' href='#html\/jbmgjt'>HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial<\/a> we&#8217;re harnessing &#8230;<\/p>\n<ul>\n<li>HTML div <a target=_blank title='Global contenteditable attribute information from W3schools' href='https:\/\/www.w3schools.com\/tags\/att_global_contenteditable.asp'>contenteditable<\/a>=true &#8230; and its &#8230;<\/li>\n<li>onchange and onblur value change events &#8230; as well as &#8230;<\/li>\n<li>onkeypress keyboard event (purely for a time when to intervene) &#8230; we allow for &#8230;<\/li>\n<li>display controllables are &#8230;\n<ol>\n<li>content symbology helper inspired by W3school&#8217;s <a target=_blank title='W3schools help, thanks' href='\/\/www.w3schools.com\/charsets\/ref_utf_math.asp'>https:\/\/www.w3schools.com\/charsets\/ref_utf_math.asp<\/a> (thanks) &#8230; and &#8230;<\/li>\n<li>content superscript and normal and subscript modes of placement &#8230; and &#8230;<\/li>\n<li>font colour<\/li>\n<li>background colour<\/li>\n<li>font size<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p> &#8230; we start down our road of discovery.<\/p>\n<p>At this early &#8220;proof of concept&#8221; stage we have a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/talk_maths.html-GETME\" title=\"talk_maths.html\">talk_maths.html<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/talk_maths.html\" title=\"Click picture\">live run<\/a> link for you to explore with, or take a look at our <a target=_blank title='' href='https:\/\/www.vivaxsolutions.com\/maths\/albscintgrtn.aspx'>Vivax Solutions webpage<\/a> (thanks) inspired <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/maths_stuff.jpg\" title=\"Tutorial picture\">tutorial picture<\/a> for today.<\/p>\n<hr>\n<p id='html\/jbmgjt'>Previous relevant <a target=_blank title='HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/html\/javascript-binomial-multiplication-game-jeopardy-tutorial\/'>HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/multiplying_binomials.htm\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/binomial_multiplying.jpg\" title=\"HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial\"  \/><\/a><p class=\"wp-caption-text\">HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial<\/p><\/div>\n<p>Today, as with WordPress 4.1.1&#8217;s <a target=_blank title='HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-binomial-multiplication-game-jeopardy-tutorial\/'>HTML\/Javascript Binomial Multiplication Game Jeopardy Tutorial<\/a>, we add a <a target=_blank title='Answer the question' href='https:\/\/en.wikipedia.org\/wiki\/Jeopardy!'>Double Jeopardy<\/a> (aka the game, not so much the movie) clause to our <a target=_blank title='HTML\/Javascript Binomial Multiplication Game Primer Tutorial' href='#hjbmgpt'>HTML\/Javascript Binomial Multiplication Game Primer Tutorial<\/a> starting game from a couple of days ago.<\/p>\n<p>So we now have four modes of game usage &#8230;<\/p>\n<ul>\n<li>Multiplying Binomials (with Trinomials)<\/li>\n<li><i>Double Jeopardy<\/i> Binomials (with Trinomials) (ie. you supply either one of the two questions that would suit the answers shown)<\/li>\n<li>Expanding to Quadratic Equations<\/li>\n<li><i>Double Jeopardy<\/i> Quadratic Equations (ie. you supply either one of the two questions that would suit the answers shown)<\/li>\n<\/ul>\n<p>This adds a lot of new mathematics functionality to the game, just building on those HTML and Javascript ideas from a couple of days ago.<\/p>\n<p>If you like practising your algebra maybe you should try, and hope you enjoy, the <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/multiplying_binomials.htm\" title='click picture'>game<\/a> and\/or look at the HTML\/Javascript programming source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/multiplying_binomials.html_GETME\" title=\"multiplying_binomials.html-GETME\">multiplying_binomials.html<\/a> and which changed <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/multiplying_binomials.html_GETME\" title=\"multiplying_binomials.html\">multiplying_binomials.html<\/a>in this way<\/a>.<\/p>\n<hr>\n<p id='hjbmgpt'>Previous relevant <a target=_blank title='HTML\/Javascript Binomial Multiplication Game Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-binomial-multiplication-game-primer-tutorial\/'>HTML\/Javascript Binomial Multiplication Game Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/multiplying_binomials.html\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"HTML\/Javascript Binomial Multiplication Game Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/binomial_multiplying.jpg\" title=\"HTML\/Javascript Binomial Multiplication Game Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">HTML\/Javascript Binomial Multiplication Game Primer Tutorial<\/p><\/div>\n<p>We can probably all think of good mathematics games we could invent in a program, but when you sit down to program you can be put off by the mathematical symbols you&#8217;d like to involve in the game, but find it unwieldy to do so.  Below we talked a bit about this with <a target=_blank title='HTML\/Javascript MathML Primer Tutorial' href='#hjmpt'>HTML\/Javascript MathML Primer Tutorial<\/a> as shown below.<\/p>\n<p>The use of <a target=_blank href='http:\/\/www.tutorialspoint.com\/html5\/html5_mathml.htm' title='MathML information'>MathML HTML tags<\/a> is a great idea for sure, but with our &#8220;Multiplying Binomials&#8221; mathematics game today, that we would like to <a target=_blank title='?' href='https:\/\/youtu.be\/8rXk8TDtu1M'>serve<\/a> up to you today, all we want is to represent the &#8220;to the power of 2&#8221; (ie: \u00b2) symbol, and the MathML solution feels like a bit of overkill &#8230; and so we thought about it a bit &#8230;<\/p>\n<ul>\n<li>you can&#8217;t use <a target=_blank title='HTML enties information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/List_of_XML_and_HTML_character_entity_references'>HTML entities<\/a> in HTML <a target=_blank title='HTML input tag information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_input.asp'>input type=text<\/a> elements &#8230; so &#8230;<\/li>\n<li>nor can you use  &lt;sup&gt;2&lt;\/sup&gt; &#8230; unless you want to look kind of dumb &#8230; but &#8230;<\/li>\n<li>suppose you put in the header section (between  &lt;head&gt; and &lt;\/head&gt;) <i>&lt;meta charset=&#8221;UTF-8&#8243; \/&gt;<\/i> then we can assign a Javascript (global) var<font size=1>iable<\/font> to a copied and pasted \u00b2 found on the net somewhere, for instance &#8230; as in the code<br \/>\n<code><br \/>\nvar twosup=\"\u00b2\";<br \/>\n<\/code>\n<\/li>\n<\/ul>\n<p> &#8230; sounds promising as far as writing things onto the HTML input type=text element but what about the hassle for the user to have the control themselves interactively entering these \u00b2s.  Well, we can think of two useful (pragmatic) helper ideas here, they being &#8230;<\/p>\n<ul>\n<li>we know there are going to be two \u00b2s involved in any one Multiplying Binomials answer so why not initialize the value first presented in the HTML input type=text element&#8217;s value with 2 \u00b2s spread apart a little that the user can build on to build up their answer without having to worry about the keypad production of any \u00b2 &#8230; and &#8230;<\/li>\n<li>present a helper \u00b2 button that appends a \u00b2 at a time of the user&#8217;s choosing to the end of their Multiplying Binomials answer (separately for their Intermediate (show working) Answer and\/or their final Answer)<\/li>\n<\/ul>\n<p>We&#8217;ve used this game ourselves and found it reasonably easy to use, and it teaches you some mathematical patience to answer the Multiplying Binomials questions asked.<\/p>\n<p>And what created the interest for this web application?  The <a target=_blank title='Maths is Fun' href='https:\/\/www.mathsisfun.com\/algebra\/polynomials-multiplying.html'>Maths is Fun<\/a> website we think is wonderful here, as it is for so many mathematical subjects for school students, in particular.<\/p>\n<p>So please try examining the HTML and Javascript programming source code, for the game, you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/multiplying_binomials.html_GETME\" title=\"multiplying_binomials.html\">multiplying_binomials.html<\/a> (and just see that the <i>var twosup=&#8221;\u00b2&#8221;;<\/i> line (and any other lines containing \u00b2) looks the way it should) and test it for yourself with a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/multiplying_binomials.html\" title='click picture'>live run<\/a> link.<\/p>\n<hr>\n<p id='hjmpt'>Previous relevant <a target=_blank title='HTML\/Javascript MathML Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-mathml-primer-tutorial\/'>HTML\/Javascript MathML Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/MathML\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"HTML\/Javascript MathML Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/MathML\/MathML_Primer.jpg\" title=\"HTML\/Javascript MathML Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">HTML\/Javascript MathML Primer Tutorial<\/p><\/div>\n<p>The HTML5 specification allows for the use of mathematical symbology via <a target=_blank href='http:\/\/www.tutorialspoint.com\/html5\/html5_mathml.htm' title='MathML information'>MathML HTML tags<\/a>.<\/p>\n<p>The display of mathematical symbology was not so easy to achieve very easily with older versions of HTML, and MathML makes this a lot easier for web content creators.<\/p>\n<p>Today, with our <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/MathML\/\" title='Click picture'>tutorial<\/a>, we show the use of MathML HTML tags to show operations on 2&#215;2 matrices (in fact the matrix is the same on either side of + &#8211; x and \/ operators).   Matrix mathematics can get hugely more complicated than in this primer tutorial, and should you want to study this further, and you are starting from scratch:<\/p>\n<ul>\n<li>stop scratching<\/li>\n<li>maybe start with a peruse of <a target=_blank title='Matrix information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Matrix_%28mathematics%29'>Wikipedia<\/a>, and then take it from there to other research<\/li>\n<li>link about matrix <a target=_blank title='Matrix inversion' href='http:\/\/www.mathwords.com\/i\/inverse_of_a_matrix.htm'>inversion<\/a><\/li>\n<\/ul>\n<p>Today we have HTML and Javascript programmable source code you could call <a target=_blank title='mathml_tutorial.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/MathML\/mathml_tutorial.html_GETME'>mathml_tutorial.html<\/a> and here is its <a target=_blank title='mathml_tutorial.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/MathML\/mathml_tutorial.html'>live run<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d8609' onclick='var dv=document.getElementById(\"d8609\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=mathematics\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d8609' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d19779' onclick='var dv=document.getElementById(\"d19779\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/utf-8\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d19779' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d19779' onclick='var dv=document.getElementById(\"d19779\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/javascript\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d19779' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d45624' onclick='var dv=document.getElementById(\"d45624\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/symbol\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d45624' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve long been interested by &#8230; HTML and Javascript and CSS web applications &#8230; that can &#8230; display Mathematical symbology &#8230; and be capable of &#8230; some sharing capabilities So, in a similar line of thinking to HTML\/Javascript Binomial Multiplication &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/maths-symbology-via-div-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[224,2442,281,342,451,577,652,752,3004,997,3006,3005,1789,1254,1319],"class_list":["post-45624","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-colour","tag-contenteditable","tag-css","tag-div","tag-font","tag-html-entities","tag-javascript","tag-mathematics","tag-maths","tag-programming","tag-subscript","tag-superscript","tag-symbol","tag-text","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45624"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=45624"}],"version-history":[{"count":4,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45624\/revisions"}],"predecessor-version":[{"id":45628,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45624\/revisions\/45628"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=45624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=45624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=45624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}