Friday, October 28, 2011

Square Root on-line


Math formulas on-line...

I never did before... I had never thought I will have to code math formulas. But I did. It's was first time for me. Instead of images I used an art
of HTML to code some math formulas for scientific documentation I'm doing now for online presentation. First of all, I found some helpful pages for my
assignment. Here are some of them:

  • http://www.visibone.com/htmlref/char/ceralpha.htm

  • http://webdesign.about.com/od/localization/l/blhtmlcodes-math.htm

  • http://www.scientificpsychic.com/etc/square-root.html

  • http://www.alanwood.net/demos/symbol.html

Finally, I can reveal some results for my coding.
1.HTML-code for the first sample:

<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>d = </td>
<td>
<table cellspacing="0" cellpadding="0" border="0" bordercolor="red">
<tr>
<td style="border-bottom:2px solid #000000;">100 (<span style="text-decoration:overline"> x</span><sub>treatment</sub> − <span style="text-decoration:overline"> x</span><sub>control</sub>)</td>
</tr>
<tr>
<td align="center" valign="top">
<table cellpadding="0" cellspacing="0" align="left" border="0">
<tr>
<td><span style="font-size: large; vertical-align:-25%;">&#8730;</span>
<span style="text-decoration:overline">
&#189; (s<span style="font-size: 10px;vertical-align:+25%;">2</span><sub>treatment</sub> + s<span style="font-size: 10px;vertical-align:+25%;">2</span><sub>control</sub>)
</span></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

2.HTML-code for second sample:

<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>d = </td>
<td>
<table cellspacing="0" cellpadding="0" border="0" bordercolor="red">
<tr>
<td style="border-bottom:2px solid #000000;">100 (p<sub>treatment</sub> - p<sub>control</sub>)</td>
</tr>
<tr>
<td align="center" valign="top">
<table cellpadding="0" cellspacing="0" align="left" border="0">
<tr>
<td><span style="font-size: large; vertical-align:-25%;">&#8730;</span>
<span style="text-decoration:overline">
&#189; (p<sub>t</sub>(1-p<sub>t</sub>)+p<sub>c</sub>(1-p<sub>c</sub>))
   </span></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

No comments:

Post a Comment