[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
NeoThermic.com • View topic - Cauchy-Schwarz Inequality Example

Cauchy-Schwarz Inequality Example

Forum for MathML MOD related discussion.

Cauchy-Schwarz Inequality Example

Postby 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
NeoThermic
Site Owner
Site Owner
 
Posts: 104
Joined: Tue, 19 2004 Oct 23:21:02

The Cauchy - Schwarz Inequality:

Postby 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. :-)
ChasM
Newbie
Newbie
 
Posts: 4
Joined: Mon, 18 2007 Jun 10:26:50
Location: Arizona Desert

Postby 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
NeoThermic
Site Owner
Site Owner
 
Posts: 104
Joined: Tue, 19 2004 Oct 23:21:02


Return to MathML Modification

Who is online

Users browsing this forum: No registered users and 1 guest

cron