You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example: imagine we want to plot the curve $f(x) = 1/x$ on the interval $x \in [-a, a]$. Since $f(0)$ is not defined, the current way of doing that is to create two intervals:
With an 'exclude' parameter on 'curvipy.Interval' class, we could accomplish the same goal with only one interval:
importcurvipydeff(x):
return1/xplotter=curvipy.Plotter()
a=10curve=curvipy.Function(f)
interval=curvipy.Interval(-a, a, 200, exclude=[0])
plotter.plot_curve(curve, interval)
plotter.wait()
If somebody wants to work on it, please make a comment. Implementing this is not as easy as it seems and might need modifications in other classes like curvipy.Plotter and/or curvipy.Curve.
The text was updated successfully, but these errors were encountered:
The idea is to exclude a list of values from the interval, so they won't be considered when plotting the curve.
Example: imagine we want to plot the curve$f(x) = 1/x$ on the interval $x \in [-a, a]$ . Since $f(0)$ is not defined, the current way of doing that is to create two intervals:
With an 'exclude' parameter on 'curvipy.Interval' class, we could accomplish the same goal with only one interval:
If somebody wants to work on it, please make a comment. Implementing this is not as easy as it seems and might need modifications in other classes like curvipy.Plotter and/or curvipy.Curve.
The text was updated successfully, but these errors were encountered: