W3C home > Mailing lists > Public > www-math@w3.org > November 2009

RE: How do you divide?

From: Daniel Marquès Solé <dani@wiris.com>
Date: Fri, 13 Nov 2009 12:27:26 +0100
To: "neils@dessci.com" <neils@dessci.com>, David Carlisle <davidc@nag.co.uk>
CC: "smwatt@gmail.com" <smwatt@gmail.com>, "www-math@w3.org" <www-math@w3.org>
Message-ID: <B3A97FE6657B3941A2BE77937D5AF3CA02A62AC494@mbx03.exchange.lan>
Hello David and Neil,

Thank you for your information. I should have checked the mathml specification first.

The following issue maybe is not very important, but as a MathML editor provider to companies, we know that customers are fussy. In order to highlight the residue, we usually wrap it with some kind of mark. See attached file. Is that feasible in MathML?

Regards,

De: Neil Soiffer [mailto:neil.soiffer@gmail.com]
Enviado el: jueves, 12 de noviembre de 2009 16:40
Para: David Carlisle
CC: Daniel Marquès Solé; smwatt@gmail.com; www-math@w3.org
Asunto: Re: How do you divide?

Yes, David is correct, but here's the correct markup (it's even simpler):

<mlongdiv longdivstyle="shortstackedrightright">
 <mn> 435,3</mn>
 <mn> 3 </mn>
 <mn> 1306</mn>
 <msgroup position="1" shift="-1">
     <mn> 10</mn>
     <mn> 16</mn>
     <msrow position='-1'> <mn> 1,0</mn> </msrow>
     <mn> 1</mn>
 </msgroup>
</mlongdiv>


    Neil
On Thu, Nov 12, 2009 at 5:36 AM, David Carlisle <davidc@nag.co.uk<mailto:davidc@nag.co.uk>> wrote:

>  The whole list is automatically doubled if you omit the step of
> writing the "auxiliary products". For example, in Spain we do not use to
> write them. See attached image. So maybe it should be a way to specify that.

Actually the mathml doesn't have any special markup for the stack of
calculation so you can I think just use shortstackedrightright
but omit the rows of the mlongdiv with mn corresponding to the products
and the mlines to get the layout that you show.

so something like

<mlongdiv longdivstyle="shortstackedrightright">
 <mn> 435,3</mn>
 <mn> 3 </mn>
 <mn> 1306</mn>
 <msgroup position="2" shift="-1">
   <msgroup>
     <mn> 10</mn>
   </msgroup>
   <msgroup>
     <mn> 16</mn>
     <mn> 1,0</mn>
   </msgroup>
   <msgroup position='-1'>
     <mn> 1</mn>
   </msgroup>
 </msgroup>
</mlongdiv>


(untested as I haven't got an implementation of this yet)

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________




spain2.png
(image/png attachment: spain2.png)

Received on Friday, 13 November 2009 11:28:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:13:06 GMT