Query for setting the condition of "undefined" in C++ Like:
double func(double x)
{
    double f = sin(x) / x;
    return f;
}
int main(){
    double l;
    cout << "Enter x= ";
    cin >> l;
    if(condition for setting f(x)==nan){
    cout<<"The value can not be defined"<<endl;
    }
    else{
    cout<<"the value of f = "<<f(x)<<endl;
    } 
    return 0;
}
If I have to put the condion for checking the value of f(x) is undefined(displays nan in terminal), what should I write when I don't know at which value of x f(x) in undefined. In shorts, f(x)==?? (what should I put??)
