{"id":10440,"date":"2015-09-30T09:22:03","date_gmt":"2015-09-30T01:22:03","guid":{"rendered":"http:\/\/www.intmath.com\/blog\/?p=10440"},"modified":"2019-09-20T17:04:35","modified_gmt":"2019-09-20T09:04:35","slug":"intmath-newsletter-sampling-svgphpgrapher","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/letters\/intmath-newsletter-sampling-svgphpgrapher-10440","title":{"rendered":"IntMath Newsletter: Sampling, svgPHPGrapher"},"content":{"rendered":"<p>30 Sep 2015<\/p>\n<p>In this Newsletter:<\/p>\n<p>1. Sampling<br \/>\n  2. Resource: svgPHPGrapher<br \/>\n  3. Application of hyperbolic decay<br \/>\n  4. Math puzzle<br \/>\n  5. Math movie: Jim Simons <br \/>\n6. Final thought: Haze <\/p>\n<h2>1. Sampling to produce mathematical function graphs<\/h2>\n<p>I've been developing a new graphing system for IntMath (see the following article on svgPHPGrapher).<\/p>\n<p>It's been an interesting challenge and I've learned a lot doing it. One of the issues I constantly grappled with was that of <strong>sampling<\/strong>. To produce a smooth curve that goes to the edge of the graph boundaries (especially when it involves discontinuities), you need to sample a sufficient number of points. But if you take too many, it takes too long for the computer to create the graph, and ends up inflating the size of the graph file.<\/p>\n<p>I thought while doing this that there are a lot of parallels with the way students learn how to sketch graphs. The age-old technique of drawing up a table, substituting in some values, putting dots on the graph paper and then joining them with a curve  is not always a good idea, since it can trap those who aren't careful, or who don't have a sense of what the graph should look like in the first place.<\/p>\n<p>This article is about sampling, and includes a bunch of examples of the new graphs I've been developing.<\/p>\n<p>While I obviously believe students should use computers to draw graphs, it's important even then to have a sense of what it should look like first.   <\/p>\n<table>\n<tr>\n<td style=\"padding-right:7px\"><a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/sampling-to-create-mathematical-function-graphs-10381\"><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2015\/09\/pentic-curve.png\" alt=\"A curve drawn using svgPHPGrapher\" width=\"128\" height=\"100\" border=\"0\" \/><\/a><\/td>\n<td>\n<p>When sketching mathematical functions on paper or computers, it's a good idea to have a sense of what the general shape of the curve is before you start. Sampling can lead to erroneous results.<\/p>\n<p><a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/sampling-to-create-mathematical-function-graphs-10381\">Sampling to create mathematical function graphs<\/a><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>2. Resource: svgPHPGrapher - a new math plotter<\/h2>\n<table>\n<tr>\n<td style=\"padding-right:7px\"><a href=\"https:\/\/www.intmath.com\/blog\/computers\/svgphpgrapher-a-new-math-plotter-10428\"><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2015\/09\/svgPHPGrapher-example.png\" alt=\"svgPHPGrapher is a new PHP-bassed svg math grapher.\" title=\"\" width=\"128\" height=\"100\" \/><\/a><\/td>\n<td>\n<p><em class=\"textem\">svgPHPGrapher<\/em> produces clean math graphs with no javascript, and all the processing happens on the server. This article also talks about SVG - a mathematical approach to crisp images. <\/p>\n<p><a href=\"https:\/\/www.intmath.com\/blog\/computers\/svgphpgrapher-a-new-math-plotter-10428\">svgPHPGrapher - a new math plotter<\/a><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p>You may also find the syntax example page interesting (not necessarily for the syntax, but for the graphs on the page). Here's the link to the syntax examples page:<\/p>\n<p><a href=\"https:\/\/www.intmath.com\/cg5\/svgphpgrapher-syntax.php\">svgPHPGrapher syntax<\/a>  <\/p>\n<h2>3. Application of hyperbolic decay<\/h2>\n<p>A few months back I wrote an article about <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/hyperbolic-and-exponential-discounting-10115\">Hyperbolic and Exponential Discounting<\/a>. A reader kindly sent me a journal article that describes an application of hyperbolic decay, involving capacitors.<\/p>\n<p>Almost all electronic devices contain capacitors, which have the ability to hold an electrical charge for a short time. <\/p>\n<table>\n<tr>\n<td style=\"padding-right:7px\"><a href=\"http:\/\/onlinelibrary.wiley.com\/doi\/10.1002\/cta.2010\/pdf\"><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2015\/09\/capacitor-discharge.png\" alt=\"Capacitors: An application of hyperbolic decay\" width=\"128\" height=\"100\" border=\"0\" title=\"\" \/><\/a><\/td>\n<td>\n<p>The article talks about the case where the capacitor is charged for a period of time, then discharged, then charged again in a pattern that resembles the hyperbolic decay graph. Here's the paper: <\/p>\n<p><a href=\"http:\/\/onlinelibrary.wiley.com\/doi\/10.1002\/cta.2010\/pdf\">On hyperbolic laws of capacitor discharge through self-timed digital loads<\/a><a href=\"https:\/\/www.intmath.com\/blog\/computers\/svgphpgrapher-a-new-math-plotter-10428\"><\/a><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>4. Math puzzles<\/h2>\n<p>The <a href=\"https:\/\/www.intmath.com\/blog\/letters\/intmath-newsletter-binary-scientific-notation-math-game-10346#puzzle\">puzzle in the last IntMath Newsletter<\/a> asked about cards on a table. <\/p>\n<p><a href=\"https:\/\/www.intmath.com\/blog\/letters\/intmath-newsletter-binary-scientific-notation-math-game-10346#comments\">Correct answers  with explanation<\/a> for the main question were given by: Henry, Isabel, Tomas, and Don. For the bonus question, kudos to Henry, Isabel, Don, Tomas, and Pritesh.<\/p>\n<p>As usual, it was interesting to observe the very different approaches each of you took.  <\/p>\n<h3 id=\"puzzle\">New math puzzle<\/h3>\n<p>In the set of digits below, you need to circle 6 of them that sum together to give 21.<\/p>\n<p>1 1 1<br \/>\n3 3 3 <br \/>\n5 5 5<br \/>\n9 9 9    <\/p>\n<p>You can leave your responses <a href=\"https:\/\/www.intmath.com\/blog\/letters\/intmath-newsletter-sampling-svgphpgrapher-10440#respond\">here<\/a>. <\/p>\n<h2>5. Math movie - Jim Simons: The mathematician who cracked Wall Street<\/h2>\n<p>There's several things in this video that made me uncomfortable (he sees little ethical dilemma in the hedge fund industry  siphoning off the best and brightest, or in living much of his life with the main aim of making mountains of money), but he redeems himself at the end with his philanthropic work. <\/p>\n<p><!--NoIntMathMathPlugin--><\/p>\n<table>\n<tr>\n<td style=\"padding-right:7px\"><a href=\"https:\/\/www.youtube.com\/watch?v=siGBO4Nqqws\"><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2015\/09\/jim-simons-interview.jpg\" alt=\"Jim Simons - Man Who Cracked Wall Street\" width=\"128\" height=\"100\" border=\"0\" \/><\/a><\/td>\n<td>\n<p>It's a long interview, but gives an interesting insight into a mathematician who has had a broad range of experiences.<\/p>\n<p>Go to: <a href=\"https:\/\/www.youtube.com\/watch?v=siGBO4Nqqws\">Jim Simons: A rare interview with the mathematician who cracked Wall Street<\/a><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>6. Final thought: Haze <\/h2>\n<div class=\"imgCenter\"><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2015\/09\/haze.jpg\" alt=\"Haze over Singapore\" width=\"300\" height=\"196\" \/><br \/>\nHaze over Singapore [Image <a href=\"https:\/\/vulcanpost.com\/4994\/if-the-readings-on-these-charts-go-through-the-roof-you-know-the-haze-is-coming\/\">source<a\/>]<\/div>\n<p>It's that time of the year in SE Asia when millions of people (including me) suffer due to the smoke and haze created by burning forests for paper and palm oil. Spare a thought for the Indonesian villagers nearby the fires, who at times are faced with a PSI (Pollutant Standards Index) of 2000+, when anything over 100 is considered unhealthy. Such pollutant indices include factors such as the concentration of 2.5 &mu; (micron) fine particles - the ones that can easily pass through your cell walls.<\/p>\n<p>You can see hourly PSI trend graphs for Singapore here: <a href=\"https:\/\/www.haze.gov.sg\/\">PSI Trend Graphs<\/a><\/p>\n<p>Come on, Indonesian farmers - show some responsibility for the environment, for your own people, and for the vast number of people who are really suffering due to your \"cash before life\" approach.<\/p>\n<p>Until next time, enjoy whatever you learn.<\/p>\n<p class=\"alt\">See the <a href=\"https:\/\/www.intmath.com\/blog\/letters\/intmath-newsletter-sampling-svgphpgrapher-10440#comments\" id=\"comms\">23 Comments<\/a> below.<\/p>","protected":false},"excerpt":{"rendered":"<p>In this Newsletter:<\/p>\n<p>1. Sampling<br \/>\n  2. Resource: svgPHPGrapher<br \/>\n  3. Application of hyperbolic decay<br \/>\n  4. Math puzzle<br \/>\n  5. Math movie: Jim Simons <br \/>\n6. Final thought: Haze <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":""},"categories":[104],"tags":[134,127],"_links":{"self":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/10440"}],"collection":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=10440"}],"version-history":[{"count":2,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/10440\/revisions"}],"predecessor-version":[{"id":12167,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/10440\/revisions\/12167"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=10440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=10440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=10440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}