{"author":"Luca Sbardella","title":"The Witch of Agnesi","slug":"the_witch_of_agnesi","date":"May 16, 2014","keywords":"d3, javascript, mathematics, math, agnesi","description":"An example of d3.js to plot the witch of Agnesi. Move the mouse over the plot to see the animation. Inspired by google's doodle on the 16th of May 2014.","image":"http://upload.wikimedia.org/wikipedia/commons/5/57/Maria_Gaetana_Agnesi.jpg","category":"visualization","index":true,"contentType":"text/markdown","body":"\n\nThis example demonstrate how to plot the\nwitch of agnesi\nusing [d3][] as explained by wikipedia.\n\nThe curve has Cartesian equation\n\n```math\ny = \\frac{8 r^3}{x^2 + 4 r^2}\n```\n\nCode available [here]({{ bundleUrl }}/lab/the_witch_of_agnesi/agnesi.js).","paginate":true}