This math a group; this is not a computer group. Though we know some programming languages, what the heck is KBH? More importantly, simply state your three equations in mathematical language, if you're asking a question about solving them. If instead, you're asking about your code, then find a computer group.
The subject is a presentation and not a question.
The computer code runs in Delphi console-mode or in TP7.
A computer program that computes math might be math. But really it would be of very little interest to someone in a computer forum that's just trying to debug one of their programs.
KBH is KBH Applications. When I post code it's just not one of my shareware developments.