Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias GATE_A return $CALC(($1 * 2) - 1)
- alias GATE_B return $CALC(($1 + 1) / ($2 + 1))
- alias GATE_C return $SQRT($SQRT($CALC($1 * 2)))
- alias GATE_D return $CALC($1 ^ (($1 / 5 + 1) ^ $2))
- alias DIVISION_GATE return $GATE_B($GATE_A($1),$GATE_A($2))
- alias MULTIPLICATION_GATE return $DIVISION_GATE($1, $DIVISION_GATE(1, $2))
- alias INVERT_SIGN_GATE return $MULTIPLICATION_GATE(-1,$1)
- alias SUBTRACT_BY_1_GATE return $GATE_A($DIVISION_GATE($1,2))
- alias ADD_BY_1_GATE return $INVERT_SIGN_GATE($SUBTRACT_BY_1_GATE($INVERT_SIGN_GATE($1)))
- alias ADDITION_GATE return $MULTIPLICATION_GATE($ADD_BY_1_GATE($DIVISION_GATE($1,$2)),$2)
- alias SUBTRACTION_GATE return $ADDITION_GATE($1, $INVERT_SIGN_GATE($2))
- alias SQRT_GATE return $MULTIPLICATION_GATE($GATE_C($DIVISION_GATE($1,2)), $GATE_C($DIVISION_GATE($1,2)))
- alias ABS_GATE return $SQRT_GATE($MULTIPLICATION_GATE($1,$1))
- alias ATAN_GATE return $DIVISION_GATE($1, $ABS_GATE($1))
- alias HYPOTENUSE_GATE return $SQRT_GATE($ADDITION_GATE($MULTIPLICATION_GATE($1,$1),$MULTIPLICATION_GATE($2,$2)))
- alias SINE_GATE return $DIVISION_GATE($1, $HYPOTENUSE_GATE($1,$2))
- alias TANGENT_GATE return $DIVISION_GATE($1,$2)
- alias SECANT_GATE return $DIVISION_GATE($HYPOTENUSE_GATE($1,$2), $1)
- alias ALTITUDE_LENGTH_GATE return $DIVISION_GATE($1, $DIVISION_GATE($HYPOTENUSE_GATE($1,$2),$2)))
- alias ALTITUDE_DIMENSION_GATE return $MULTIPLICATION_GATE($DIVISION_GATE($1, $HYPOTENUSE_GATE($1,$2)), $DIVISION_GATE($2, $DIVISION_GATE($HYPOTENUSE_GATE($1,$2),$2)))
Advertisement
Comments
-
- https://i.imgur.com/Ugu7zeW.png
- https://i.imgur.com/n0H1azm.png
- https://i.imgur.com/0q1A781.png
- https://i.imgur.com/Dbtgwd3.png
-
- A = { [(0,1), INPUT_1], [(1,1), OUTPUT], [(1,0), BLACK], [(0,0), BLACK] }
- B ={ [(0,1), INPUT_1], [(1,1), INPUT_2], [(1,0), OUTPUT], [(0,0), BLACK] } (INPUT_1 + 1) / (INPUT_2 + 2))
- C = { [(0,1), INPUT_1], [(1,1), BLACK], [(1,0), OUTPUT], [(0,0), BLACK] } (SQRT(SQRT(INPUT_1 * 2)))
- D = { [(0,1), INPUT_2], [(1,1), BLACK], [(1,0), OUTPUT], [(0,0), INPUT_1] }
- E = { [(0,1), INPUT_1], [(1,1), INPUT_2], [(1,0), INPUT_3], [(0,0), OUTPUT] }
- F = { [ (0, C(2)), INPUT_1], [ (C(2), C(2)), OUTPUT] , [ (C(2), 0), BLACK ] , [ (0,0), BLACK ] } (INPUT_1 - 1)
- G(INPUT_A,INPUT_B) = B(F(INPUT_A), F(F(INPUT_B))) (INPUT_A / INPUT_B)
- H(INPUT_A,INPUT_B) = G(INPUT_A, G(1,INPUT_B)) (INPUT_A * INPUT_B)
- I(INPUT_A) = H(-1,INPUT_A) (-INPUT_A)
- J(INPUT_A) = I(F(I(INPUT_A))) (INPUT_A + 1)
- K(INPUT_A,INPUT_B) = H(J(G(INPUT_A,INPUT_B)),INPUT_B) (INPUT_A + INPUT_B)
- L(INPUT_A,INPUT_B) = K(INPUT_A, I(INPUT_B)) (INPUT_A - INPUT_B)
- M(INPUT_A) = H(C(G(INPUT_A,2), C(G(INPUT_A,2)))) (SQRT(INPUT_A))
- N(INPUT_A) = M(H(INPUT_A,INPUT_A)) (ABS(INPUT_A))
- O(INPUT_A) = G(INPUT_A,N(INPUT_A)) (ATAN(INPUT_A))
- P(INPUT_X, INPUT_Y) = M(K(H(INPUT_X, INPUT_X),H(INPUT_Y,INPUT_Y))) (HYPOTENUSE(INPUT_X, INPUT_Y))
- Q(INPUT_X, INPUT_Y) = G(INPUT_X, P(INPUT_X, INPUT_Y)) (SINE(INPUT_X, INPUT_Y))
- R(INPUT_X, INPUT_Y) = G(INPUT_X, INPUT_Y) (TANGENT(INPUT_X, INPUT_Y))
- S(INPUT_X, INPUT_Y) = G(P(INPUT_X,INPUT_Y), INPUT_X) (SECANT(INPUT_X, INPUT_Y))
- T(INPUT_X, INPUT_Y) = G(INPUT_X, G(P(INPUT_X, INPUT_Y),INPUT_Y)) (ALTITUDE_LENGTH(INPUT_X, INPUT_Y))
- 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))
- V(INPUT_A, INPUT_B, INPUT_C) = K(H(INPUT_A,INPUT_B),INPUT_C)) (INPUT_A + (INPUT B * INPUT_C))
Add Comment
Please, Sign In to add comment
Advertisement