<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://dedk.de/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://dedk.de/wiki/feed.php">
        <title>Siedler DEdK Wiki - scripting:reference:standard_library:math</title>
        <description></description>
        <link>https://dedk.de/wiki/</link>
        <image rdf:resource="https://dedk.de/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-19T13:59:43+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:abs&amp;rev=1699014415&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:atan&amp;rev=1699022248&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:atan2&amp;rev=1699025780&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:ceil&amp;rev=1699027439&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:cos&amp;rev=1699089470&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:deg&amp;rev=1699090207&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:floor&amp;rev=1699182565&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:rad&amp;rev=1699459577&amp;do=diff"/>
                <rdf:li rdf:resource="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:sin&amp;rev=1699183260&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://dedk.de/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Siedler DEdK Wiki</title>
        <link>https://dedk.de/wiki/</link>
        <url>https://dedk.de/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:abs&amp;rev=1699014415&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-03T12:26:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>abs</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:abs&amp;rev=1699014415&amp;do=diff</link>
        <description>math.abs

math.abs(_a) berechnet den Absolutbetrag einer Zahl _a. Positive Zahlen bleiben unverändert, negative Zahlen verlieren ihr Vorzeichen:


print(math.abs(5)) -- 5
print(math.abs(-42)) -- 42
print(math.abs(-math.pi)) -- 3.141...


Beispiel Anwendungsfall</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:atan&amp;rev=1699022248&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-03T14:37:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>atan</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:atan&amp;rev=1699022248&amp;do=diff</link>
        <description>math.atan

math.atan(_a) berechnet den Arcus Tangens bzw. tan-1 einer Zahl _a. Die Funktion wird in der Regel dazu verwendet, einen Winkel α wie im Bild unten dargestellt zu ermitteln.



math.atan(dy/dx) wird dabei α ergeben.

Wichtig: Der Winkel wird im</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:atan2&amp;rev=1699025780&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-03T15:36:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>atan2</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:atan2&amp;rev=1699025780&amp;do=diff</link>
        <description>math.atan2

math.atan2(_a, _b) berechnet den Arcus Tangens bzw. tan-1 des Quotienten _a/_b. Die Funktion wird in der Regel dazu verwendet, einen Winkel α wie im Bild unten dargestellt zu ermitteln.



math.atan2(dy, dx) wird dabei α ergeben.

Wichtig</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:ceil&amp;rev=1699027439&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-03T16:03:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ceil</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:ceil&amp;rev=1699027439&amp;do=diff</link>
        <description>math.ceil

math.ceil(_a) rundet eine Zahl _a zur nächstgrößeren ganzen Zahl auf. Ist _a bereits eine ganze Zahl, bleibt sie unverändert.


print(math.ceil(3.4)) -- 4
print(math.ceil(3.0001)) -- 4
print(math.ceil(3)) -- 3
print(math.ceil(-3.4)) -- -3</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:cos&amp;rev=1699089470&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-04T09:17:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cos</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:cos&amp;rev=1699089470&amp;do=diff</link>
        <description>math.cos

math.cos(_a) berechnet den Kosinus des Winkels _a, also das Verhältnis der Längen von Ankathete zu Hypotenuse im rechtwinkligen Dreieck.

Wichtig: Die Funktion geht davon aus, dass _a im Bogenmaß angegeben wird! Ist ein Gradmaß gegeben, muss der Winkel zuerst mit</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:deg&amp;rev=1699090207&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-04T09:30:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>deg</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:deg&amp;rev=1699090207&amp;do=diff</link>
        <description>math.deg

math.deg(_a) rechnet einen Winkel _a vom Bogenmaß ins Gradmaß um, also vom Werteberech 0..2π in den Wertebereich 0..360.


print(math.deg(math.pi)) -- 180
print(math.deg(math.pi/2)) -- 90
print(math.deg(-math.pi)) -- -180
print(math.deg(0)) -- 0</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:floor&amp;rev=1699182565&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-05T11:09:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>floor</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:floor&amp;rev=1699182565&amp;do=diff</link>
        <description>math.floor

math.floor(_a) rundet eine Zahl _a zur nächstkleineren ganzen Zahl ab. Ist _a bereits eine ganze Zahl, bleibt sie unverändert.


print(math.floor(3.6)) -- 3
print(math.floor(3.9999)) -- 3
print(math.floor(3)) -- 3
print(math.floor(-3.4)) -- -4</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:rad&amp;rev=1699459577&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-08T16:06:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>rad</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:rad&amp;rev=1699459577&amp;do=diff</link>
        <description>math.rad

math.rad(_a) rechnet einen Winkel _a vom Gradmaß ins Bogenmaß um, also vom Werteberech 0..360 in den Wertebereich 0..2π.


print(math.rad(180)) -- π
print(math.rad(90)) -- π/2
print(math.rad(-180)) -- -π
print(math.rad(0)) -- 0


Beispiel Anwendungsfall</description>
    </item>
    <item rdf:about="https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:sin&amp;rev=1699183260&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-05T11:21:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sin</title>
        <link>https://dedk.de/wiki/doku.php?id=scripting:reference:standard_library:math:sin&amp;rev=1699183260&amp;do=diff</link>
        <description>math.sin

math.sin(_a) berechnet den Sinus des Winkels _a, also das Verhältnis der Längen von Gegenkathete zu Hypotenuse im rechtwinkligen Dreieck.

Wichtig: Die Funktion geht davon aus, dass _a im Bogenmaß angegeben wird! Ist ein Gradmaß gegeben, muss der Winkel zuerst mit</description>
    </item>
</rdf:RDF>
