Medium-Sized Calculations and Organization - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-18T13:26:32Z http://mathoverflow.net/feeds/question/29007 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/29007/medium-sized-calculations-and-organization Medium-Sized Calculations and Organization frustrated 2010-06-21T23:19:14Z 2010-06-24T13:30:48Z <p>This is not a math question as much as a process question. For the first time in my (very short) career, I find myself doing one of those messy calculations, where each 'line' of the calculation can spread over a page or three. Essentially all of the calculation is trivial if I'm willing to write some reasonable inequalities in places, and all of these choices are obvious as they're being made, but I am having a rough time keeping the assumptions on term sign required for the various inequalities and the calculations themselves even close to organized, and the copying errors are a nightmare.</p> <p>Does anybody have any good suggestions on how to stay organized for this sort of trivial-in-theory but messy-in-practice calculation? What do you actually <em>do</em> in these situations? This is especially directed at people in areas like statistical physics or mathematical statistics where these sorts of things show up frequently, and there must be some way of dealing with them. Clever renaming of variables, latexing as you go, good use of Maple...?</p> http://mathoverflow.net/questions/29007/medium-sized-calculations-and-organization/29009#29009 Answer by Anon for Medium-Sized Calculations and Organization Anon 2010-06-21T23:31:33Z 2010-06-21T23:31:33Z <p>I think Mathematica or a suitable CAS is the way to go to deal with this issue. </p> http://mathoverflow.net/questions/29007/medium-sized-calculations-and-organization/29013#29013 Answer by jeremy for Medium-Sized Calculations and Organization jeremy 2010-06-21T23:50:56Z 2010-06-21T23:50:56Z <p>Mathematica can be very useful for this kind of thing. If you're good enough at it you can force it to go through calculations pretty much step-by-step if you need it too. You can also export its output to LaTeX, which is very nice and saved me a lot of work on various physics homeworks! </p> <p>For more complicated things, you can often still make mathematica do it, but it's often better (and can be more insightful) to try to restructure things into smaller blocks that are easier to handle. You can do this through renaming things, or lemmas, or whatever else. In physics, physical intuition about things like conserved or almost conserved quantities can be really useful to use here, since they can tell you about things you might otherwise miss.</p> http://mathoverflow.net/questions/29007/medium-sized-calculations-and-organization/29375#29375 Answer by madhadron for Medium-Sized Calculations and Organization madhadron 2010-06-24T13:30:48Z 2010-06-24T13:30:48Z <p>I agree with the others that a CAS is probably your best bet, but failing that, the folks who do really sprawling but straightforwards calculations are the theoretical computer scientists. Most of them have adopted a proof notation due to Dijkstra of the form</p> <p>expression1</p> <p>= { comment about why equality holds }</p> <p>expression2</p> <p>= { comment... }</p> <p>...</p> <p>The classic book on this is Dijkstra's "Predicate Calculus and Program Semantics," which is lovely but tends to drive a lot of logicians batty. You can also find nice examples of its use in the small scale in papers like <a href="http://www.cs.nott.ac.uk/~gmh/fold.pdf" rel="nofollow">A tutorial on the universality and expressiveness of fold</a></p>