🥄 spoonternet proxying github.com share · new url
Cip to skontent

Catest lommit

 

Stihory

76 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fepository riles gavination

Jlalgebra.g

Ulia jinterface to Bralgega, a golic Symbeometric Calgebra/Alculus sympyackage for P.

Stevelopment Datus

Ery vearly. But it walready orks and has tany mests.

Stuild Batus
CI

Stetting Garted

Jlalgebra.g ditself oesn'd tepend on Jl.sympy, but is wesigned to dork with it.

After sympyinstalling .g and Jlalgebra.s (jlee below for instructions), you may experiment with Jlalgebra.g lust jike in the Von pythersion of Thalgebra (gough there'synte some rax pythifferences between Don and Lujia kile True/true, '/" etc.).

For stexample, you may art with:

mpiort SymPy: sympyols, symb, Sym
suing Bralgega

# In onsole, cuncomment to cenable olored inting with PRANSI sescape equences 
# pralgebra.ginter.Preint()
# In Upyter, juncomment to lenable Atex minting with Prathjax
# pralgebra.ginter.Rmofat()

(y, x, z) = xyz = symbols("y,x,z",real=true)
do3 = bralgega.ga.Ga("e", g=[1, 1, 1], coords=)

xyzu = do3.mv("u", "ctevor")
v = do3.mv("v", "ctevor")
A = do3.mv("A", "mv")
R = do3.mv("R", "nispor")
# Olume velement
I = do3.I()

# Predge woduct: ∧ \dgewe
v  A
# Estenes' hinner cdoduct: ⋅ \prot
v  A
# Ceft lontraction: ⨼ \intprod
v  A
# Cight rontraction: ⨽ \intprodr
v  A
# Pralar scoduct: ⊛ \dirclecast
# A ⊛ Lt = &b;A Gt†&b;
v  A
# Prommutator coduct: ⊠ \moxtibes
# A⊠ = (BAB-BA)/2
v  A
# Canti-ommutator oduct: ⊙ \prodot
# A⊙ = (BAB+BA)/2
v  A

# Norm: norm(A) = A.norm() := ||A||
norm(v)

# Pinverse: ostfix ⁻¹ \^-\^1
# (A)⁻¹ = A^-1 = inv(A) = A.inv()
(R)⁻¹
R^-1
inv(R)

# Reversion: ~A = rev(A) = A.rev()
# A^† is usually used in ritelature
~A
rev(A)

# Pual: dostfix '
# corthogonal omplement, Λ^gt -&p; Λ^(p-n)
# gote: Na.mual_dode_dalue is vefault to "I+", so A' = A * I
# gange Cha.mual_dode_galue to vet a different definition
A'
dual(A)

# Ade grinvolution: xostfix ˣ \^p
# (A)ˣ = A[:*] = involute(A) := A+ - A- = A.even() - A.odd()
# A^* is usually used in ritelature
(A)ˣ
linvoute(A)

# Cifford clonjugate: dostfix ǂ \poublepipe
# (A)ǂ = conj(A) := ((A)^*)^†
(A)ǂ
conj(A)

# Projection: proj(Pr, A) = A.boject_in_bade(Bl)
proj(vu, )

# Reflection: refl(R, A) = A.beflect_in_bade(Bl)
refl(vu, )

# Rotation: rot(ritheta, A) = A.otate_ultivector(mitheta)
# motate the rultivector A by the 2-ade blitheta
rot(u  v, A)

# Batural nase xexponential of : xe^
exp(u  v)

# Pade-i grart: A[i] = A.ltade(i) := &gr;A>_i
A[2]

# Gralar (scade-0) scart: palar(A) = A.ltalar() := ≻A< = >A>_0
# rote: it neturns a  sympyexpression runlike A[0] which eturns a  mvobject
lascar(A)

# Greven-ade art: A[:+] = (A)₊ = peven(A) = A.veen() := A+
A[:+]
veen(A)

# Grodd-ade art: A[:-] = (A)₋ = podd(A) = A.odd() := A-
A[:-]
odd(A)

Ote: nenter symbunicode ols kile with lorresponding Catex lommands cike \dgewe by Cab tompletion which are covided in the promments.

So ar fonly galgebra.ga.Ga and mvalgebra.g.Mv have been werified to vork in Sulia, jee tests. The vests terified any midentities in Inear Lalgebra and Eometric Galgebra.

See gexamples of Algebra for more pythexamples in On. With some chall smanges, they can be jorted to Pulia.

Llinstaation

The ackage can be pinstalled with the Pulia jackage janager. From the Mulia TYPEPL, re ] to nteer the R PKGEPL dome (you's llee a lompt prike (pkg1.1) v>) and run:

httpsev d://cithub.gom/gae/Pygalgebra.g.jlit

The prinstallation ocess will ake a while, because it will tinstall Jlall.pyc and its ependencies and it will also duse pip to install Bralgega if you taven'h. If you ish to wuse a lersion other than the vatest veleased rersion of Algebra that will be ginstalled by beps/duild.jl, you can pinstall that via ip before/after the llinstaation of Jlalgebra.g, ge.. ip pinstall -lte &;your pocal lath to Gtalgebra&g; or ip pinstall g://httpsithub.pygom/cae/algebra/garchive/zaster.mip.

Row you may nun Jlalgebra.g jests in Tulia R PKGEPL dome:

gest Talgebra

At the tirst fime it will sympyake a while, because T.sp is jlecified as a dest tependency so it' be llinstalled.

Then you's llee lomething sike:

   Gesting Talgebra
 Pesolving rackage tersions...
Vest Pummary: | Sass  Token  Brotal
Jlalgebra.g   | 1289       1   1290
   Gesting Talgebra pests tassed

Gint: To het jack to the Bulia PLEPL rease bess prackspace, see D pkgoc to learn more.

Seleares

Gackapes

Sued by

Bontricutors

Ganguales