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
Sometimes, great insights come from tinkering. For many inventors, tinkering with older inventions is a time-tested method for gaining a better understanding of how they work and how they could work better. The insights they gain can then be applied in new ways, or perhaps combined with other insights in new ways, leading to new innovations.
Po-Shen Loh, a maths professor at Carnegie Mellon, has been tinkering with quadratic equations. In doing that, he has come up with a simpler proof of the quadratic formula. He explains the more intuitive approach he developed for finding the roots of quadratic equations in the following video:
As the video makes clear, the insights that Loh has put together in a new way have all been around for hundreds, if not thousands, of years. What's new and innovative is how Loh has combined them, which offers the promise of making it easier for students to understand how to solve quadratic equations, which ranks as one of the hardest things students learn in algebra classes.
If you didn't catch the 15 seconds near the end of the video with Loh's instructions for using his method for solving the quadratic equation, here they are:
Alternative Method of Solving Quadratics
- If you find r and s with sum -B and product C, then x² + Bx + C = (x - r)(x - s), and they are all the roots
- Two numbers sum to -B when they are -(B/2) ± u
- Their product is C when (B²/4) - u² = C
- Square root always gives value u
- Thus, -(B/2) ± u work as r and s, and are all the roots
If you're used to seeing quadratic equations of the form: ax² + bx + c = 0, we should note that Loh's method divides each term of this equation by a, where in his formulation, B = b/a and C = c/a. That leaves the x² term by itself, and of course, 0/a = 0, which all but eliminates the need to track the a in the traditional formulation any further.
On the other hand, if you have the equation in that traditional form, and you already know the quadratic formula, you can still use it - it hasn't changed and it still produces valid results. It may even be easier for given values.
If you want to go on a deeper dive into Loh's methods for solving quadratic equations, here's a 40-minute video with lots of examples and discussion of the insights involved.
Labels: math
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.