right i was wondering if anyone could provide assistance with coding 2 implicit functions in C++/OpenGL
as an example i've got the following C++ func controlling the implicit functions -
now - i have to code two functions into the same program and these new functions contain exponentials which i can't figure out -
ye^x + xsin(y) - 1 = 0
ye^-x - xe^y = 0
i've been looking at the contents of the math.h lib but i still can't really figure out how to input these functions.
any help would be apreciated
as an example i've got the following C++ func controlling the implicit functions -
Code:
GLfloat Implicit(GLfloat x, GLfloat y)
{
GLfloat xs, ys;
xs = (x - X0)/XS; // Translate & scale.
ys = (y - Y0)/YS;
return xs*xs + ys*ys - 1.0; // Circle of (scaled) radius 1.
}
now - i have to code two functions into the same program and these new functions contain exponentials which i can't figure out -
ye^x + xsin(y) - 1 = 0
ye^-x - xe^y = 0
i've been looking at the contents of the math.h lib but i still can't really figure out how to input these functions.
any help would be apreciated

Last edited: