I don't think so -- your reply was just fine for the OPs question. We were just trying to point out the much richer structure of logarithms and exponents as an additional FYI for the curious among us.Apologies for my simple reply! I misinterpreted the question.
But not negative numbers, unless you want to tangle with complex numbers.You can express any number at all as a power of 10 using logarithms.
You can be more general than that. Suppose I want the binary logarithm of 1024. Do ln(1024)/ln(2) = 6.9314718056/0.69314718056 = 10 . Or use a different log base for calculation; log(1024)/log(2) = 3.0102995664/0.301029995664 = 10 . But don't try to find the logarithm of a negative number unless you can accept complex numbers.To find what power of 10 equals a specific number X (any real number), you have . Take the base 10 log of both sides of the equation: .
You can be more general than that. Suppose I want the binary logarithm of 1024. Do ln(1024)/ln(2) = 6.9314718056/0.69314718056 = 10 . Or use a different log base for calculation; log(1024)/log(2) = 3.0102995664/0.301029995664 = 10 .
y = 10^x
-y = -10^x
What is log10(-3)? How are you going to put a minus sign in front of that?For negative numbers you just put a minus sign in front of both sides as in
Code:
y = 10^x
-y = -10^xWhere is the need for compex numbers?
Yes, but negative numbers are real numbers, too. I was just being pedantic in pointing out that logs of negative numbers are not real like positive numbers are....The original problem was to represent a real number as a power of 10.
by Duane Benson
by Duane Benson
by Duane Benson