# Exponentiella och logaritmiska funktioner

Den här delen beskriver funktioner som är relaterade till exponential- och logaritmberäkningar. Alla funktioner kan användas både i dataladdningsskriptet och diagramuttryck.

I funktionerna nedan är parametrarna uttryck där x och y ska tolkas som reella tal.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ExponentialAndLogarithmicFunctions/exponential-logarithmic-functions.htm)

#### exp

Den naturliga exponentiella funktionen, e^x, med den naturliga logaritmen e som bas. Resultatet blir ett positivt tal.

exp(x )

Exempel och resultat:

`exp(3)` returnerar 20,085.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ExponentialAndLogarithmicFunctions/exponential-logarithmic-functions.htm)

#### log

Den naturliga logaritmen av x. Funktionen är bara definierad om x&gt; 0. Resulterar i ett tal.

log(x )

Exempel och resultat:

`log(3)` returnerar 1,0986.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ExponentialAndLogarithmicFunctions/exponential-logarithmic-functions.htm)

#### log10

Den vanliga logaritmen (bas 10) av x. Funktionen är bara definierad om x&gt; 0. Resulterar i ett tal.

log10(x )

Exempel och resultat:

`log10(3)` returnerar 0,4771.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ExponentialAndLogarithmicFunctions/exponential-logarithmic-functions.htm)

#### pow

Returnerar x upphöjt till y. Resulterar i ett tal.

pow(x,y )

Exempel och resultat:

`pow(3, 3)` returnerar 27.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ExponentialAndLogarithmicFunctions/exponential-logarithmic-functions.htm)

#### sqr

x i kvadrat (x upphöjt till 2). Resulterar i ett tal.

sqr (x )

Exempel och resultat:

`sqr(3)` returnerar 9.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ExponentialAndLogarithmicFunctions/exponential-logarithmic-functions.htm)

#### sqrt

Kvadratroten av x. Funktionen är bara definierad om x &gt;= 0. Resultatet blir ett positivt tal.

sqrt(x )

Exempel och resultat:

`sqrt(3)` returnerar 1,732.