def intro():
    print("+----------------------+")
    print("|    CH 2 REVIEW       |")
    print("|                      |")
    print("|       __             |")
    print("|   ___(o )>  quack!   |")
    print("|   \\ <_. )           |")
    print("|    `---'             |")
    print("|     by DuckieDai     |")
    print("| hiddenwordscanner.com|")
    print("+----------------------+")
    input("Press enter ")
    print("\n"*6)


def page(*x):
    print("\n"*6)
    for s in x:
        print(s)
    input("Enter >")


intro()


page(
"COMPLEX NUMBERS",
"ADD/SUB:",
"real with real",
"i terms with i terms",
"",
"MULTIPLY:",
"FOIL, then i^2=-1"
)


page(
"COMPLEX DIVIDE",
"Multiply TOP + BOTTOM",
"by denominator conjugate",
"",
"a+bi -> a-bi",
"Then use i^2=-1",
"split + reduce fractions"
)


page(
"QUADRATIC FORMULA",
"For ax^2+bx+c=0",
"D=b^2-4ac",
"",
"D>0: 2 real roots",
"D=0: 1 repeated root",
"D<0: use i",
"",
"x=(-b +/- sqrt(D))/2a",
"",
"Program: P4QUAD"
)


page(
"VERTEX FORM",
"a(x-h)^2+k",
"",
"Vertex = (h,k)",
"Axis = x=h",
"",
"a positive = opens UP",
"a negative = opens DOWN"
)


page(
"STANDARD QUADRATIC",
"ax^2+bx+c",
"",
"Vertex x:",
"x=-b/(2a)",
"",
"Plug x into f(x)",
"to get vertex y",
"",
"y-int=(0,c)",
"",
"Program: QUADFF"
)


page(
"END BEHAVIOR",
"Look at degree +",
"leading coefficient",
"",
"Even + : up/up",
"Even - : down/down",
"Odd + : down/up",
"Odd - : up/down",
"",
"Program: DDENDBEH"
)


page(
"ZEROS / GRAPH",
"Factor polynomial",
"Set each factor =0",
"",
"zeros=x-intercepts",
"",
"Odd mult = CROSS",
"Even mult = BOUNCE",
"",
"Program: DDZER"
)


page(
"RATIONAL ZERO THM",
"Possible zeros:",
"+/- p/q",
"",
"p=factors constant",
"q=factors lead coeff",
"",
"Test until remainder=0",
"",
"Programs:",
"P1RZERO -> ZEROTS",
"-> SYNTHD"
)


page(
"LONG DIVISION",
"Ask:",
"What times divisor's",
"first term gives",
"current first term?",
"",
"Put answer on top",
"Multiply WHOLE divisor",
"SUBTRACT",
"Bring down",
"Repeat"
)


page(
"SYNTHETIC DIV",
"Divisor x-c",
"use c",
"",
"Use 0 for missing powers",
"",
"Bring down",
"multiply",
"ADD",
"repeat",
"",
"last=remainder",
"",
"Program: SYNTHD"
)


page(
"FUNCTION FROM ZEROS",
"zero c -> (x-c)",
"",
"Complex zero?",
"add conjugate",
"",
"Multiply factors",
"put a in front",
"",
"Given f(value)?",
"plug in + solve for a",
"",
"Guide: CPLXPOLY"
)


page(
"RATIONAL FUNCTION",
"Factor top/bottom FIRST",
"",
"x-int:",
"TOP = 0",
"",
"y-int:",
"plug x=0",
"",
"Cancelled factor=HOLE"
)


page(
"VERTICAL ASYM / HOLE",
"Bottom factor =0",
"",
"cancels?",
"YES -> HOLE",
"NO -> VA",
"",
"Program: VASYM"
)


page(
"HORIZONTAL ASYM",
"Compare degrees",
"",
"top < bottom: y=0",
"same: lead coeff ratio",
"top > bottom: no HA",
"",
"Program: HASYMS"
)


page(
"SYMMETRY",
"Find f(-x)",
"",
"=f(x): y-axis",
"=-f(x): origin",
"otherwise: neither",
"",
"Program: SYMCKR"
)


page(
"POLY INEQUALITY",
"Move all to one side",
"Factor",
"Find critical values",
"Order them",
"Test intervals",
"Keep wanted signs",
"",
"< > exclude roots",
"<= >= include roots",
"",
"Program: QINQS/WCSOL"
)


page(
"RATIONAL INEQ",
"Move all to one side",
"Find TOP zeros",
"Find BOTTOM zeros",
"Order + test intervals",
"",
"BOTTOM = NEVER",
"",
"<= >= may include",
"TOP zeros"
)


page(
"QUICK MEMORY",
"Long div SUBTRACTS",
"Synthetic ADDS",
"",
"Odd = CROSS",
"Even = BOUNCE",
"",
"Bottom = NEVER",
"",
"y-int: x=0",
"x-int: top=0"
)
