Mathematische Befehle


    L = long Register, D = double Register
    S = string Variable


    inc_l       L;              addiere eins
    inc_d       D;

    dec_l       L;              subtrahiere eins
    dec_d       D;


                      |-------- Ergebnis Register
    add_l       L, L, L;
    add_d       D, D, D;

    sub_l       L, L, L;
    sub_d       D, D, D;

    mul_l       L, L, L;
    mul_d       D, D, D;

    div_l       L, L, L;
    div_d       D, D, D;

    smul_l      L, L, L;        Verschiebe Multiplikation
    sdiv_l      L, L, L;        Verschiebe Division

    and_l       L, L, L;        Logisches und
    or_l        L, L, L;        Logisches oder
    band_l      L, L, L;        Bit Operatoren
    bor_l       L, L, L;
    bxor_l      L, L, L;
    mod_l       L, L, L;        Modulo


                      |-------- setze zu "1" wenn wahr, "0" wenn falsch
    eq_l        L, L, L;        gleich
    eq_d        D, D, L;
    eq_s        S, S, L;
    neq_l       L, L, L;        ungleich
    neq_d       D, D, L;
    neq_s       S, S, L;
    gr_l        L, L, L;        grösser
    gr_d        D, D, L;
    ls_l        L, L, L;        kleiner
    ls_d        D, D, L;
    greq_l      L, L, L;        grösser oder gleich
    greq_d      D, D, L;
    lseq_l      L, L, L;        leiner oder gleich
    lseq_d      D, D, L;
    
    
    srand_l     L;              initialisiere Zufahlszahlengenarator
    rand_l      L;              erzeuge Zufahlszahl
    rand_d      D;              erzeuge Zufahlszahl (0 - 1)
    
    abs_l       L, L;           Absoluter Wert
    abs_d       D, D;
    
    ceil_d      D, D;           Runde zur höheren Zahl
    floor_d     D, D;           Runde zur niedrigeren Zahl
    
    exp_d       D, D;
    log_d       D, D;
    log10_d     D, D;
    pow_d       D1, D2, D3;     potenziere D1 mit D2
    sqrt_d      D, D;           Quadratwurzel
    
    cos_d       D, D;
    sin_d       D, D;
    tan_d       D, D;
    
    acos_d      D, D;           Arcus cosinus
    asin_d      D, D;
    atan_d      D, D;

    cosh_d      D, D;           Hyperbol cosinus
    sinh_d      D, D;
    tanh_d      D, D;
    
Prev: Zeit | Next: Typen umwandeln