LoginSignup
3
2

More than 5 years have passed since last update.

連分数展開をMathMLで描いてみた

Posted at

連分数展開、MathMLで描いてみました。FireFoxのFireMathというプラグインを使って。
FireFoxなら表示可能。ChromeもMathML対応しているはずなんだが、表示できない...ハテ?
黄金数(Φ)、√2、自然対数(e)、円周率(π)の連分数展開が添付画像。
renbunsuu.jpg

その一部のソースコードが以下:

    <mtr>
      <mtd>
        <msqrt>
          <mn>2</mn>
        </msqrt>
        <mo>=</mo>
        <mn>1</mn>
        <mo>+</mo>
        <mfrac>
          <mrow>
            <mn>1</mn>
          </mrow>
          <mrow>
            <mn>2</mn>
            <mo>+</mo>
            <mfrac>
              <mrow>
                <mn>1</mn>
              </mrow>
              <mrow>
                <mn>2</mn>
                <mo>+</mo>
                <mfrac>
                  <mrow>
                    <mn>1</mn>
                  </mrow>
                  <mrow>
                    <mn>2</mn>
                    <mo>+</mo>
                    <mfrac>
                      <mrow>
                        <mn>1</mn>
                      </mrow>
                      <mrow>
                        <mo>&middot;&middot;&middot;</mo>
                      </mrow>
                    </mfrac>
                  </mrow>
                </mfrac>
              </mrow>
            </mfrac>
          </mrow>
        </mfrac>
      </mtd>
    </mtr>
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2