0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MathML?「ページのソースの表示」から,タグを削除したい。テスト(1)sin,cos

Last updated at Posted at 2023-07-28

いい方法ないですか?
アドバイス頂けると幸いです

ChatGPTでテスト(できませんでした。)

以下のMathMLをテキスト表示してほしい
以下のテキストからタグを削除してほしい

オリジナル

テスト (awk版)Ver0.1

(1)(2)目的。ゴールです。

(cos⁡θ^2+sinθ^2)^3-(cosθ^6+sin⁡θ^6)
(2(cosθ^6+sinθ^6)+1)/3(cosθ^4+sinθ^4)

awkの結果

(1) (cos2⁡θ+sin2⁡θ)3-(cos6⁡θ+sin6⁡θ)
(2) 2(cos6⁡θ+sin6⁡θ)+13(cos4⁡θ+sin4⁡θ)

awkの結果より
??????

2⁡θ → θ^2
他

以下より 経営経済学部【1】

Awk用のInput 「ページのソースの表示」
(1)

<p class="s2level">(1) <math>
<mrow><msup><mrow><mo stretchy="false">(</mo>
<msup><mi>cos</mi><mn>2</mn></msup><mo>&af;</mo>
<mi>&theta;</mi><mo>+</mo><msup><mi>sin</mi>
<mn>2</mn></msup><mo>&af;</mo><mi>&theta;</mi>
<mo stretchy="false">)</mo></mrow><mn>3</mn>
</msup><mo>-</mo><mo stretchy="false">(</mo>
<msup><mi>cos</mi><mn>6</mn></msup><mo>&af;</mo>
<mi>&theta;</mi><mo>+</mo><msup><mi>sin</mi>
<mn>6</mn></msup><mo>&af;</mo><mi>&theta;</mi>
<mo stretchy="false">)</mo></mrow></math></p>

(2)

<p class="s2level">(2) <math>
<mstyle displaystyle="true"><mfrac><mrow><mn>2</mn>
<mo>&it;</mo><mo stretchy="false">(</mo><msup>
<mi>cos</mi><mn>6</mn></msup><mo>&af;</mo>
<mi>&theta;</mi><mo>+</mo><msup><mi>sin</mi>
<mn>6</mn></msup><mo>&af;</mo><mi>&theta;</mi>
<mo stretchy="false">)</mo><mo>+</mo><mn>1</mn>
</mrow><mrow><mn>3</mn><mo>&it;</mo>
<mo stretchy="false">(</mo><msup><mi>cos</mi><mn>4</mn>
</msup><mo>&af;</mo><mi>&theta;</mi><mo>+</mo>
<msup><mi>sin</mi><mn>4</mn></msup><mo>&af;</mo>
<mi>&theta;</mi><mo stretchy="false">)</mo></mrow>
</mfrac></mstyle></math>
</p>

問題文の解答

参考

だそうです。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?