Log10 function

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Math

Package: Microsoft.Quantum.QSharp.Foundation

Returns the base-10 logarithm of a specified number.

function Log10 (input : Double) : Double

Input

input : Double

The non-negative number whose base-10 logarithm is to be computed.

Output : Double

The base-10 logarithm of input, such that PowD(10.0, Log10(input)) is approximately the same as input.

Remarks

Note that on some execution targets, this function may be implemented by a limited-precision algorithm.