mmlsharp Work Item Rss Feedhttp://www.codeplex.com/mmlsharp/WorkItem/List.aspxmmlsharp Work Item Rss DescriptionCreated Issue: Extra braces (again)http://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=7578Copying exp(3) from Word results in the program generating exp(3));<br />Need to figure out where the extra bracket comes from.<br />nesterukFri, 12 Sep 2008 08:01:27 GMTCreated Issue: Extra braces (again) 20080912080127ACreated Task: Investigate System.Math's double biashttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=7577It would appear that many System.Math functions are actually tuned to use the double data type. This means that if the user chooses to use float or decimal types, some of the generated code will be invalid. This possibility must be investigated.<br />nesterukFri, 12 Sep 2008 07:36:40 GMTCreated Task: Investigate System.Math's double bias 20080912073640AClosed Issue: Power inlining optionhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6963In some cases, it's better to have x*x rather than Math.Pow(x, 2) - it aids readability and results in mul instructions rather than call ones. We should give the user the option to specify the limit of power inlining and then inline power as multiplication - assuming the power is a positive integer, of course.<br />nesterukWed, 06 Aug 2008 09:10:47 GMTClosed Issue: Power inlining option 20080806091047ACommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: Associated with changeset 15376.celiFri, 25 Jul 2008 23:51:24 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080725115124PCreated Issue: Power inlining optionhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6963In some cases, it's better to have x*x rather than Math.Pow(x, 2) - it aids readability and results in mul instructions rather than call ones. We should give the user the option to specify the limit of power inlining and then inline power as multiplication - assuming the power is a positive integer, of course.<br />nesterukWed, 16 Jul 2008 08:14:46 GMTCreated Issue: Power inlining option 20080716081446ACreated Feature: Subscript variables should have the option to omit the underscorehttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6962Sometimes the underscore in subscript variables is extra. For example, if I have temperature in kelvin, I want to write Tk rather than T_k. There should be an option to have this.<br />nesterukWed, 16 Jul 2008 08:07:00 GMTCreated Feature: Subscript variables should have the option to omit the underscore 20080716080700ACreated Feature: Give user an option to append to existing codehttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6961It might be worth letting the user aggregate their code, e.g. if it pertains to a single function. This means that the build context must be kept because we do not want to re-define existing variables.<br />nesterukWed, 16 Jul 2008 06:50:17 GMTCreated Feature: Give user an option to append to existing code 20080716065017ACreated Feature: If a term in a Mfrac has brackets around it, those brackets need to be removedhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6960Fractions are typically output as ((a) / (b)). The extra brackets are there for safety. However, if a fraction expression is already bracketed, e.g., (a+b) over c, then we get an extra pair of brackets, i.e., (((a+b)) / (c)). These are not necessary. Also, as a refinement, if a fraction has only a single term on top or bottom (i.e., a single <mi> or <mn> element), brackets around it are not necessary either.<br />nesterukWed, 16 Jul 2008 06:33:42 GMTCreated Feature: If a term in a Mfrac has brackets around it, those brackets need to be removed 20080716063342ACommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: Associated with changeset 14798.celiWed, 16 Jul 2008 03:14:38 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080716031438AClosed Task: Reduce obvious fractions to numbershttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6530Sometimes math notation includes things like cos(1/2 (a+b)) which, under normal circumstances, translates to Math.Cos(((1) / (2)) * (a+b)) which is very hard to read. What we want is a way to detect obvious fractions and evaluate them, so that we would get Math.Cos(0.5 * (a+b)) instead.<br />nesterukTue, 15 Jul 2008 09:10:49 GMTClosed Task: Reduce obvious fractions to numbers 20080715091049ACommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: Associated with changeset 14738.nesterukTue, 15 Jul 2008 06:41:17 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080715064117AClosed Issue: Make option to have Delta as part of identifierhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6542Quite often, the Delta letter is attached to variables. At the moment, the parser separates it. It would be nice to have the option to keep it together and make variables, e.g., deltaX.<br />nesterukTue, 15 Jul 2008 06:41:16 GMTClosed Issue: Make option to have Delta as part of identifier 20080715064116ACommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: <P>It seems that the braces still do not work as expected, especially on inverse trig functions.</P>nesterukTue, 15 Jul 2008 06:02:45 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080715060245ACreated Issue: Trig functions should work OK even with single-letter optionhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6948The trig functions should identify themselves correctly even in cases where the single-letter variables option is set.<br />nesterukTue, 15 Jul 2008 06:02:05 GMTCreated Issue: Trig functions should work OK even with single-letter option 20080715060205ACommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: Associated with changeset 14607.celiSun, 13 Jul 2008 18:26:25 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080713062625PCommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: Sorry, meant the final )nesterukThu, 03 Jul 2008 10:30:43 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080703103043ACommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: The expression sin sin x works fine from Word, but when using MathType, it forgets the final (nesterukThu, 03 Jul 2008 10:30:24 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080703103024ACommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: Associated with changeset 13517.celiThu, 03 Jul 2008 03:26:08 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080703032608ACommented Task: Implement Sigma (sum) notationhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6486Need to begin thinking about how to implement sums. Regrettably, Munderover has just a list of Mrow elements, so it's hard to say what's the initial condition and what is the limit.<br />Comments: Have implemented very basic Sigma parsing. Will improve.nesterukWed, 02 Jul 2008 16:42:02 GMTCommented Task: Implement Sigma (sum) notation 20080702044202PCommented Task: Handle built-in functions (e.g., cos) properlyhttp://www.codeplex.com/mmlsharp/WorkItem/View.aspx?WorkItemId=6528When converting the formula for cos α + cos β, MML# outputs the following:<br /><br />double cos, α, β;<br />cos⁡cos*α+cos⁡cos*β=2*cos⁡cos((1) / (2))(α+β)*cos⁡cos((1) / (2))(α-β);<br /><br />There are many problems here - cos appears more than once (extra data), there's a weird '⁡' symbol. Most annoying is that 'cos' is formed as mrow(cos) followed by mo(⁡)mi(cos)mi(α), which is difficult to interpret.<br />Comments: <P>One important addition: we'll need to add the 'exp' function, since many people use it instead of e^, and we'll probably need a separate option in BuildOptions specifically for this.</P>nesterukWed, 02 Jul 2008 16:41:14 GMTCommented Task: Handle built-in functions (e.g., cos) properly 20080702044114P