to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
Previously on Political Calculations, we featured our analysis of the trends over a series of 12-month rolling periods to track the rate of change in the balance of US-China trade, covering the period from January 1993 through January 2007. Our chart below shows the actual data and our generated trend lines:
The trend lines we generated are 6th-degree polynomials, which provided the best fit in going pretty much right down the middle of all the actual points of data. We've modified our original chart to show each trend line's corresponding polynomial equation:
We didn't think about this at the time, but 6th-degree polynomials like these underlie the climate change models behind the scientific consensus of global warming. We can therefore use our generated 6th-degree polynomials to extrapolate the future trend of trade between the US and China! Our next chart peeks out just one year into the future:
Pretty cool, huh? In the chart above, we see that the extrapolated rate of growth of U.S. exports to China will continue to grow, while the rate of growth of China's exports to the U.S. will bottom out and begin rising again. Let's next go two years out in our study of the future of US-China trade climatology:
Now isn't that something! After being relatively depressed, the growth rate of China's exports to the U.S. begins coming on strong, but still not growing as fast as the U.S.' exports to China. Let's next leap three years ahead in the trade-time continuum:
Talk about coming on strong - China's extrapolated rate of growth of its exports to the U.S. will be leaving the U.S. in the dust in the period from 2009 to 2010, as the rate of growth of U.S. exports to China stalls out. Let's next look five years ahead:
The five-year extrapolated forecast reveals that the rate of growth of U.S. exports to China is not just being left in the dust by the rate of growth of China's exports to the U.S., but being stomped on it too as the U.S. trade deficit takes a nasty turn to the downside. How bad can it get? Let's go out one more year:
By January 2013, even the idea of a trade balance between the U.S. and China is basically all over. The rate of growth of U.S. exports to China will have totally collapsed, while the growth rate of China's exports to the U.S. will be off the scale. The clear consensus of leading trade climatologists and scientists who use this sound scientific method is that the future of US-China trade is bleak and cannot be changed. Unless that is, President Lou Dobbs takes drastic action to impose severe quotas on China's exports to the U.S., before all jobs are outsourced from the U.S. to China for the sake of fulfilling U.S. demand for China's exports.
Only by doing so will the U.S. avoid destruction in the coming global trade superstorm.
Labels: satire
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.