コード例 #1
0
def main():
    Get_Program(True)
    Format()

    basic_multivector_operations_3D()
    basic_multivector_operations_2D()

    # xpdf('simple_test_latex.tex')
    xpdf('simple_check_latex.tex', pdfprog=None)
    return
コード例 #2
0
def main():
    Get_Program(True)
    Format()

    basic_multivector_operations_3D()
    basic_multivector_operations_2D()

    # xpdf()
    xpdf(pdfprog=None)
    return
コード例 #3
0
def main():
    Get_Program()
    Format()

    Maxwells_Equations_in_Geometric_Calculus()
    Dirac_Equation_in_Geometric_Calculus()
    Lorentz_Tranformation_in_Geometric_Algebra()

    # xpdf()
    xpdf(pdfprog=None)
    return
コード例 #4
0
def main():
    Get_Program()
    Format()

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

    # xpdf()
    xpdf(pdfprog=None)
    return
コード例 #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
コード例 #6
0
def main():
    Get_Program()
    Format()

    basic_multivector_operations_3D()
    basic_multivector_operations_2D()
    basic_multivector_operations_2D_orthogonal()
    check_generalized_BAC_CAB_formulas()
    rounding_numerical_components()
    derivatives_in_rectangular_coordinates()
    derivatives_in_spherical_coordinates()
    noneuclidian_distance_calculation()
    conformal_representations_of_circles_lines_spheres_and_planes()
    properties_of_geometric_objects()
    extracting_vectors_from_conformal_2_blade()
    reciprocal_frame_test()
    signature_test()
    Fmt_test()

    # xpdf()
    xpdf(pdfprog=None)
    return
コード例 #7
0
def main():
    Get_Program()
    Eprint()
    Mv_setup_options()
    return
コード例 #8
0
def main():
    Get_Program()
    Eprint()
    coefs_test()
    return
コード例 #9
0
def main():
    Get_Program(True)
    enhance_print()
    MV_setup_options()
    return
コード例 #10
0
ファイル: diffeq_sys.py プロジェクト: papagiannakis/galgebra
    A = o3d.lt([[x*a*c**2,x**2*a*b*c,x**2*a**3*b**5],\
                [x**3*a**2*b*c,x**4*a*b**2*c**5,5*x**4*a*b**2*c],\
                [x**4*a*b**2*c**4,4*x**4*a*b**2*c**2,4*x**4*a**5*b**2*c]])
    print('A =',A)

    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

if __name__ == "__main__":
    #Eprint()
    Format()
    Get_Program()
    main()
    # xpdf()
    xpdf(pdfprog=None)
コード例 #11
0
def test_deprecated_get_program():
    with pytest.warns(DeprecationWarning):
        # returns nothing and does very little
        assert Get_Program() is None
コード例 #12
0
    print('B**2 =',B*B)
    NB = B.norm()
    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()

def F(x):
    global n,nbar
    Fx = ((x*x)*n+2*x-nbar) / 2
    return(Fx)