Basic Examples (8)
Find the discontinuities and plot a function:
Explicitly give the discontinuity:
Plot a function with a removable discontinuity:
Explicitly give the discontinuity:
Remove the discontinuity:
Remove the discontinuity but show the break point:
Plot a function with an asymptote at x=-1, a horizontal asymptote at y=0, a jump discontinuity at x=2, and a removable discontinuity at x=3:
"FindAsymptote" misses the horizontal asymptote at y=0:
An example from the resource function FunctionDiscontinuities:
Plot the result using the Plot command and the option ExclusionsStyle:
Use EnhancedPlot to obtain a much better plot:
It is not necessary to call on the resource function Asymptotes to find the vertical asymptotes of the following function since they are among the discontinuities found by the resource function FunctionDiscontinuities:
Plot a function with asymptotes and a removable discontinuity:
Remove the singularity by appropriately defining the function at x=3 so that f(3)=limn→3f(x):
Explicitly list the jump point and add the asymptotes manually:
Plot a function with a jump discontinuity:
A function with an odd root over a domain consisting of two disjoint intervals with one interval containing negative numbers. Plot the function and its derivative:
Options (17)
Asymptote and AsymptoteStyle (1)
Plot a function with two vertical asymptotes and apply a style to the asymptotes:
DrawPoint and DrawPointStyle (2)
Plot a curve with a removable discontinuity and two points drawn off the curve:
Plot a curve with a removable discontinuity and several points drawn on the curve:
Exception (1)
Create plot with several exceptions; a removable discontinuity (at x=-1/2), a jump discontinuity (at x=-1) and an infinite discontinuity (at x=1):
FindAsymptotes (2)
Setting "FindAsymptotes"→True uses the resource function Asymptotes to find the asymptotes (one vertical and one oblique) of the following function:
Plot a function with asymptotes (vertical and other):
FindExceptions (3)
Setting "FindExceptions"→True uses the resource function FunctionDiscontinuities to find the discontinuities:
Plot two functions:
If a point is listed as an exception but isn’t an exception, then a solid point is plotted on the graph:
HorizontalAsymptote and HorizontalAsymptoteStyle (1)
Plot a function with its horizontal asymptote:
PointStyle (1)
Make the points bigger:
PowerBehavior (1)
By default, the Wolfram Language returns the principal root of a number. If the number is real and negative and the root is odd, then the principal root is an imaginary number. Setting "PowerBehavior" to Real (the default) will force EnhancedPlot to plot the positive root:
ZeroToNull (5)
By default, the Wolfram Language does not produce a correct plot of a piecewise function whose domain consists of disjoint intervals. The reason is that it uses 0 as the default value if none of the conditions apply:
A correct plot is obtained by manually setting the default value of the Piecewise to Null:
EnhancedPlot automatically sets the default value of Piecewise to Null:
Return default Plot behavior by setting the option "ZeroToNull" to False:
Note that with the option "ZeroToNull" set to False, "FindExceptions" will list the break points as jump discontinuities:
Possible Issues (4)
The resource function Asymptotes can be very slow:
This contributes a significant amount of time to EnhancedPlot if the setting "FindAsymptotes"→True is used:
On the other hand, "FindExceptions" is very fast:
The resource function Asymptotes can miss the asymptotes of some functions:
The resource function FunctionDiscontinuities will find the exceptions:
EnhancedPlot sometimes misses a removable discontinuity:
However, the discontinuity can be listed manually:
When a discontinuity denoted by a filled circle is overlapped by a empty circle, the filled circle is covered by the empty circle. That is, the empty circle is not really empty (see behavior at x=4):