Documentation/Calc Functions/COS

From The Document Foundation Wiki
Jump to navigation Jump to search
This page is a translated version of the page Documentation/Calc Functions/COS and the translation is 41% complete.
Outdated translations are marked like this.
Other languages:
English • ‎Nederlands • ‎dansk • ‎español • ‎עברית

Template:Documentation/Calc Functions/Func Page Links/da

Funktionsnavn:

COS

Kategori:

Matematisk

Resume:

Returnerer cosinus af den givne vinkel (i radianer).

Syntaks:

COS(tal)

Returnerer:

Returnerer den (trigonometriske) cosinus af taller, vinklen i radianer. Den resulterende værdi er mellem -1 og 1, dvs. [-1,1].

Argumenter:

Tallet er det reelle tal, eller en reference til en celle, der indeholder tallet, som er vinklen i radianer, hvis cosinus skal beregnes.

  • If Number is non-numeric, then COS reports a #VALUE! error.

Yderligere oplysninger:

For at indsætte en vinkel i grader, multiplicerer du enten vinklen med PI()/180 eller bruger funktionen RADIANER til at konvertere vinklen til radianer.

The formula for the trigonometric cosine of x is:

[math]\displaystyle{ \cos(x)~=~\sum_{n=0}^{\infty }\frac{(-1)^{n}}{(2n)!}~x^{2n} }[/math]

GIFen herunder illustrerer funktionen COS:

Funktionen COS

Eksempler:

Template:Calc-Formula/da Template:Calc-Description/da Template:Calc-Returns/da
=COS(1) Trigonometric cosine of 1 radian. 0,54030230586814
=COS(D1) where cell D1 contains the number -0.5. Trigonometric cosine of -½ radian. 0,877582561890373
=COS(PI()*2) Trigonometric cosine of 2π radians. 1
=COS(RADIANS(60)) Trigonometric cosine of 60°, after first converting the angle from degrees to radians. 0,5
=DEGREES(ACOS(COS(RADIANS(60))) An angle of 60° is converted to radians, its cosine is taken, then the inverse cosine of that value is calculated, and finally the result is converted back to degrees. 60

Beslægtede LibreOffice-funktioner:

ACOS

COT

CSC

SEC

SIN

TAN

ODF standard:

Tilsvarende Excel-funktioner:

COS