{"id":2201,"date":"2012-06-22T10:41:32","date_gmt":"2012-06-22T02:41:32","guid":{"rendered":"http:\/\/vanabel.sinaapp.com\/?p=2201"},"modified":"2012-06-22T10:41:32","modified_gmt":"2012-06-22T02:41:32","slug":"%e6%96%b0%e5%a2%9e-jsxgraph-%e4%bd%9c%e5%9b%be%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/lttt.vanabel.cn\/?p=2201","title":{"rendered":"\u65b0\u589e JSXGraph \u4f5c\u56fe\u63d2\u4ef6"},"content":{"rendered":"<p>\u4e00\u76f4\u5728\u6349\u6478\u5982\u4f55\u5728wp\u4e2d\u7ed8\u56fe, \u4eca\u5929\u7ec8\u4e8e\u5f97\u5230\u5982\u4e0b\u7075\u611f. \u9996\u5148, \u4f60\u4f1a\u53d1\u73b0\u5927\u591a\u6570\u6d4f\u89c8\u5668\u90fd\u652f\u6301svg\u683c\u5f0f\u7684&#8221;\u56fe\u7247&#8221;, wiki\u4e0b\u53d1\u73b0\u5176\u5b9esvg\u5c31\u662fhtml\u7684\u7ed8\u56fe\u8bed\u8a00. \u8fd9\u662f\u6211\u5728\u5b66latex\u4f5c\u56fe\u65f6\u770b\u5230Asymptote\u7684\u90a3\u4e2awiki\u56fe\u6807\u6587\u4ef6\u7adf\u7136\u662f\u4e00\u5c42\u4e00\u5c42\u7684\u6e32\u67d3\u7684, \u8fd9\u6837\u6211\u5c31\u77e5\u9053\u5176\u5b9ehtml\u91cc\u662f\u652f\u6301\u7ed8\u56fe\u8bed\u8a00\u7684(\u51c6\u786e\u8bf4\u53ef\u80fd\u662f\u8981java\u811a\u672c). \u5174\u594b\u4e4b\u4f59, \u9a6c\u4e0agoogle\u4e86\u4e0bwp\u7684\u63d2\u4ef6, \u53d1\u73b0\u4e86\u4e00\u4e2a\u54c8\u54c8: <a href=\"http:\/\/wordpress.org\/extend\/plugins\/jsxgraph\/\" target=\"_blank\">JSXGraph<\/a>, \u6b63\u5e38\u5b89\u88c5\u5e76\u542f\u7528\u63d2\u4ef6\u540e,  \u4e00\u4e2a\u5178\u578b\u7684\u4f8b\u5b50\u5982:<br \/>\n<!--more--><\/p>\n<pre lang=\"js\"><jsxgraph width=\"500\" height=\"500\" box=\"box\">\nvar addPoint = function(x) {\n  p.push(brd.create('point',\n              [x,(Math.random()-0.5)*3],{style:6}));\n  brd.update();\n};\n \nvar brd = JXG.JSXGraph.initBoard('box',\n           {axis:true,originX: 250, originY: 250, unitX: 50, unitY: 25});\nbrd.suspendUpdate();\nvar p = [];\np[0] = brd.create('point', [-4,2], {style:6});\np[1] = brd.create('point', [3,-1], {style:6});\naddPoint(-2);\naddPoint(0.5);\naddPoint(1);\nvar pol = brd.lagrangePolynomial(p);\nvar g = brd.create('functiongraph', [pol, -10, 10], {strokeWidth:3});\nvar g2 = brd.create('functiongraph', [brd.D(pol), -10, 10],\n                                      {dash:3, strokeColor:'#ff0000'});\nbrd.unsuspendUpdate();\n<\/jsxgraph><\/pre>\n<p>\u6e90\u4ee3\u7801\u662f:<\/p>\n<pre lang=\"javascript\">\n<\/pre>\n<pre><jsxgraph width=\"500\" height=\"500\" box=\"box\">\n \nvar addPoint = function(x) {\n  p.push(brd.create('point',\n              [x,(Math.random()-0.5)*3],{style:6}));\n  brd.update();\n};\n \nvar brd = JXG.JSXGraph.initBoard('box',\n           {axis:true,originX: 250, originY: 250, unitX: 50, unitY: 25});\nbrd.suspendUpdate();\nvar p = [];\np[0] = brd.create('point', [-4,2], {style:6});\np[1] = brd.create('point', [3,-1], {style:6});\naddPoint(-2);\naddPoint(0.5);\naddPoint(1);\nvar pol = brd.lagrangePolynomial(p);\nvar g = brd.create('functiongraph', [pol, -10, 10], {strokeWidth:3});\nvar g2 = brd.create('functiongraph', [brd.D(pol), -10, 10],\n                                      {dash:3, strokeColor:'#ff0000'});\nbrd.unsuspendUpdate();\n<\/jsxgraph>&lt;\/pre&gt;\n<\/pre>\n<h3>\u9700\u8981\u6ce8\u610f\u7684\u4e00\u4e2a\u95ee\u9898<\/h3>\n<p>\u5982\u679c\u76f4\u63a5\u7528\u4e0a\u8ff0\u63d2\u4ef6, \u53ef\u4ee5\u53d1\u73b0\u70b9\u7684\u5750\u6807\u5b9a\u4f4d\u4e0d\u662f\u5f88\u51c6\u786e. \u6309\u7167\u63d2\u4ef6\u7684\u8bf4\u660e\u9875, \u6211\u4eec\u53d1\u73b0\u5b83\u6709\u4e00\u4e2a\u53ef\u9009\u8bf4\u660e: \u628a\u63d2\u4ef6\u76ee\u5f55\u7684js\u811a\u672c\u548ccss\u5206\u522b\u5220\u9664, \u90a3\u4e48\u5c06\u4ecejsxgraph-websit\u8c03\u7528\u6700\u65b0\u7684js\u4ee5\u53cacss, \u8fd9\u6837\u505a\u8fc7\u540e\u4e0a\u8ff0\u95ee\u9898\u5c31\u89e3\u51b3\u4e86.<\/p>\n<p>\u6700\u540e, \u975e\u5e38\u611f\u8c22\u8fd9\u4e48\u5f3a\u5927\u7684\u8bed\u8a00, \u4ee5\u53ca\u4f5c\u8005 <a href=\"http:\/\/www.webconsul.de\/\" target=\"_blank\">Peter Wilfahrt<\/a> \u5199\u7684wp\u63d2\u4ef6. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u76f4\u5728\u6349\u6478\u5982\u4f55\u5728wp\u4e2d\u7ed8\u56fe, \u4eca\u5929\u7ec8\u4e8e\u5f97\u5230\u5982\u4e0b\u7075\u611f. \u9996\u5148, \u4f60\u4f1a\u53d1\u73b0\u5927\u591a\u6570\u6d4f\u89c8 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/lttt.vanabel.cn\/?p=2201\"> <span class=\"screen-reader-text\">\u65b0\u589e JSXGraph \u4f5c\u56fe\u63d2\u4ef6<\/span> \u9605\u8bfb\u66f4\u591a &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[523,637,683,176,296],"class_list":["post-2201","post","type-post","status-publish","format-standard","hentry","category-admin","tag-jsxgraph","tag-svg","tag-wp","tag-176","tag-wp-tec"],"_links":{"self":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/2201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2201"}],"version-history":[{"count":0,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/2201\/revisions"}],"wp:attachment":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}