Answer
- You need to know the name of my function. (My function is called
``SOLVE''.)
- You need to know what type of value it returns. (My function returns
a REAL result.)
- You need to know the number and types of the arguments. (My
function takes two REAL arguments. We'll call the first one ``P'' and
the second one ``Q'', although I may have used different names in the
actual implementation.)
- You need to know if there are any restrictions on the possible values
of the arguments. (My function requires that ``Q'' be nonzero. If
the second argument to my function is 0, I can't guarantee anything
about what it might do. Buyer beware!)
- You need to know what my function does. (My function returns the
solution to the equation given above.)
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu