brainrape/elm-ganja/1.0.1

NOTE: the latest version is 2.0.2

Renamed to brainrake/elm-ganja. It is published under that name, and new versions come out there.

Versions published as brainrape/elm-ganja still install under that name. 4 versions of 7 come from the new location (see their notes). 1 version could not be recovered and cannot be installed.

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/brainrake/elm-ganja.

What we checked: The repo moved to github.com/brainrake/elm-ganja. Rebuilt with git archive from commit fe62c5467d54 of https://github.com/brainrake/elm-ganja (zip prefix brainrape-elm-ganja-fe62c54/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 4da13118b46495fb58974084ee9d3b8230ab6322.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/brainrape/elm-ganja/zipball/1.0.1/

Ganja.C

Clifford Algebra: C Generated with ganja.js written by enki.

Basis

type CBasis
= Scalar
| E1

Basis type

Basis list

Number of coefficients

basisName : CBasis -> String

Basis name

Multivector

type C
= C Float Float

Multivector

Zero value

get : CBasis -> C -> Float

Get coefficient

set : CBasis -> Float -> C -> C

Update coefficient

new : Float -> CBasis -> C

Multivector with one coefficient

Conversion

toString : C -> String

Convert multivector to string

fromList : List Float -> Maybe C

Convert list of coefficients to multivector

toList : C -> List Float

Convert multivector to list of coefficients

Unary Operators

reverse : C -> C

Reverse the order of the basis blades.

dual : C -> C

Poincare duality operator.

Clifford Conjugation

involute : C -> C

Main involution

Binary Operators

mul : C -> C -> C

The geometric product.

wedge : C -> C -> C

The outer product. (MEET)

vee : C -> C -> C

The regressive product. (JOIN)

dot : C -> C -> C

The inner product.

add : C -> C -> C

Multivector addition

sub : C -> C -> C

Multivector subtraction

smul : Float -> C -> C

scalar/multivector multiplication

muls : C -> Float -> C

multivector/scalar multiplication

sadd : Float -> C -> C

scalar/multivector addition

adds : C -> Float -> C

multivector/scalar addition

ssub : Float -> C -> C

scalar/multivector subtraction

subs : C -> Float -> C

multivector/scalar subtraction

Norm

norm : C -> Float

Norm

inorm : C -> Float

Norm of dual

Normalized multivector