This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Ranchers don't generally do homework for you, unless maybe for a fee that would let me retire tomorrow. Are you stuck on the math algorithms? I'd just Google for those. Give it a shot and see if you can get something going! [ August 02, 2007: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
If this is for a class, perhaps using a Taylor series would be appropriate for each. There may well be better ways to do this, depending on the desired domain of the functions, and how much effort it's worth to optimize speed. But that's where I'd probably start, assuming a Google search numeric approximations for eponentials and logarithms doesn't give you better ideas.
Of course if it's not for a class, then yes there's a much simpler solution suggested in earlier answers...