Monday, October 31, 2011

More Math


First of all, I found the excellent resource for doing more math. Please visit the page Authors did the best possible job to represent math in HTML. So, I use their experience to construct more formulas in HTML.

Here's a HTML code for first example (see pic):
<table border="0" cellpadding="0" cellspacing="0">
<tr align="center" style="line-height: 1em">
<td>&#921;<sub>k</sub>(t)= </td>
<td><small> <i>t</i></small><br>
&#8992;<br>&#8993;<br>
<small><i>0</i> </small></td>
<td><i>&#955;<sub>k</sub>(s)S(s)</i><small> </small>d<i>s</i></td>
</tr>
</table>

Here's a HTML code for second example (see pic):
<table cellpadding="0" cellsapcing="0" border="0">
<tr align="center">
<td><br />&#206;<sub>k</sub>(t)= </td>
<td><br />
<big><big>&&8721;</big></big><br>
<small><i>j:t,&#8804;t</i></small></td>
<td valign="top">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span style="vertical-align:-150%;">^ ^</span></td>
</tr>
<tr>
<td><i>&#955;<sub>k</sub>(t<sub>j</sub>)S(t<sub>j-1</sub>)</i></td>
</tr>
</table>
</td>
</tr>
</table>

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>

Wednesday, October 5, 2011

New Line (VB.NET)

How to embedd a new line into body of the message sent from the aspx-form? I tried several combinations including
"<br>", "\n" and "\r\n". It does not work in ASPX-environment. Searching the Internet, I found interesting solution
which works for me.

message.Body = "This message was sent by " + name
message.Body += Environment.NewLine + "from email address " + email
message.Body += Environment.NewLine + "Organization: " + org
message.Body += Environment.NewLine + "Phone: " + phone
message.Body += Environment.NewLine + "Fax: " + fax
message.Body += Environment.NewLine + "Request " + data