Ejemplo n.º 1
0
def main():
    Get_Program()
    Format()

    EM_Waves_in_Geom_Calculus_Complex()
    EM_Waves_in_Geom_Calculus_Real()
    xpdf()
    return
Ejemplo n.º 2
0
def main():
    Get_Program(True)
    Format()

    basic_multivector_operations_3D()
    basic_multivector_operations_2D()

    xpdf('simple_test_latex.tex')
    return
Ejemplo n.º 3
0
def main():
    Get_Program()
    Format()

    Maxwells_Equations_in_Geometric_Calculus()
    Dirac_Equation_in_Geometric_Calculus()
    Lorentz_Tranformation_in_Geometric_Algebra()

    xdvi()
    return
Ejemplo n.º 4
0
def main():
    Get_Program()
    Format()

    #Maxwells_Equations_in_Geom_Calculus()
    #Dirac_Equation_in_Geom_Calculus()
    #Lorentz_Tranformation_in_Geog_Algebra()
    Lie_Group()

    xpdf()
    return
Ejemplo n.º 5
0
def main():
    Get_Program(True)
    enhance_print()
    basic_multivector_operations()
    check_generalized_BAC_CAB_formulas()
    derivatives_in_rectangular_coordinates()
    derivatives_in_spherical_coordinates()
    rounding_numerical_components()
    #noneuclidian_distance_calculation()
    conformal_representations_of_circles_lines_spheres_and_planes()
    properties_of_geometric_objects()
    extracting_vectors_from_conformal_2_blade()
    reciprocal_frame_test()
    return
Ejemplo n.º 6
0
def main():
    Get_Program()
    Eprint()
    Mv_setup_options()
    return
Ejemplo n.º 7
0
    v = a * ea + b * eb + c * ec

    print('v =', v)

    f = v | A(v)

    print(r'%f = v\cdot \f{A}{v} =', f)

    (grad * f).Fmt(3, r'%\nabla f')

    Av = A(v)

    print(r'%\f{A}{v} =', Av)

    (grad * Av).Fmt(3, r'%\nabla \f{A}{v}')

    return


def dummy():
    return


if __name__ == "__main__":
    #Eprint()
    Format()
    Get_Program()
    main()
    xpdf()
Ejemplo n.º 8
0
    print('NB =', NB)
    Bh = B / NB
    ap = ebar - ((ebar ^ Bh) * Bh)
    a1 = ap + (ap * Bh)
    a2 = ap - (ap * Bh)
    #print '#a1 = ',a1
    #print '#a2 = ',a2
    return [a1, a2]


def norm(X):
    Y = sqrt((X * X).scalar())
    return Y


Get_Program(True)
Eprint()

g = '1 0 0 0, \
   0 1 0 0, \
   0 0 0 2, \
   0 0 2 0'

c2d = Ga('e_1 e_2 n \\bar{n}', g=g)
(e1, e2, n, nbar) = c2d.mv()

global n, nbar, I


def F(x):
    global n, nbar
Ejemplo n.º 9
0
def main():
    Get_Program()
    Eprint()
    coefs_test()
    return
Ejemplo n.º 10
0
def main():
    Get_Program()
    Format()
    Product_of_Rotors()
    xpdf(paper=(8.5, 11), debug=True)
    return
Ejemplo n.º 11
0
def main():
    Get_Program(True)
    enhance_print()
    MV_setup_options()
    return
Ejemplo n.º 12
0
def main():
    Get_Program()
    Format()
    derivatives_in_spherical_coordinates()
    xdvi()
    return