Secant and Curve
I want to make a secant line crossing a curve, how do I draw the curve on the xyplot?
Thanks

You can draw the curve on the xyPlot by calculating the values of the curve over a range, and adding each value to your series. For example:
<script>
for x = 5, 5, 0.1 do
y = 0.25*(x+2)*(x+1)*(x1)*(x3)
myPlot.curve:Add(x,y)
end
</script>
<xyPlot name="myPlot">
<axis dim="x" auto="fixed" min="5" max="5" />
<series name="curve" />
<series name="secLine" capacity="2" />
</xyPlot>This plots the example function over the range of 5 to 5.
You can then draw the secant line by adding two points along the curve to a different series.
Please sign in to leave a comment.
Comments
1 comment