

You can also use printf("%f\n", pow(10, log10(17))) Īs these will operate in base 10 and return the correct result due to being in the same base. Prints 681.103864, which is clearly not what you want. You just need to make sure you use the right pair of functions to ensure you get the right inverse, i.e.: printf("%f\n", exp(logf(17)))
#Calculate antilog on windows calculator how to#
How to play Desmos Scientific Calculator with GameLoop on PC, 1. However, if you use the log function and take the logarithm in base e, using exp(logarithm) returns the value of e^logarithm, and could potentially be more accurate than using pow(2.7182818285, logarithm) due to variations in precision. In addition to the basic operations, take advantage of a variety of built-in functions. If you take the base 10 or other base logarithm of the number, you would use pow(base, exponent) to get the original number back, where base is the base the logarithm was taken in and exponent is the logarithm. The log10 function does it in base 10, that is, it finds x where your number = 10^x. The log function does it in base e, that is, it takes the natural logarithm, or, it finds x where your number = e^x. How to Do Antilog on Calculator To perform the antilog function on the Scientific calculator, we must first find and press the button labeled '2nd' and then press the log button, and finally, plug. The logarithm of a number can be taken in any base. Of course, you could always use the log10 function to get the base 10 logarithm of the number instead, and then you would need to use pow(10, logarithm) to get the original value. Since the log function returns the natural logarithm of the number, you need to use exp, not pow to get the inverse, since the pow function accepts the base as an argument, and you don't need this since you're taking the natural logarithm of the number, that is, finding x in where the number = e^x.

You're looking for the exp function: ans = exp(exponent)
