<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jsxgraph.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Movable_functiongraph</id>
	<title>Movable functiongraph - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jsxgraph.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Movable_functiongraph"/>
	<link rel="alternate" type="text/html" href="https://jsxgraph.org/wiki/index.php?title=Movable_functiongraph&amp;action=history"/>
	<updated>2026-04-05T22:00:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://jsxgraph.org/wiki/index.php?title=Movable_functiongraph&amp;diff=6400&amp;oldid=prev</id>
		<title>Nicolas.adenis.lamarre at 19:30, 25 June 2015</title>
		<link rel="alternate" type="text/html" href="https://jsxgraph.org/wiki/index.php?title=Movable_functiongraph&amp;diff=6400&amp;oldid=prev"/>
		<updated>2015-06-25T19:30:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:30, 25 June 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;By default, the function graph can not be dragged around.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;When we allow to the function graph to be movable by setting &quot;fixed:false&quot; we have to notify JSXGraph that the function graph depends on the two free points A and B.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This example shows that a functiongraph can be made movable.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This example shows that a functiongraph can be made movable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is produced by the following commands:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is produced by the following commands:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nicolas.adenis.lamarre</name></author>
	</entry>
	<entry>
		<id>https://jsxgraph.org/wiki/index.php?title=Movable_functiongraph&amp;diff=6399&amp;oldid=prev</id>
		<title>Nicolas.adenis.lamarre: Created page with &quot;This example shows that a functiongraph can be made movable. It is produced by the following commands: &lt;source lang=&quot;xml&quot;&gt; &lt;div id=&quot;jxgbox&quot; class=&quot;jxgbox&quot; style=&quot;width:500px; height:200px...&quot;</title>
		<link rel="alternate" type="text/html" href="https://jsxgraph.org/wiki/index.php?title=Movable_functiongraph&amp;diff=6399&amp;oldid=prev"/>
		<updated>2015-06-25T19:28:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This example shows that a functiongraph can be made movable. It is produced by the following commands: &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt; &amp;lt;div id=&amp;quot;jxgbox&amp;quot; class=&amp;quot;jxgbox&amp;quot; style=&amp;quot;width:500px; height:200px...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This example shows that a functiongraph can be made movable.&lt;br /&gt;
It is produced by the following commands:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;jxgbox&amp;quot; class=&amp;quot;jxgbox&amp;quot; style=&amp;quot;width:500px; height:200px;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
  var board = JXG.JSXGraph.initBoard(&amp;#039;jxgbox&amp;#039;, {boundingbox: [-5, 2, 5, -2], axis: true});&lt;br /&gt;
  var A = board.create(&amp;#039;point&amp;#039;, [1, 0], {name:&amp;#039;A&amp;#039;});&lt;br /&gt;
  var B = board.create(&amp;#039;point&amp;#039;, [3, 1], {name:&amp;#039;B&amp;#039;});&lt;br /&gt;
  &lt;br /&gt;
  var f = board.create(&amp;#039;functiongraph&amp;#039;, function(x) {&lt;br /&gt;
      var ax = A.X(),&lt;br /&gt;
          ay = A.Y(),&lt;br /&gt;
          bx = B.X(),&lt;br /&gt;
          by = B.Y(),&lt;br /&gt;
          a = (by - ay) / ( (bx - ax) * (bx - ax) );&lt;br /&gt;
      return a * (x - ax) * (x - ax) + ay;&lt;br /&gt;
  }, {fixed: false});&lt;br /&gt;
  &lt;br /&gt;
  f.addParents([A, B]);&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jsxgraph box=&amp;quot;jxgbox&amp;quot; width=&amp;quot;500&amp;quot; height=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
  var board = JXG.JSXGraph.initBoard(&amp;#039;jxgbox&amp;#039;, {boundingbox: [-5, 2, 5, -2], axis: true});&lt;br /&gt;
  var A = board.create(&amp;#039;point&amp;#039;, [1, 0], {name:&amp;#039;A&amp;#039;});&lt;br /&gt;
  var B = board.create(&amp;#039;point&amp;#039;, [3, 1], {name:&amp;#039;B&amp;#039;});&lt;br /&gt;
  &lt;br /&gt;
  var f = board.create(&amp;#039;functiongraph&amp;#039;, function(x) {&lt;br /&gt;
      var ax = A.X(),&lt;br /&gt;
          ay = A.Y(),&lt;br /&gt;
          bx = B.X(),&lt;br /&gt;
          by = B.Y(),&lt;br /&gt;
          a = (by - ay) / ( (bx - ax) * (bx - ax) );&lt;br /&gt;
      return a * (x - ax) * (x - ax) + ay;&lt;br /&gt;
  }, {fixed: false});&lt;br /&gt;
  &lt;br /&gt;
  f.addParents([A, B]);&lt;br /&gt;
&amp;lt;/jsxgraph&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nicolas.adenis.lamarre</name></author>
	</entry>
</feed>