1

I'm having a problem to represent below physics equation using just HTML tag

enter image description here

So, How to represent above equation into HTML without using mathjax...?? Thanks in advance :)

I have tried this code :

<table>
      <tbody>
        <tr>
          <td rowspan="2">A sin &omega;( t - </td>
          <td style="border-bottom:solid 1px">x</td>
          <td> )</td>
          </tr>
          <tr>            
            <td>v</td>
          </tr>

      </tbody>
</table>

But I don't know how to make it works

Maryadi Poipo
  • 1,418
  • 8
  • 31
  • 54
  • It's unclear if what you can't do is *to represent* the equation or *solve* the equation... – Gusman Jun 02 '16 at 03:58
  • Soorry... I have updated my question, I just want to represent that equation using HTML without mathjax... :) – Maryadi Poipo Jun 02 '16 at 04:02
  • While under fire due to bad browser implementationes (e.g. WebKit), I see MathML as an alternative you could try. Also there is LaTex -> Html converters out there. Not sure though, how the generated Html is working and which libraries they use. – BitTickler Jun 02 '16 at 04:12

3 Answers3

2

Hopefully this might set you in the right direction:

<table>
  <tbody>
    <tr>
      <td>y = A sin &omega;</td>
      <td style="font-size:200%">(</td>
      <td>t -</td>
      <td>
        <table>
          <tr>
            <td style="border-bottom:solid 1px black">x</td>
          </tr>
          <tr>
            <td>v</td>
          </tr>
        </table>
      </td>
      <td style="font-size:200%">)</td>
  </tbody>
</table>

There is a lot you can achieve with nested tables.

Alastair Brown
  • 1,598
  • 8
  • 12
0

MathJax is your best shot.. If you are keen to do this without MathJax this link will help you

Tony Vincent
  • 13,354
  • 7
  • 49
  • 68
0

Thank you so much for Mr. Alastair's answer, I finally can represent it to HTML like this :

<table>
      <tbody>        
          <td>y = A sin &omega;</td>
          <td style="font-size:200%">(</td>
          <td>t -</td>
          <td><table>
             <tr><td style="border-bottom:solid 1px black">x</td></tr>
             <tr><td>v</td></tr>
          </table>
          </td>
          <td style="font-size:200%">)</td>
          <td> = A sin </td>
          <td style="font-size:200%">(</td>
          <td>&omega;t -</td>
          <td>
            <table>
             <tr><td style="border-bottom:solid 1px black">&omega;</td></tr>
             <tr><td>v</td></tr>
            </table>
            </td>
          td> x </td>
         <td style="font-size:200%">)</td>
      </tbody>
</table>

enter image description here

Maryadi Poipo
  • 1,418
  • 8
  • 31
  • 54