Documentation/Calc Functions/ARCTAN2

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


    Funktionsnavn:

    ARCTAN2

    Kategori:

    Matematisk

    Resume:

    Returnerer vinklen (i radianer) mellem x-aksen og en linje fra nulpunktet (tallet X | tallet Y). Denne funktion beregner principalværdien.

    Syntaks:

    ARCTAN2(Number X; Number Y)

    Returnerer:

    ATAN2 returnerer vinklen (i radianer) mellem x-aksen og en linje fra nulpunktet til punktet ( tallet X | tallet Y). Vinklen returneres mellem -PI og PI, dvs. [-π,π].

    If the function returns a positive angle it represents a counterclockwise angle from the x-axis, while a negative result represents a clockwise angle.

    Argumenter:

    Tallet X er værdien af ordinaten (x).

    Tallet Y er værdien af koordinanten (y).

    • Tallet X og tallet Y kan begge være 0, hvortil funktionen returnerer 0.
    • If Number X and Number Y are both equal to 0, then ARCTAN2 returns the value 0.

    Yderligere oplysninger:

    The following illustration shows the geometry used by ARCTAN2 (φ is the angle calculated).

    ATAN2 arguments.png
    • * Til at returnere en vinkel i grader bruger du funktionen GRADER.
    • Hvis funktionen returnerer en positiv vinkel, repræsenterer det en vinkel imod uret fra x-aksen, mens et negativt resultat repræsenterer en vinkel med uret.
    • Alternatively multiply by 180/PI() to convert the result from radians to degrees.
    • Template:Pin

    Eksempler:

    Formula Description Returns
    =ARCTAN2(−5; 9) Here the function calculates the angle (in radians) between the x-axis and a line from the origin to the point (-5, 9). 2,07789483118723
    =GRADER(ARCTAN2(12,3; 12,3)) Here the function calculates the angle (in degrees) between the x-axis and a line from the origin to the point (12.3, 12.3). 45
    =ARCTAN2(D1; D2) where cells D1 and D2 both contain the value 0. Here the function returns 0. 0
    =ARCTAN2(−5; −3)*180/PI() Here the function calculates the angle (in degrees) between the x-axis and a line from the origin to the point (-5, -3). −149,036243467926
    GRADER(ARCTAN2(−8; 5)) Here the function calculates the angle (in degrees) between the x-axis and a line from the origin to the point (-8, 5). 147,994616791916

    Beslægtede LibreOffice-funktioner:

    ARCCOS

    ARCCOT

    ARCSIN

    ARCTAN

    TAN

    ODF standard:

    Section 6.16.10, part 2

    Tilsvarende Excel-funktioner:

    ATAN2