Cauchy-Schwarz Inequality Example

Forum for MathML MOD related discussion.
NeoThermic
Site Owner
Site Owner
Posts: 104
Joined: Tue, 19 2004 Oct 23:21:02

Cauchy-Schwarz Inequality Example

Post by NeoThermic » Tue, 06 2005 Sep 20:02:31

View in XHTML Mode

Cauchy-Schwarz Inequality:
[mathml] <mtr> <mtd> </mtd> <mtd> <mstyle> <mrow> <msubsup> <mrow> <mo>(</mo> <munderover> <mo>∑</mo> <mrow> <mi>k</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>n</mi> </munderover> <msubsup> <mi>a</mi> <mi>k</mi> <mrow/> </msubsup> <msubsup> <mi>b</mi> <mi>k</mi> <mrow/> </msubsup> <mo>)</mo> </mrow> <mrow/> <mn>2</mn> </msubsup> <mo>≤</mo> <mrow> <mo>(</mo> <munderover> <mo>∑</mo> <mrow> <mi>k</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>n</mi> </munderover> <msubsup> <mi>a</mi> <mi>k</mi> <mn>2</mn> </msubsup> <mo>)</mo> </mrow> <mrow> <mo>(</mo> <munderover> <mo>∑</mo> <mrow> <mi>k</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>n</mi> </munderover> <msubsup> <mi>b</mi> <mi>k</mi> <mn>2</mn> </msubsup> <mo>)</mo> </mrow> </mrow> </mstyle> </mtd> </mtr> [/mathml]

How it should be renderd:
Image


Status: Partially Fail

NeoThermic

ChasM
Newbie
Newbie
Posts: 4
Joined: Mon, 18 2007 Jun 10:26:50
Location: Arizona Desert

The Cauchy - Schwarz Inequality:

Post by ChasM » Tue, 19 2007 Jun 13:02:48

Old School:
|(a1)(b1) + (a2)(b2) + (a3)(b3) ... + (an)(bn)|
<=
[(a1)^2 + (a2)^2 + (a3)^2 ... (an)^2]^0.5 X [(b1)^2 + (b2)^2 + (b3)^2 ... (bn)^2]^0.5
New School:
[mathml]
<mtr><mtd><mstyle><mrow>
<msubsup>
<mrow>
<mrow>
<mo>(</mo>
<munderover>
<mo>?</mo>
<mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow>
<mi>n</mi>
</munderover>
<msubsup><mi>a</mi><mi>k</mi></msubsup>
<msubsup><mi>b</mi><mi>k</mi></msubsup>
<mo>)</mo>
</mrow>
<mn>2</mn>
</mrow>
</msubsup>
<mo>?</mo>
<mrow>
<mo>(</mo>
<munderover>
<mo>?</mo>
<mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow>
<mi>n</mi>
</munderover>
<msubsup><mi>a</mi><mi>k</mi><mn>2</mn></msubsup>
<mo>)</mo>
</mrow>
<mrow>
<mo>(</mo>
<munderover>
<mo>?</mo>
<mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow>
<mi>n</mi>
</munderover>
<msubsup><mi>b</mi><mi>k</mi><mn>2</mn></msubsup>
<mo>)</mo>
</mrow>
</mrow></mstyle></mtd></mtr>
[/mathml]
Not so sure this is working. My view source of the page has orange / all around in the phpBB HTML code.
View Page Source (with &XHTML=1):
--------------
New School:
<br />
<math
xmlns="http://www.w3.org/1998/Math/MathML">
<mtr><mtd><mstyle><mrow>
------------------

Code: Select all

Not sure about that </math> tag.  Must come from the [/mathml] I've been using
What is '<br />' all about?
Anyway, your MathML_BBCode.txt file  is great!
Last edited by ChasM on Tue, 19 2007 Jun 14:53:07, edited 6 times in total.
(-: Chas.M. :-)

NeoThermic
Site Owner
Site Owner
Posts: 104
Joined: Tue, 19 2004 Oct 23:21:02

Post by NeoThermic » Tue, 19 2007 Jun 14:05:08

Actually, you had included the closing </math>, which is incorrect (the BBCode automatically does it when you do [/math]).

I've edited the post to change that, and now XHTML mode works just fine :)

NeoThermic

Locked