함수를 그 영역에서 플롯
함수의 영역을 기호적으로 결정하고 그 위에 플롯합니다.
In[1]:=
![Click for copyable input](assets.ko/plot-a-function-over-its-domain/In_68.png)
f = Sqrt[x^3 - x]/(x^2 + 1)
Out[1]=
![](assets.ko/plot-a-function-over-its-domain/O_54.png)
In[2]:=
![Click for copyable input](assets.ko/plot-a-function-over-its-domain/In_69.png)
domain = With[{f = f}, ImplicitRegion[FunctionDomain[{f}, x], x]]
Out[2]=
![](assets.ko/plot-a-function-over-its-domain/O_55.png)
In[3]:=
![Click for copyable input](assets.ko/plot-a-function-over-its-domain/In_70.png)
Plot[f, Element[x, domain], PlotTheme -> "Scientific",
Filling -> Axis, ImageSize -> 400]
Out[3]=
![](assets.ko/plot-a-function-over-its-domain/O_56.png)