Documentation/Calc Functions/COS

    From The Document Foundation Wiki
    This page is a translated version of the page Documentation/Calc Functions/COS and the translation is 6% complete.
    Outdated translations are marked like this.


    Funktionsnavn:

    COS

    Kategori:

    Matematisk

    Resume:

    Returnerer cosinus af den givne vinkel (i radianer).

    Syntaks:

    COS(Number)

    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 #VÆRDI! 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:

    Formula Description Returns
    =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(RADIANER(60)) Trigonometric cosine of 60°, after first converting the angle from degrees to radians. 0,5
    =GRADER(ARCCOS(COS(RADIANER(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:

    ARCCOS

    COT

    CSK

    SEK

    SIN

    TAN

    ODF standard:

    Relaterede (eller lignende) Excel-funktioner:

    COS