Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark From: ark@alice.UucP (Andrew Koenig) Newsgroups: net.lang.c Subject: Re: Exponetiation Message-ID: <5664@alice.uUCp> Date: Thu, 19-Jun-86 09:51:37 EDT Article-I.D.: alice.5664 Posted: Thu Jun 19 09:51:37 1986 Date-Received: Sat, 21-Jun-86 08:07:31 EDT References: <366@bucsb.bu.edu.UUCP> Organization: Bell Labs, Murray Hill Lines: 9 > I'm confused. I've been trying to figure out a quick and easy way > to exponetiate to a fraction (ie. x^(4.25)) and also be able to > figure out the power when given the base and the result. a^b is exp(b*ln(a)). So, if x = a^b and you know a and x, exp(b*ln(a)) = x b * ln(a) = ln(x) b = ln(x) / ln(a)