Updated documentation. Try #2.
This commit is contained in:
committed by
Alexander Kryklia
parent
c9c328cf39
commit
442e112d6f
@@ -3,10 +3,10 @@
|
||||
<render>
|
||||
<h2>Graphic slider tool: Dynamic range and implicit functions.</h2>
|
||||
|
||||
<p>You can make x range (not ticks of x axis) of functions to depend on
|
||||
<p>You can make x range (not ticks of x axis) of functions to depend on
|
||||
parameter value. This can be useful when function domain depends
|
||||
on parameter.</p>
|
||||
<p>Also implicit functons like circle can be plotted as 2 separate
|
||||
<p>Also implicit functons like circle can be plotted as 2 separate
|
||||
functions of same color.</p>
|
||||
<div style="height:50px;">
|
||||
<slider var='a' style="width:400px;float:left;"/>
|
||||
@@ -19,18 +19,14 @@
|
||||
<param var="a" min="5" max="25" step="0.5" initial="12.5" />
|
||||
</parameters>
|
||||
<functions>
|
||||
<function color="red">return Math.sqrt(a * a - x * x);</function>
|
||||
<function color="red">return -Math.sqrt(a * a - x * x);</function>
|
||||
<function color="red">Math.sqrt(a * a - x * x)</function>
|
||||
<function color="red">-Math.sqrt(a * a - x * x)</function>
|
||||
</functions>
|
||||
<plot>
|
||||
<xrange>
|
||||
<!-- dynamic range -->
|
||||
<min>
|
||||
return -a;
|
||||
</min>
|
||||
<max>
|
||||
return a;
|
||||
</max>
|
||||
<min>-a</min>
|
||||
<max>a</max>
|
||||
</xrange>
|
||||
<num_points>1000</num_points>
|
||||
<xticks>-30, 6, 30</xticks>
|
||||
|
||||
Reference in New Issue
Block a user