예제 #1
0
def practical_test34():
    link(A, B)
    link(A, E, C)
    link(B, D, C)
    link(A, D)
    link(D, E)

    set_angle('ABC', 30)
    set_angle('ADE', 60)

    common_vertex_angles('A', ['B', 'D', 'C'])
    common_vertex_angles('D', ['B', 'A', 'E'])

    angle_equivalence('ABC', 'ACB')
    angle_equivalence('ADE', 'AED')

    get_angle('CDE')

    # assert result['answer'] == 30
    return get_problem()
예제 #2
0
def practical_test14():
    link(A, B)
    link(A, D, C)
    link(B, C)
    link(B, E, D)
    link(C, E)

    set_angle('ABD', 30)
    set_angle('CBD', 30)
    set_angle('BAC', 80)

    common_vertex_angles('B', ['A', 'D', 'C'])
    common_vertex_angles('C', ['A', 'E', 'B'])

    angle_equivalence('BCE', 'ACE')

    get_angle('BEC')

    # assert result['answer'] == 130
    return get_problem()
예제 #3
0
def practical_test103():
    link(A, E, B)
    link(A, F, C)
    link(B, D, C)
    link(D, E)
    link(D, F)

    perpendicular('DE', 'AB')
    perpendicular('FD', 'BC')

    set_angle('AFD', 158)

    common_vertex_angles('D', ['B', 'E', 'F'])

    angle_equivalence('ABC', 'ACB')

    get_angle('EDF')

    # assert result['answer'] == 68
    return get_problem()
def practical_test12():
    link(A, C)
    link(A, E, P)
    link(A, F, G, D)
    link(B, F, E, C)
    link(B, G, P)
    link(B, D)

    set_angle('ACB', 32)
    set_angle('ADB', 28)
    set_angle('CBD', 60)

    angle_equivalence('CAP', 'DAP')
    angle_equivalence('CBP', 'DBP')

    common_vertex_angles('B', ['C', 'P', 'D'])
    common_vertex_angles('A', ['C', 'P', 'D'])

    get_angle('APB')

    # assert result['answer'] == 30
    return get_problem()
예제 #5
0
def practical_test40():
    link(A, B)
    link(A, D)
    link(B, C)
    link(C, D)
    link(A, C)
    link(B, D)

    common_vertex_angles('A', ['B', 'C', 'D'])
    common_vertex_angles('B', ['A', 'D', 'C'])
    common_vertex_angles('C', ['B', 'A', 'D'])
    common_vertex_angles('D', ['A', 'B', 'C'])

    set_angle('BAD', 60)
    set_angle('BCD', 120)
    set_length('BC', 5)
    set_length('DC', 3)
    
    angle_equivalence('ABD', 'ADB')
    
    get_length('AC')
    
    # assert result['answer'] == 8
    return get_problem()