// CSCI 1300 Fall 2022 // Author: Navan Chauhan // Recitation: 307 – TA name // Homework 2 - Problem 6 #include #include // Required for using the exp function using namespace std; int main() { double x = 0; double sigmoid = 0; cout << "Enter a value for x:\n"; // User input cin >> x; sigmoid = 1/(1+(exp(-x))); cout << "The sigmoid for x=" << x << " is " << sigmoid; // prints our sigmoid function return 0; }