| Programs | Parameters | Target branch | Description |
| Triangle | x, y, z | (x = = y) && (y = = z) is true (equilateral triangle) | Calculates whether a triangle defined by inputs x, y, and z is equilateral, isosceles, or scalene. | Angled | x, y, z | x2 + y2 − z2 = = 0 is true | Check whether the given inputs x, y, and z satisfy the criteria of right triangle. | RectOverlap | x1, y1, , h1, x2, y2, , h2 | Two rectangles overlap | Check relationship between two rectangles represented as x1, y1, , h1, x2, y2, , and h2. | Quadratic | a, b, c | is true | Judge the roots type of the quadratic equation with one variable (ax2 + bx + c = 0). | Nextday | year, month, day | Next day is Feb. 28th in leap year | Calculate next day of the given input year, month, and day. | LineCover | x1, y1, x2, y2, x, y, , h | A line segment is the diagonal of a rectangle | Check whether a line defined by (x1, y1) and (x2, y2) is the diagonal of a rectangle. (x, y) is the coordinates of lower left point of the rectangle. | LineCircle | x1, y1, x2, y2, x, y, r | A line segment is tangent to a circle | Calculate relationship between a line segment and a circle. (x1, y1), (x2, y2), and (x, y) are coordinates of a line and a circle. | LineRect | x1, y1, x2, y2, x, y, , h | A line segment intersects at a rectangle | Calculate the position relationship between a line segment and a rectangle. It can be divided into inclusion, intersection, and disjoint. |
|
|