Click or drag to resize

ScriptExecutionBaseLog(Double, Double) Method

Returns the logarithm of a specified number in a specified base.

Namespace: Altaxo.Calc
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static double Log(
	double s,
	double bas
)

Parameters

s  Double

[Missing <param name="s"/> documentation for "M:Altaxo.Calc.ScriptExecutionBase.Log(System.Double,System.Double)"]

bas  Double

[Missing <param name="bas"/> documentation for "M:Altaxo.Calc.ScriptExecutionBase.Log(System.Double,System.Double)"]

Return Value

Double
One of the values in the following table. (+Infinity denotes PositiveInfinity, -Infinity denotes NegativeInfinity, and NaN denotes NaN.)
anewBase Return value
a> 0 (0 <newBase< 1) -or- (newBase> 1) lognewBase(a)
a< 0 (any value) NaN
(any value)newBase< 0 NaN
a != 1newBase = 0 NaN
a != 1newBase = +Infinity NaN
a = NaN (any value) NaN
(any value)newBase = NaN NaN
(any value)newBase = 1 NaN
a = 0 0 <newBase< 1 +Infinity
a = 0newBase> 1 -Infinity
a = +Infinity 0 <newBase< 1 -Infinity
a = +InfinitynewBase> 1 +Infinity
a = 1newBase = 0 0
a = 1newBase = +Infinity 0
See Also