Advertisement
imk0tter

MATH GATES

Jan 21st, 2025
984
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.48 KB | None | 0 0
  1. alias GATE_A return $CALC(($1 * 2) - 1)
  2. alias GATE_B return $CALC(($1 + 1) /  ($2 + 1))
  3. alias GATE_C return $SQRT($SQRT($CALC($1 * 2)))
  4. alias GATE_D return $CALC($1 ^ (($1 / 5 + 1) ^ $2))
  5.  
  6.  
  7. alias DIVISION_GATE return $GATE_B($GATE_A($1),$GATE_A($2))
  8. alias MULTIPLICATION_GATE return $DIVISION_GATE($1, $DIVISION_GATE(1, $2))
  9. alias INVERT_SIGN_GATE return $MULTIPLICATION_GATE(-1,$1)
  10. alias SUBTRACT_BY_1_GATE return $GATE_A($DIVISION_GATE($1,2))
  11. alias ADD_BY_1_GATE return $INVERT_SIGN_GATE($SUBTRACT_BY_1_GATE($INVERT_SIGN_GATE($1)))
  12. alias ADDITION_GATE return $MULTIPLICATION_GATE($ADD_BY_1_GATE($DIVISION_GATE($1,$2)),$2)
  13. alias SUBTRACTION_GATE return $ADDITION_GATE($1, $INVERT_SIGN_GATE($2))
  14.  
  15. alias SQRT_GATE return $MULTIPLICATION_GATE($GATE_C($DIVISION_GATE($1,2)), $GATE_C($DIVISION_GATE($1,2)))
  16.  
  17. alias ABS_GATE return $SQRT_GATE($MULTIPLICATION_GATE($1,$1))
  18. alias ATAN_GATE return $DIVISION_GATE($1, $ABS_GATE($1))
  19.  
  20. alias HYPOTENUSE_GATE return $SQRT_GATE($ADDITION_GATE($MULTIPLICATION_GATE($1,$1),$MULTIPLICATION_GATE($2,$2)))
  21.  
  22. alias SINE_GATE return $DIVISION_GATE($1, $HYPOTENUSE_GATE($1,$2))
  23. alias TANGENT_GATE return $DIVISION_GATE($1,$2)
  24. alias SECANT_GATE return $DIVISION_GATE($HYPOTENUSE_GATE($1,$2), $1)
  25.  
  26. alias ALTITUDE_LENGTH_GATE return $DIVISION_GATE($1, $DIVISION_GATE($HYPOTENUSE_GATE($1,$2),$2)))
  27. alias ALTITUDE_DIMENSION_GATE return $MULTIPLICATION_GATE($DIVISION_GATE($1, $HYPOTENUSE_GATE($1,$2)), $DIVISION_GATE($2, $DIVISION_GATE($HYPOTENUSE_GATE($1,$2),$2)))
  28.  
Advertisement
Comments
  • imk0tter
    9 days
    # text 0.13 KB | 0 0
    1. https://i.imgur.com/Ugu7zeW.png
    2. https://i.imgur.com/n0H1azm.png
    3. https://i.imgur.com/0q1A781.png
    4. https://i.imgur.com/Dbtgwd3.png
  • imk0tter
    6 days
    # text 2.05 KB | 0 0
    1. A = { [(0,1), INPUT_1], [(1,1), OUTPUT], [(1,0), BLACK], [(0,0), BLACK] }
    2. B ={ [(0,1), INPUT_1], [(1,1), INPUT_2], [(1,0), OUTPUT], [(0,0), BLACK] } (INPUT_1 + 1) / (INPUT_2 + 2))
    3. C = { [(0,1), INPUT_1], [(1,1), BLACK], [(1,0), OUTPUT], [(0,0), BLACK] } (SQRT(SQRT(INPUT_1 * 2)))
    4. D = { [(0,1), INPUT_2], [(1,1), BLACK], [(1,0), OUTPUT], [(0,0), INPUT_1] }
    5. E = { [(0,1), INPUT_1], [(1,1), INPUT_2], [(1,0), INPUT_3], [(0,0), OUTPUT] }
    6.  
    7.  
    8. F = { [ (0, C(2)), INPUT_1], [ (C(2), C(2)), OUTPUT] , [ (C(2), 0), BLACK ] , [ (0,0), BLACK ] } (INPUT_1 - 1)
    9.  
    10.  
    11. G(INPUT_A,INPUT_B) = B(F(INPUT_A), F(F(INPUT_B))) (INPUT_A / INPUT_B)
    12. H(INPUT_A,INPUT_B) = G(INPUT_A, G(1,INPUT_B)) (INPUT_A * INPUT_B)
    13. I(INPUT_A) = H(-1,INPUT_A) (-INPUT_A)
    14. J(INPUT_A) = I(F(I(INPUT_A))) (INPUT_A + 1)
    15. K(INPUT_A,INPUT_B) = H(J(G(INPUT_A,INPUT_B)),INPUT_B) (INPUT_A + INPUT_B)
    16. L(INPUT_A,INPUT_B) = K(INPUT_A, I(INPUT_B)) (INPUT_A - INPUT_B)
    17. M(INPUT_A) = H(C(G(INPUT_A,2), C(G(INPUT_A,2)))) (SQRT(INPUT_A))
    18. N(INPUT_A) = M(H(INPUT_A,INPUT_A)) (ABS(INPUT_A))
    19. O(INPUT_A) = G(INPUT_A,N(INPUT_A)) (ATAN(INPUT_A))
    20. P(INPUT_X, INPUT_Y) = M(K(H(INPUT_X, INPUT_X),H(INPUT_Y,INPUT_Y))) (HYPOTENUSE(INPUT_X, INPUT_Y))
    21. Q(INPUT_X, INPUT_Y) = G(INPUT_X, P(INPUT_X, INPUT_Y)) (SINE(INPUT_X, INPUT_Y))
    22. R(INPUT_X, INPUT_Y) = G(INPUT_X, INPUT_Y) (TANGENT(INPUT_X, INPUT_Y))
    23. S(INPUT_X, INPUT_Y) = G(P(INPUT_X,INPUT_Y), INPUT_X) (SECANT(INPUT_X, INPUT_Y))
    24. T(INPUT_X, INPUT_Y) = G(INPUT_X, G(P(INPUT_X, INPUT_Y),INPUT_Y)) (ALTITUDE_LENGTH(INPUT_X, INPUT_Y))
    25. U(INPUT_X, INPUT_Y) = H(G(INPUT_X, P(INPUT_X, INPUT_Y)), G(INPUT_Y, P(INPUT_X, INPUT_Y),INPUT_Y)) (ALTITUDE_DIMENSION(INPUT_X, INPUT_Y))
    26. V(INPUT_A, INPUT_B, INPUT_C) = K(H(INPUT_A,INPUT_B),INPUT_C)) (INPUT_A + (INPUT B * INPUT_C))
    27.  
    28.  
    29.  
Add Comment
Please, Sign In to add comment
Advertisement