calcit-lang / geometric

[Experimental] Some geometry algebra arithmetics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geometric Algerbra Arithmetic for Calcit

Thanks to tutorials:

Usages

Representation:

  • geometric algebra 3D: :: :ga3 s x y z xy yz zx xyz
  • vector 3D: :: :v3 x y z

Call geometric.core/ga3 s x y z xy yz zx xyz to construct a value.

Values:

  • ga3:identity - :: :ga3 1 0 0 0 0 0 0 0
  • ga3:zero - :: :ga3 0 0 0 0 0 0 0 0

Functions:

  • ga3:as-v3 a

  • ga3:as-v3-list a

  • ga3:from-v3 a

  • ga3:from-v3-list a

  • ga3:scalar? a

  • ga3:v3? a

  • ga3:length a

  • ga3:length-square a

  • ga3:conjugate a

  • ga3:normalize a

  • ga3:scale a n

  • ga3:add a b

  • ga3:sub a b

  • ga3:multiply a b

  • ga3:close? a b

  • ga3:reflect a r

Workflow

https://github.com/calcit-lang/calcit-workflow

License

MIT

About

[Experimental] Some geometry algebra arithmetics


Languages

Language:Cirru 99.4%Language:JavaScript 0.6%