tag:blogger.com,1999:blog-11577181864563356042024-02-15T01:02:49.233-08:00Neutral DriftsAnonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.comBlogger107125tag:blogger.com,1999:blog-1157718186456335604.post-59989488870837243582017-04-10T09:10:00.000-07:002017-04-10T09:10:03.350-07:00Math and MusicI've had more math & music on the mind lately, partly because of some student projects I am advising. I'm interested in the possibilities for configurable music instruments, among other things. So far I have begun to implement some ideas here:<br />
<br />
<a href="http://www.d.umn.edu/~mhampton/vmachine1.html">http://www.d.umn.edu/~mhampton/vmachine1.html</a><br />
<br />
This is likely to change over time, currently its just a work in progress.Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com2tag:blogger.com,1999:blog-1157718186456335604.post-68914245629609284222017-01-26T12:25:00.002-08:002017-01-26T12:27:00.350-08:00Seems an appropriate time to share some great educational videos. The federal department of education might be about to embrace the Dark Ages, but you don't have to!<br />
<br />
If you know of others of this quality please comment!<br />
<br />
Great for middle schoolers, science, English, history and philosophy:<br />
<a href="https://www.youtube.com/user/crashcourse/playlists">https://www.youtube.com/user/crashcourse/playlists</a><br />
<br />
Biology, again good for middle schoolers:<br />
<a href="https://www.youtube.com/user/AmoebaSisters">https://www.youtube.com/user/AmoebaSisters</a><br />
<br />
Math and music, all ages (maybe over 8 or so):<br />
<a href="https://www.youtube.com/user/Vihart">https://www.youtube.com/user/Vihart</a><br />
<br />
Math (high school+ ?)<br />
<a href="https://www.youtube.com/user/numberphile">https://www.youtube.com/user/numberphile</a><br />
<br />
Chemistry, all ages:<br />
<a href="http://www.periodicvideos.com/">http://www.periodicvideos.com/</a><br />
<br />
Science and engineering:<br />
<a href="https://www.youtube.com/user/1veritasium/videos">https://www.youtube.com/user/1veritasium/videos</a><br />
<br />
Math, this one is pretty deep but great:<br />
<a href="http://www.3blue1brown.com/">http://www.3blue1brown.com/</a>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com1tag:blogger.com,1999:blog-1157718186456335604.post-29212740190969118372016-12-07T08:52:00.002-08:002016-12-07T09:03:52.300-08:00The Trace-Determinant PlaneThe essential behavior of a planar linear dynamical system, x' = Ax where A is a 2 by 2 matrix, can be characterized by the trace and determinant of the matrix A. Below is an animation of a collection of such systems when the matrix is rotated through all of the differing possibilities.
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGhbVGqQ_h0OoJkmCDYEeduti-CrR5ATfwBzPLLF3brz9zpJV6Wm-0xq8Ea_uBvZ6KYoHgQjUH25WyMWtbn-t4PtG9t2f0C61ia9tLsdTiBFxRyjEEBsNfnLGWCt9pe-9piwsZJsvSkU0W/s1600/TraceDetTour_opt1.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGhbVGqQ_h0OoJkmCDYEeduti-CrR5ATfwBzPLLF3brz9zpJV6Wm-0xq8Ea_uBvZ6KYoHgQjUH25WyMWtbn-t4PtG9t2f0C61ia9tLsdTiBFxRyjEEBsNfnLGWCt9pe-9piwsZJsvSkU0W/s400/TraceDetTour_opt1.gif" width="400" /></a></div>
Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-7928800854917839922016-10-24T13:02:00.002-07:002016-10-24T13:05:09.716-07:00A happy halloween tridecahexaflexagonI've been thinking a lot about hexaflexagons lately; here is a 13-faced hexaflexagon pattern:
<a href="http://d.umn.edu/~mhampton/hex13h.pdf">Double-sided pattern</a>
To construct it, you need to fold matching triangles together when they are adjacent. If you haven't made a more basic one before, I recommend making a hexahexaflexagon after watching some Vi Hart videos:
<ul>
<li>https://www.youtube.com/watch?v=VIVIegSt81k</li>
<li>https://www.youtube.com/watch?v=paQ10POrZh8</li>
<li>https://www.youtube.com/watch?v=AmN0YyaTD60</li>
<li>https://www.youtube.com/watch?v=GTwrVAbV56o</li>
</ul>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfsUbDBs5oLUYXmtf9uAVJIOcQN-Pegeim8v-zAuUUyZ0Hvq_67km6iYxhQVjuy0ZK1p1kv0pZqASDm-4rxQLr9_zjuuJfhYI2UphOi9iZvfYURDlZu3NXKXSpCkrJfG4DvRUNWwiCrivm/s1600/hex13h.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfsUbDBs5oLUYXmtf9uAVJIOcQN-Pegeim8v-zAuUUyZ0Hvq_67km6iYxhQVjuy0ZK1p1kv0pZqASDm-4rxQLr9_zjuuJfhYI2UphOi9iZvfYURDlZu3NXKXSpCkrJfG4DvRUNWwiCrivm/s400/hex13h.png" width="296" height="400" /></a></div>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-56534516884813875642013-06-08T13:17:00.000-07:002013-06-08T13:20:37.871-07:00Triangle problemThe site <a href="http://fivetriangles.blogspot.com/">Five Triangles</a> has lots of good mathematical problems for middle schoolers. I really liked a recent one:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-qfaLYTxL7yc/Ua9W-fd7q6I/AAAAAAAAAmA/x3X3Flo8Fks/s1600/fraternal.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="126" src="http://3.bp.blogspot.com/-qfaLYTxL7yc/Ua9W-fd7q6I/AAAAAAAAAmA/x3X3Flo8Fks/s320/fraternal.png" width="320" /></a></div>
<br />
I wanted to see what configurations with this property looked like, so I made this brief animation:<br>
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdNQ97iUx6pAqxwp53l2rH1MWitjNkqX9v9cKncPCg1DoI2EflE3Xz7aBrWR9QGbDh26uIzmVqcUfQZ80qVBg8hKW5o1vS27-mXeSSuIZQaY2eiLCmb82HhK0FLKTOC49FAtdXzp3vdewU/s1600/ttri_1.gif" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdNQ97iUx6pAqxwp53l2rH1MWitjNkqX9v9cKncPCg1DoI2EflE3Xz7aBrWR9QGbDh26uIzmVqcUfQZ80qVBg8hKW5o1vS27-mXeSSuIZQaY2eiLCmb82HhK0FLKTOC49FAtdXzp3vdewU/s320/ttri_1.gif" /></a>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com1tag:blogger.com,1999:blog-1157718186456335604.post-61603507307552392972013-04-26T17:01:00.000-07:002013-04-26T17:04:40.643-07:00Braid groups for nine year oldsHomeschooling my daughter in math has been a very interesting experience so far. As a mathematician, I try to re-imagine the topics in our curriculum with the goal of introducing deeper concepts as soon as I can. <BR><BR>
Recently thanks to Allen Knutson, on Google+, I found out about a <a href="https://www.youtube.com/watch?v=u3Gt578803I&list=PLyxHTRWELFBoijzAvXTDOLIF5yfkwN4wZ">great video series</a> by Ester Dalvit on braids and knots. My daughter has made it though about half of it, which already covers quite a lot of mathematical concepts (especially from a nine-year old's perspective). So I am trying to use it as a springboard to do some algebraic concepts that most K-12 students never see, like noncommutative groups. <BR><BR>
So far I've just made a <a href="http://www.d.umn.edu/~mhampton/BraidWorksheet.pdf">worksheet on braids</a> along with a <a href="http://www.d.umn.edu/~mhampton/BraidReference.pdf">reference sheet</a>, which went over pretty well today. I'm not sure how much farther I should push it now.<BR><BR>
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Frise.jpg/300px-Frise.jpg" imageanchor="1" ><img border="0" src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Frise.jpg/300px-Frise.jpg" /></a>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-67427218090991407252013-04-05T09:19:00.000-07:002013-04-05T09:19:36.301-07:00MOOCs - the hype and the pleasant realityMOOCs - massive online open courses - are all the rage right now, and many people are wondering what their eventual impact will be. For example, an <a href="http://www.nytimes.com/2013/04/05/opinion/Brooks-The-Practical-University.html?smid=go-share">opinon piece</a> in the New York Times quotes someone as saying that students might be told to "take the following online courses over the summer or over a certain
period, and then, when you’re done, you will come to campus and that’s
when our job will begin.”<br />
<br />
I don't think that's going to happen to a great extent. Before explaining why, I'd like to make it clear that I am a big fan of MOOCs. I've signed up for many courses on Coursera, EdX, and Udacity over the last two years, and learned a lot. I use some of them to supplement my homeschooling, and I plan on incorporating some of their material into courses I teach. I wish there had been MOOCs when I was in middle school and high school - I'm certain I would have eaten them up.<br />
<br />
But the current hype can be pretty unrealistic. Its interesting to compare the expectations of MOOCs to a very similar phenomenon of 100 years ago, the correspondence course. Here's the beginning of an article in the journal Science (volume 24 from the year 1906):<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi__yUjLmJDq19RGfoX7IIKwKaS7kBO_PYb4sx2j8HBJoWQF0xTfx65fBp3cMIfHQv7NXN2Guth3zi9CrFZeb6fF8Udp5aIGFNCChWYU6UuwLJb1z3e1nIYfmz6zwiAB1Sh8eiFGFhhswwd/s1600/Cor1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="246" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi__yUjLmJDq19RGfoX7IIKwKaS7kBO_PYb4sx2j8HBJoWQF0xTfx65fBp3cMIfHQv7NXN2Guth3zi9CrFZeb6fF8Udp5aIGFNCChWYU6UuwLJb1z3e1nIYfmz6zwiAB1Sh8eiFGFhhswwd/s400/Cor1.png" width="400" /></a></div>
There was tremendous interest in the general population in correspondence courses. Here are some enrollment numbers for one group of correspondence schools (I'm sure there were many others in addition):<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTwBgW3cR_O6XY79EwgKCWvD-MsvV6ypD80KcQ9YZ3rpyA4qnC5SSFAQI-wVDMl6ConX8-PUrFX2J1gXk18n4tG-FZ_v1dzcuVOP9_W0QI2ukEwYw7E1Frojk0zW7T83KOPLelWmGvXW5T/s1600/Cor2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="398" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTwBgW3cR_O6XY79EwgKCWvD-MsvV6ypD80KcQ9YZ3rpyA4qnC5SSFAQI-wVDMl6ConX8-PUrFX2J1gXk18n4tG-FZ_v1dzcuVOP9_W0QI2ukEwYw7E1Frojk0zW7T83KOPLelWmGvXW5T/s400/Cor2.png" width="400" /></a></div>
<br />
Consider that the population of the United States was about a quarter of what it is now, so this is comparable to enrolling a total of almost 4 million people today. Its not hard to imagine that people thought this would radically change the nature of higher education.<br />
<br />
There are many things that make colleges and universities attractive and useful and important to students that are not easily captured by a correspondence course or MOOC. To be fair, the social and collaborative aspects of MOOCs make them far superior to a correspondence course. But even for the limited goal of learning a well-defined list of concepts and skills, I think the shared commitment of physically showing up to class is psychologically crucial for most people and it will continue to be so. Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-1121520977443507312013-04-02T13:41:00.003-07:002013-04-02T13:42:20.058-07:00More math worksheets for the adventurousThese are still a work in progress, but <a href="http://www.d.umn.edu/%7Emhampton/HamptonWorksheets124.pdf">here is another collection of worksheets</a> I made for my daughter as part of her homeschooling in mathematics.<br />
<br />
These include the ones <a href="http://neutraldrifts.blogspot.com/2013/02/third-grade-math-worksheets.html">I posted about previously</a>.<br />
<br />
I am planning on polishing up the complete collection once I stop making them for the year, sometime in June. One thing that is missing is acknowledgements - I have taken many ideas from many sources, such as <a href="http://fawnnguyen.com/">Fawn Nguyen</a>, <a href="http://blog.mrmeyer.com/">Dan Meyer</a>, <a href="http://function-of-time.blogspot.com/">Kate Nowak</a>, <a href="http://www.amazon.com/Math-Wonders-Inspire-Teachers-Students/dp/0871207753/">Alfred Posamentier</a>, and many others including state math tests and standards from around the country. Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-45998070704642640572013-03-30T07:36:00.001-07:002013-04-04T10:32:06.443-07:00Top mathematics videosThese are all worth watching. The first two are especially good for kids:<br />
<br />
Vi Hart has many, many awesome math videos. <a href="http://www.youtube.com/watch?v=Am-a5x9DGjg&list=UUOGeU-1Fig3rrDjhm9Zs_wg&index=30">Here's just one to get you started</a>. OK, <a href="http://www.youtube.com/watch?v=DK5Z709J2eo">I can't resist linking to this one too</a>. Very hard to pick a favorite.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoYtofc86KySZe31fC3-deBOjnpnEZscq6KjR7MbrwWPJ_v8in9UcuGncLqVwMVibixvjhyphenhyphen4RhxCcU_EQ1stddaUcYRITkwKXGaJ2PIA2oiUxAaqalxVRFVLH4fX1FXRHEeUdeLbxPLsKG/s1600/Screen+shot+2013-04-04+at+12.19.51+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="184" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoYtofc86KySZe31fC3-deBOjnpnEZscq6KjR7MbrwWPJ_v8in9UcuGncLqVwMVibixvjhyphenhyphen4RhxCcU_EQ1stddaUcYRITkwKXGaJ2PIA2oiUxAaqalxVRFVLH4fX1FXRHEeUdeLbxPLsKG/s320/Screen+shot+2013-04-04+at+12.19.51+PM.png" width="320" /></a></div>
<br />
<br />
<a href="http://www.youtube.com/watch?v=YRD4gb0p5RM">Donald Duck in Mathmagicland</a>. This is from 1959, so parts of it are a bit dated but it had a significant influence on me when I saw it sixth grade. I know many other friends and family who remember it fondly as well - a real classic.<br />
<br />
A video from 1988 from Caltech, very well done: <a href="http://archive.org/details/theorem_of_pythagoras">http://archive.org/details/theorem_of_pythagoras.</a> <br />
<br />
<a href="http://www.youtube.com/watch?v=JX3VmDgiFnY">Möbius Transformations</a>. Short but very well done.<br />
<br />
Niles Johnson's <a href="http://www.youtube.com/watch?v=AKotMPGFJYk">Hopf Fibration</a> video. Hopefully Niles will continue making more videos like this.<br />
<br />
Not Knot <a href="http://www.youtube.com/watch?v=AGLPbSMxSUM">part I</a> and <a href="http://www.youtube.com/watch?v=MKwAS5omW_w">part II</a>. This is a window onto some really advanced mathematics, but I think its worth showing to just about everyone. Perhaps more than any other video I know, it visually conveys one of the many amazing structures of modern mathematics. Its a good antidote to anyone who thinks that math=arithmetic.<br />
<br />
<a href="http://www.dimensions-math.org/">Dimensions</a> is a 9-part series of short movies that have excellent animations. Of course some episodes are better than others.<br />
<br />
There are some other series which are more educationally oriented (and generally less visually stunning) but worth checking out: the <a href="https://www.youtube.com/user/mathalicious">Mathalicious</a> project, the <a href="http://ed.ted.com/lessons?category_id=271">TED-Ed math section</a>, and the <a href="http://www.youtube.com/user/numberphile">Numberphile</a> youtube series.<br />
<br />
Finally, two movies which are good are "Between the Folds" (on origami and mathematics), and the BBC Horizons documentary "<a href="http://www.youtube.com/watch?v=7FnXgprKgSE">The Proof</a>" which is about Wiles' solution to Fermat's Last Theorem. These are both about an hour, so they require a longer attention span than the ones listed above.<br />
<br />
If you have any favorites which aren't listed here, let me know. <br />
<br />Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com3tag:blogger.com,1999:blog-1157718186456335604.post-81439235951763733332013-03-06T17:29:00.001-08:002013-03-06T17:29:41.162-08:00The Singular Value Decomposition and Congressional VotingI am teaching a class about the SVD (Singular Value Decomposition) of a matrix this week. I was inspired by a nice article of Carla Martin and Mason Porter, "<a href="http://arxiv.org/abs/1103.2338">The extraordinary SVD</a>", to compute the SVD of the voting record of the 112th Congress (House of Representatives) to show to my class.<br />
<br />
If you're interested in how this is done, here is the <a href="http://www.d.umn.edu/%7Emhampton/SVD%20congress%202012.sws">Sage code I used</a> as a Sage worksheet. <br />
<br />
Here is the projection onto the first two singular vectors:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPkE0ecRPfe0737YsrIDhRyflxzi9sYpyWn-zwjlp6DnlPjMxInANYIRxmlKKna8YFTC3Kv4vUkmP9E6rBroFmVdIj61qj5JEnVAiYmb3uTMTV8OqnHAV07ywLZuXbXlH4iZ2gG7kPNCu4/s1600/SVD_112th_Congress.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="471" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPkE0ecRPfe0737YsrIDhRyflxzi9sYpyWn-zwjlp6DnlPjMxInANYIRxmlKKna8YFTC3Kv4vUkmP9E6rBroFmVdIj61qj5JEnVAiYmb3uTMTV8OqnHAV07ywLZuXbXlH4iZ2gG7kPNCu4/s640/SVD_112th_Congress.png" width="640" /></a></div>
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com3tag:blogger.com,1999:blog-1157718186456335604.post-82871648839565744432013-02-05T08:50:00.001-08:002013-02-05T08:50:59.901-08:00Third grade math worksheetsThese are some (about 76 I think) worksheets that I have used in homeschooling my daughter this year:<br />
<br />
<a href="http://www.d.umn.edu/%7Emhampton/ThirdGradeWorksheets_1_to_76.pdf">http://www.d.umn.edu/~mhampton/ThirdGradeWorksheets_1_to_76.pdf</a><br />
<br />
She was 8 and 9 during this time. Some of them were too hard, and she required quite a bit of assistance. Also, since she is learning German, there are a handful of questions that use German number names. <br />
<br />
They would require significant editing to be appropriate to a broad audience, but I am proud of some of them. Its hard to find good workbooks that include more than the bare minimum material that kids in the US are over-tested on.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi90RZ830j4zanusbWO5f6UQH5LV9boJaHTBTKtHbKGLgy4SrFyjR6t1aNwnm7YbQf47U1LaMwjA5B1s5fsHxWYWDKxyFBXCJA9VKxkLT5npHCxyicWInw_WNWlpwslSJUI4CO9NDkmJ7z/s1600/octo_tri.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi90RZ830j4zanusbWO5f6UQH5LV9boJaHTBTKtHbKGLgy4SrFyjR6t1aNwnm7YbQf47U1LaMwjA5B1s5fsHxWYWDKxyFBXCJA9VKxkLT5npHCxyicWInw_WNWlpwslSJUI4CO9NDkmJ7z/s320/octo_tri.png" width="320" /></a></div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com5tag:blogger.com,1999:blog-1157718186456335604.post-25958522873703677692013-01-28T15:50:00.004-08:002013-01-28T15:53:07.609-08:00Motion sensitive LED beltRecently I built a motion sensitive LED belt for a dance performance by my wife. In case it is of interest to others, this post will briefly describe how I made it.<br />
<br />
I started with the LED belt kit by Adafruit:<br />
<a href="http://www.adafruit.com/products/332">http://www.adafruit.com/products/332</a>,<br />
<br />
for which they supply an excellent tutorial:<br />
<a href="http://learn.adafruit.com/digital-led-belt%20">learn.adafruit.com/digital-led-belt </a><br />
<br />
To this I added a 3-axis accelerometer, the ADXL335 from Adafruit:<br />
<a href="http://www.adafruit.com/products/163">http://www.adafruit.com/products/163</a><br />
<br />
Adding the accelerometer is very simple. The 3V in and ground are soldered with short wires to the corresponding pins on the Atmega32u4 breakout board, and wires from the X,Y, and Z outputs can be soldered to the F4, F5, and F6 pins (see <a href="http://github.com/adafruit/Atmega32u4-Breakout-Board">http://github.com/adafruit/Atmega32u4-Breakout-Board</a> for more details or <a href="http://www.adafruit.com/datasheets/af_at32u4bb_pinout.pdf">http://www.adafruit.com/datasheets/af_at32u4bb_pinout.pdf</a> for a good diagram). <br />
<br />
After a lot of tweaking, here is the code we actually used for the performance:<br />
<a href="http://www.d.umn.edu/%7Emhampton/LED_belt_accelerometer.pde">http://www.d.umn.edu/~mhampton/LED_belt_accelerometer.pde</a><br />
<br />
Here is a short video (with a special guest star - our dog - in the background):<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dyG-Q9le6UixqvqJ2bmwdJnpxMxWTG0hfV0k2z2ZQ3qNgIq263ii-BD6Zo7wQk_w82gAqfq2oWGucuRgkF7aw' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div>
<br />
<br />
Sorry about the graininess - hopefully I can get a somewhat better version soon. I'm also hoping for good closeup pictures of the soldered connections.Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-59428273140188426592012-11-07T14:20:00.001-08:002013-01-27T15:14:41.337-08:00Tuition myths
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEUz5aPCSwhkuTYCiRluFnMMD4uJKpbihGC9Dm469ch6SaWWV3r_qpEYSrVRI3dVxbg2OlR8Vru1jzZwDqAwMOiiCPFxY7VUYqp28UDCUvKoJWurM-fs90rtprmF0152MqmNRLjtCltH6M/s1600/Tuition1.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="299" width="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEUz5aPCSwhkuTYCiRluFnMMD4uJKpbihGC9Dm469ch6SaWWV3r_qpEYSrVRI3dVxbg2OlR8Vru1jzZwDqAwMOiiCPFxY7VUYqp28UDCUvKoJWurM-fs90rtprmF0152MqmNRLjtCltH6M/s400/Tuition1.png" /></a></div>
<p> There have been many, many articles written over the past few years bemoaning the rapid rise of college tuition. Often there is an implication that the budgets of colleges and universities have ballooned. While it is true that personnel budgets have grown faster than inflation, this is primarily due to the increased cost of healthcare. The real culprit behind most tuition increases at public colleges and universities is a massive decrease in state spending per student. In this post, I will try to illustrate the reality of this for my own institution, the University of Minnesota Duluth.</p>
<p> It is currently Minnesota law that "the state must provide at least 67 percent of the estimated expenditures" for resident undergraduate students, including those from other states such as Wisconsin with which we have a reciprocity agreement (<a href="https://www.revisor.mn.gov/laws/?doctype=Chapter&year=1995&type=0&id=212">link to statute</a>). There is a cutoff for people who rack up too many credits without graduating, but the law would cover almost all of the current students at UMD.</p>
<p>The actual state contribution is much, much smaller than the law requires. Currently the state provides around 20% of the "O & M" (operations and maintainance) costs for UMD students.</p>
The plots above show, in 2012 inflation-adjusted dollars:
<ul>
<li> The nominal tuition at UMD over the last five years (in blue). </li>
<li> The actual average tuition (in green). This is the actual tuition taken in by UMD divided by the number of students (data is from fall enrollment).</li>
<li> The black line is what the tuition would have been if the state had maintained its 2007 spending levels for UMD, in inflation-adjusted dollars. This is based on the total dollar amount from 2007, so it does not account for the increase of enrollment at UMD.</li>
<li> <em> <font color="#FF0000">The red line is what tuition would be if the state obeyed its own laws and funded 2/3 of the costs of undergraduate education (for residents of MN and its reciprocity partners). This would have kept tuition constant in real terms at about $5000/year. </font></em></li>
</ul>
<p>How much would that last scenario cost? For UMD, it would cost about $6,750 per student per year. If we use this amount for the whole state, we can estimate the impact on the state budget. Every year about 25,000 MN high school students enter a public university or community college. Let's assume they all eventually get four-year degrees (the "worst"-case scenario from a budgeting point of view, since many do not finish). Then this program would cost approximately $675,000,000 per year. That's a lot, but it isn't a crazy number, considering the current MN higher education budget, excluding loans, is around $200 million. </p>
<p> Thoughtful comments are welcome.</p>
Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com6tag:blogger.com,1999:blog-1157718186456335604.post-70462733368746336802012-02-28T19:25:00.003-08:002012-02-28T19:35:08.805-08:00Some worksheets for the curious eight year oldMy increased use of Google+ and to a lesser extent Facebook has meant this blog, never very active, has fallen on hard times. But it might get revived a bit by a new project: my wife and I decided to try homeschooling our daughter. <br /><br />While I am all in favor of a certain amount of drill problems to learn arithmetic, I think usually in schools the exercises are too narrowly focused on one topic. So I have started making some worksheets with more of a mix of subjects. In the slight chance that they are of interest to other parents or kids, I will try to post them here. Here are the first eight, as PDFs and the source LaTeX:<br /><br /><a href="http://www.d.umn.edu/~mhampton/Arith1-8.pdf">Worksheet PDFs</a><br /><br /><a href=" http://www.d.umn.edu/~mhampton/Arith1-8sources.zip"><br />LaTeX sources</a><br /><br />In case you are worried that I am reinventing the wheel, I am very actively looking at other material. We already have some more standard curricular materials, and we are also using the <a href="http://www.khanacademy.org/">Khan Academy</a> quite a bit - a really fantastic resource for basic mathematics.Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-48139308661410045172011-07-29T08:33:00.000-07:002011-07-29T09:09:34.947-07:00Review of "Sage: Beginner's Guide" by Craig FinchI was asked by the publisher to review <a href="http://www.amazon.com/Sage-Beginners-Guide-Craig-Finch/dp/1849514461">"Sage: Beginner's Guide" by Craig Finch</a>. They sent me a free copy; I have no other conflicts of interest. I am generally biased towards <a href="http://www.sagemath.org/">Sage</a> itself, as an avid user and minor developer.<br /><br />On Amazon you can browse the table of contents, which gives a pretty good idea of the strengths of the book, namely basic computation and plotting, numerical calculations, and data analysis. The focus was an excellent choice considering what is already available. The current free <a href="http://sagemath.org/doc/tutorial/">Sage Tutorial</a> is oriented much more towards pure mathematicians. There is a <a href="http://sagemath.org/doc/numerical_sage/">Numerical Computing With Sage</a> as part of the <a href="http://sagemath.org/doc/index.html">standard documentation</a>, but at the moment its quite short and nowhere near as helpful as Finch's book.<br /><br />I liked the style of the book a lot. There are many code examples that illustrate how to accomplish concrete tasks, along with good explanations of what they are doing. Many of these are things that are unfortunately far from obvious to a beginner (or even intermediate) Sage user. Despite using Sage heavily for the last five years, I learned some new things. The book is particularly strong in showing how to use Numpy, Scipy, and Matplotlib. Sage wraps a lot of the functionality of these projects, but if you want to do something that isn't included in the standard interfaces it can be quite mystifying.<br /><br />Chapter 9, "Learning Advanced Python Programming", might have been a little ambitious. There's nothing wrong with it, but its too short to provide enough. Fortunately there are a lot of good books, some of them free, that cover Python programming in much more depth. I would have preferred some of this space and effort to be devoted to using Cython and the @interact command, which are covered very briefly in Chapter 10.<br /><br />I teach several classes using Sage and I will definitely advertise this text as a useful optional supplement (I consider it a little too expensive to add on as a mandatory second text). It would be nice if some institutions considered using Sage instead of its commercial competitors such as Maple, Matlab, and Mathematica - you could probably give every student a copy of this book for the money saved from license fees!<br /><br />The only thing I disliked about the book was the quality of the illustrations. Sage output that was in LaTeX was not typeset, but instead looks as if a PNG was copied from a screenshot. Some of the examples would have benefited from being in color. The quality of the plots is also somewhat poor. This is not too big a deal if one is following along with Sage, since you can reproduce the figures. None of them are bad enough to obscure the content.<br /><br />Overall this is a very impressive and useful introduction to Sage that should help any beginning user a great deal.Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-61119785446760659812011-07-19T12:58:00.001-07:002011-07-21T10:00:19.120-07:00Top Ten Talk Titles at the International Congress of Industrial and Applied Mathematics<img src="http://www.iciam2011.com/images/stories/ICIAM2011/random//Main_RandomBanners1.jpg"><br /><br />10. The Most Likely Path to Systemic Failure<br /><br />9. Exploding Rocks<br /><br />8. Moving Mucus from the Outside In <br /><br />7. Ducks in Array: Inferring Individual Rules from Collective Behaviour<br /><br />6. The Nonlinear Dynamics of Jellyfish Swimming<br /><br />5. The Neuromechanics of Insect Locomotion: How Cockroaches Run Fast and Stably Without Much Thought<br /><br />4. Transformational Acoustics: Acoustic Cloaks, Carpets and Wormholes<br /><br />3. A Semi-Implicit Blob Projection Method for Tiny Insect Flight<br /><br />2. Mathematical Model for Contemplative Amoeboid Locomotion<br /><br />1. Warping Peirce Quincuncial PanoramasAnonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com3tag:blogger.com,1999:blog-1157718186456335604.post-82615044982932785882011-05-16T12:36:00.001-07:002011-05-16T14:18:00.241-07:00UltrafiltersOne of the challenges in learning mathematics is the vocabulary. Its hard not just because of the sheer number of words. Some words make an old word strangely precise, like "continuous". But many others are naming concepts which have no common equivalent, and each of these requires wholly new paths of thought. <br /><br />Recently I was reading a book on the positivity of multivariate polynomials, and I had to recall what ultrafilters are. Even having learned that before, its a bit of a struggle to internalize. It did inspire me to make the following "ad":<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_oGIMpj8jCRmJ9MC6Kh-mCK8eUCGBwY2SF_NYAm_R7tU7_aHVNam6ZlexvKYgPAhrVQbRcFa8wcPqM0aYYafGam5KZQ9rasbfVZZshrdmlfioGqSDywd5nPHJZ9MqNxBOZYa6CEsJet0N/s1600/Ultrafilters.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 264px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_oGIMpj8jCRmJ9MC6Kh-mCK8eUCGBwY2SF_NYAm_R7tU7_aHVNam6ZlexvKYgPAhrVQbRcFa8wcPqM0aYYafGam5KZQ9rasbfVZZshrdmlfioGqSDywd5nPHJZ9MqNxBOZYa6CEsJet0N/s400/Ultrafilters.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5607426241380549634" /></a>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-23532782354984814082011-04-27T10:53:00.000-07:002011-04-27T11:18:27.266-07:00A family of Mobius transformationsI was trying to sketch the behavior of a Mobius transformation in my complex analysis course today. Its hard to convey on the blackboard, so I tried making <a href="http://www.youtube.com/watch?v=BbI3M9-Cto8">a video</a> which shows a homotopy of the image of the unit disk, from the identity to (1+z)/(1-z) and back again.<br /><br /><br /><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDeG4Yo245Wi-llV6zKfa7-6-SBaWxlBpMO-drVGUcjv_1-z09zQynF54ZTGSwXfvKZpCUJ1wDwzpJgphbQKsn464dXrNQDWogAvUOVLfXA6P8lGGymObhFu7vY5uHmJTW1OBkZyXXVBW7/s400/mobend.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5600323737286980242" />Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-33456188430996611392011-03-23T09:05:00.000-07:002011-03-23T09:14:26.830-07:00Sci-fi history in a paintingThis is pretty fantastic - <a href="http://scimaps.org/submissions/7-digital_libraries/maps/thumbs/024_LG.jpg"> Ward Shelley's "The History of Science Fiction": </a><br /><br /><a href="http://scimaps.org/submissions/7-digital_libraries/maps/thumbs/024_LG.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLCZOPp4_mGi-7VZDjMa3zu0ew9ux7Wt_Iu0-Pe9cTcDk8-qFKkj546ovvHVo4LTD4HmWB_8ZPUWb-tXPItB9fP_MsOQDgLO9nWThwzDDWDbHdU5nMzmL4joJcT91JbCC5XG28Az3G6Qxl/s1600/scifihistory_crop.jpg"></a><br /><br />(The crop above is just the tip of the iceberg.)Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-24213177467198410732011-03-21T08:09:00.000-07:002011-03-21T08:15:37.618-07:00Plotting the zeta functionI lectured a tiny bit on the <a href="http://en.wikipedia.org/wiki/Riemann_zeta_function">Riemann zeta function</a> for the first time in my complex analysis course, which inspired me to make the following plot. Colors are the argument of the Riemann zeta function, brightness is proportional to magnitude. The default brightness map gives very low contrast, so I modified the magnitudes. To help with seeing the magnitudes a contour map with exponentially spaced contours is overlaid.<br /><br /><pre><br />def xy_to_zeta_size(x,y):<br /> return abs(zeta(N(x+I*y)))<br />cvals = [e^i for i in srange(-7,1,.25)]<br />cp = contour_plot(xy_to_zeta_size,(-6,3),(-3,3),contours = cvals, fill=False, plot_points = 201)<br />rzeta(z) = zeta(z)/norm(zeta(z))^(.25)<br />rzf = fast_callable(rzeta,domain=CDF)<br />cparg = complex_plot(rzf,(-6,3),(-3,3))<br />show(cparg+cp,figsize=[18,12])<br /></pre><br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJAi85jpXrdzY1EX_C0XHLOn9KlwLIB5e4i5vcgKFMclff75XwFO4pWzPfTP7j1kg8n9sKP-IXosFiNizeG0rn_Q3uDp7rW1iPUrkiUpefs0vDF-_TD6fW0iz_ntkerIm62HQwz0Mi5WlW/s1600/RiemannZeta.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 270px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJAi85jpXrdzY1EX_C0XHLOn9KlwLIB5e4i5vcgKFMclff75XwFO4pWzPfTP7j1kg8n9sKP-IXosFiNizeG0rn_Q3uDp7rW1iPUrkiUpefs0vDF-_TD6fW0iz_ntkerIm62HQwz0Mi5WlW/s400/RiemannZeta.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5586551731107053330" /></a>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com1tag:blogger.com,1999:blog-1157718186456335604.post-14159212904305978412011-02-28T08:51:00.000-08:002011-02-28T08:57:41.714-08:00Youtube videos of n-body choreographies<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNjXj42nFhNSDvYFn29OMs9XIZ6zVH2DSyHbHkdXC4WkESh2gM_gznKsMCBNRxKAw5YkXnAG6pW_u5_8gEluW8BHIlN8gsaO4F9eHmsJUrViYgZqRPqH9GYxp-WVNNSY4u_3_o5TzNFWKk/s1600/sage0.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 388px; height: 400px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNjXj42nFhNSDvYFn29OMs9XIZ6zVH2DSyHbHkdXC4WkESh2gM_gznKsMCBNRxKAw5YkXnAG6pW_u5_8gEluW8BHIlN8gsaO4F9eHmsJUrViYgZqRPqH9GYxp-WVNNSY4u_3_o5TzNFWKk/s400/sage0.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5578785568567454498" /></a><br />For a presentation I'm doing tomorrow, I made some animations of n-body choreographies (n equal masses which share a common trajectory). I put these up on youtube since that seems to make more sense than having them mangled by Blogger or hosting them myself:<br /><br /><a href="http://www.youtube.com/watch?v=nw9_XdAwbGA">Twenty-one bodies</a><br /><a href="http://www.youtube.com/watch?v=d1MOuEkpRJk">Eight bodies</a><br /><a href="http://www.youtube.com/watch?v=NNoB4PQiExs">Three bodies on a figure eight</a><br /><br />The videos are done using Sage, the Tachyon raytracer, and ffmpeg. The orbit data is from Carlos Simo.<br /><br />Here's a 2D picture of the twenty-body choreography.Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com1tag:blogger.com,1999:blog-1157718186456335604.post-73904049821663183532010-09-29T06:59:00.000-07:002010-10-01T21:43:10.337-07:00Are you listening, pig?<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJPfcobAS0-0byXnq-JYd6rhUn8Zjzffq7-IXfWiJPs6IW-3jNKuQ6DcSepe9sTwl2ZkeGWf9JFELZb_2uYixSsGlO8P8N6bPyQWz2iPD4nocnNulnTQDH6bdWqrx8PTc1xtKYgy0jzDDb/s1600/FTO1sm.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 233px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJPfcobAS0-0byXnq-JYd6rhUn8Zjzffq7-IXfWiJPs6IW-3jNKuQ6DcSepe9sTwl2ZkeGWf9JFELZb_2uYixSsGlO8P8N6bPyQWz2iPD4nocnNulnTQDH6bdWqrx8PTc1xtKYgy0jzDDb/s400/FTO1sm.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5522360893005942994" /></a><br /><br /><br />I'd just like to share some recommendations that are all connected by the theme of visual and concrete computing. In the last few years I've become more and more convinced that (in the United States at least) our educational system is almost completely failing to provide adequate skills in computing - both the theory and practice of computer science. This is sad because I think there are many fun and interesting ways to learn about programming, logic, and algorithms. Here are some examples:<br /><br />1. <a href="http://en.wikipedia.org/wiki/Logo_%28programming_language%29">LOGO</a>. When I was in elementary school I was exposed to Logo, a very visual platform for learning programming. If you have a child, make sure you check out an implementation and show your kid. No matter what computer you have, its almost certain that there are several free Logo programs for it.<br /><br />2. Similar in spirit to Logo, but maybe more fun and less deep is the game <a href="http://armorgames.com/play/2205/light-bot">Light-Bot</a> at Armor Games. You can drag and drop visual program elements to write a program that instructs a robot to complete a variety of puzzles. Very fun, well done.<br /><br />3. There are novels that glamorize hackers and computing to some extent, but nothing I've seen compares to the plot in <a href="http://www.amazon.com/Souls-Great-Machine-Sean-Mcmullen/dp/0765344572">Souls in the Great Machine</a> by Sean McMullen. The plot is brilliant and complicated, but all you need to know is that they enslave all the mathematicians to create a giant human computer.<br /><br />4. I was reminded of Eyes of the Calculor by this <a href="http://www.youtube.com/watch?v=LGkkyKZVzug">fantastic video</a> on youtube. The creator has implemented a gigantic arithmetic unit within the virtual Minecraft environment. He mentions he was inspired by the book <a href="http://www.amazon.com/Elements-Computing-Systems-Building-Principles/dp/026214087X">The Elements of Computing Systems: Building a Modern Computer from First Principles</a>. I hadn't heard of that before but I will definitely take a look. If you watch the video you'll get the title of this post.Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com2tag:blogger.com,1999:blog-1157718186456335604.post-46392566157039667892010-09-12T16:04:00.000-07:002010-09-12T16:47:40.590-07:00Torus knots in Sage with Tachyon and @parallel<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7HgQR2iZw6SgyidO5q5_NdWPikeAfJcXN_KFyAkTN8rlQlXkisOdbuI9TvWpa4A1bPQ_DJi_4tBMjPFDtqNMW04qZUDOqrUSJE0pazhR1HuijeUtnrLqJKspFrWtsPBCIXZJYyeu7sgsp/s1600/tk_3_23539.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7HgQR2iZw6SgyidO5q5_NdWPikeAfJcXN_KFyAkTN8rlQlXkisOdbuI9TvWpa4A1bPQ_DJi_4tBMjPFDtqNMW04qZUDOqrUSJE0pazhR1HuijeUtnrLqJKspFrWtsPBCIXZJYyeu7sgsp/s400/tk_3_23539.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5516167902612813394" /></a><br /><br /><br />After working a bit more on a patch improving the Tachyon raytracer in <a href="www.sagemath.org">Sage</a>, I made a movie of a <a href="http://en.wikipedia.org/wiki/Torus_knot">torus knot</a>. The code below was parallelized to use 20 cores at a time on one of the Sage Foundation's lovely Sun Fire X4450s. Frames were animated with ffmpeg. <a href="http://sage.math.washington.edu/home/mhampton/tk_3_23.mp4">Blogger might degrade the video, so I recommend downloading the original here</a>.<br /><br /><pre><br />pk = 3<br />qk = 23<br />res = 180<br />trad = .5<br />lab = 'tk_' + str(pk) + '_' + str(qk)<br />def tknot(theta):<br /> return [(2 + trad*cos(qk*theta/pk))*cos(theta), \\<br />(2 + trad*cos(qk*theta/pk))*sin(theta), trad*sin(qk*theta/pk)]<br />@parallel(ncpus = 20)<br />def tknotter(anum):<br /> th = anum*2.0*pi/res<br /> T = Tachyon(xres = 800, yres = 600, camera_center = (4,4,2.5), \\<br />raydepth=12, antialiasing=2)<br /> loc = tknot(th)<br /> nloc = [abs(x)/norm(vector(loc)) for x in loc]<br /> T.texture('s1',color=nloc,specular=1)<br /> T.texture('p1',color=(.5,.5,.5))<br /> T.sphere(loc,.05,'s1')<br /> ci = 0<br /> for sth in srange(0,th,2*pi/res):<br /> e1 = tknot(sth)<br /> e2 = tknot(sth+2*pi/res)<br /> ts = [abs(x)/norm(vector(e1)) for x in e1]<br /> T.texture('t'+str(ci), color=ts)<br /> T.fcylinder(e1, e2, .025,'t'+str(ci))<br /> ci += 1<br /> T.plane((0,0,-4),(0,0,1),'p1')<br /> T.light((6,6,11),.1,(1,1,1))<br /> T.light((5.9,5.9,11),.1,(1,1,1))<br /> T.save(DATA+lab+'%03d.png'%anum)<br /> return 1<br /><br />qin = range(pk*res)<br />s = list(tknotter(qin))<br /><br />for i in range(40):<br /> r2 = os.system('cp '+DATA+lab+'%03d.png '%(pk*res-1) + DATA+lab+'%03d.png'%(pk*res+i))<br /><br />anum = qin[-1] + 41<br />th = anum*2*pi/res<br />T = Tachyon(xres = 800, yres = 600, camera_center = (5,5,3))<br />T.save(DATA+lab+'%03d.png'%anum)<br /></pre><br /><br />The animation was then done with the following code; if you want to do something similar you would have to use the appropriate path to your ffmpeg executable.<br /><pre><br />import subprocess<br />subprocess.call('/home/mhampton/ffmpeg/ffmpeg -qmax 2 -i ' + \\<br />DATA + 'v%3d.png ./t2vest.mp4', shell=True, stdout=file('/dev/null','w'),stderr=file('/dev/null','w'))<br /></pre><br /><br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dyy0ixTlgRjaqXaOPp8U4BDOzy2T2AzNKkPidvtB5h6_3wxUvqM0oXgLcWfllOrYMr_1672nebHQl7SXNvCfA' class='b-hbp-video b-uploaded' frameborder='0'></iframe>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-83885950031540341602010-09-12T08:31:00.000-07:002010-09-12T08:36:53.243-07:00Flight in Curved Spaces<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb2h37WBR9MCnhsNFC3k_EvCBRDrW6_u7Kob4jbhiIO-7ergDklK8lBaoRwBnnpEO6L7O80-zjlRuRUI4ZaH-Kk9_uvsRhmjNwv60sFnm1vFhvtYDiyGszIxnWJGlrvHNTKV4VmFATD3Ho/s1600/HyperbolicThird.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 400px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb2h37WBR9MCnhsNFC3k_EvCBRDrW6_u7Kob4jbhiIO-7ergDklK8lBaoRwBnnpEO6L7O80-zjlRuRUI4ZaH-Kk9_uvsRhmjNwv60sFnm1vFhvtYDiyGszIxnWJGlrvHNTKV4VmFATD3Ho/s400/HyperbolicThird.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5516050940529031282" /></a><br />I was recently reminiscing about the movie <a href="http://www.youtube.com/watch?v=AGLPbSMxSUM">Not Knot</a>, and began thinking about recreating some of the hyperbolic scenes. But then today I stumbled upon a really nice application that does exactly what I was thinking about and more:<br /><br /><a href="http://www.geometrygames.org/CurvedSpaces/index.html">http://www.geometrygames.org/CurvedSpaces/index.html</a><br /><br />Its a pretty small download, works on most platforms, very fun.Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0tag:blogger.com,1999:blog-1157718186456335604.post-27136203658502494012010-09-03T20:48:00.000-07:002010-09-03T20:53:27.134-07:00Tachyon in Sage: depth of field perspective<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqNnawGI36Ktm61nMck71a2g5UCbfBLDTH5KeqvRQHgMSXBCwYxS2drGm96qQa6LcoOBO9p6R4VlzQwUs9bQaPDW7p1nhy0qxRFgHb9L_EasMwi0wrZfedhkUeNjCYN-HYHWa7rhreLtEO/s1600/tach.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 175px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqNnawGI36Ktm61nMck71a2g5UCbfBLDTH5KeqvRQHgMSXBCwYxS2drGm96qQa6LcoOBO9p6R4VlzQwUs9bQaPDW7p1nhy0qxRFgHb9L_EasMwi0wrZfedhkUeNjCYN-HYHWa7rhreLtEO/s400/tach.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5512901014772071602" /></a><br /><br />Today I found a bug in the options to the tachyon raytracer in Sage. It should be possible to use alternate projections, including fisheye lens and perspective depth-of-field projections. I think I've fixed that, patch should get into sage-4.6 or so.<br /><br />Here's a quick example:<br /><pre><br />T = Tachyon(xres=800,antialiasing=24, raydepth=12, projection = 'perspective_dof', focallength = '1.0', aperture = '.005')<br />T.light((0,5,7),1.0,(1,1,1))<br />T.texture('t1', opacity=1, specular = .3)<br />T.texture('t2', opacity=1, specular = .3, color = (0,0,1))<br />T.texture('t3', opacity = 1, specular = 1, color = (1,.8,1), diffuse=0.2)<br />T.plane((0,0,-1),(0,0,1),'t3')<br />ttlist = ['t1','t2']<br />tt = 't1'<br />T.cylinder((0,0,.1),(1,1/3,0),.05,'t3')<br />for q in srange(-3,100,.15):<br /> if tt == 't1':<br /> tt = 't2'<br /> else:<br /> tt = 't1'<br /> T.sphere((q,q/3+.3*sin(3*q),.1+.3*cos(3*q)), .1, tt)<br />T.show()<br /></pre>Anonymoushttp://www.blogger.com/profile/12570655611553584218noreply@blogger.com0