Error: invalid operands of typed 'double(double)' and 'double(double)' to binary 'operator/'

#include <iostream>
#include <cmath>
#include "assign4.h"
using namespace std;


/** newton *********************************************************
*
* @params - x -- an estimation of the square root of a number
* tol -- a tolerance that should be greater than the absolute value of the difference between an estimation and the previous estimation.
* maxIt -- the maximum number of iterations computed before a final estimation is found.
* @pre - x>=0
*
* @returns an estimated square root of a number.
* **************************************************************************/

double newton(double x, double tol, int maxIt);
int main () {
double squareRoot;
squareRoot = newton(-1.5,0.0001,10);
cout << "The square root of f(x) = x2e-x-2 is approximately " << squareRoot;
return 0;
}


double newton(double x, double tol, int maxIt) {
double previousEstimate;
double difference;
double theSolution;
previousEstimate = x;
difference = previousEstimate - x;
theSolution = x - eff / effPrime; *************
x = (previousEstimate + theSolution)/2;
while( abs (difference) > tol);
return x;
}








eff and effPrime are defined in assign4.h, but for some reason I keep getting this error on theSolution = x - eff / effPrime.
Show content of assign4.h.
Bunch of '*' after that line will cause compile errors too.
Topic archived. No new replies allowed.