brainrape/elm-ganja/1.1.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 f7e0da13cb5b of https://github.com/brainrake/elm-ganja (zip prefix brainrape-elm-ganja-f7e0da1/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 218a0c43f4f2eaf2bac029271afe410678113b05.

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.1.1/

Ganja.Mink

Clifford Algebra: Mink

Generated with ganja.js written by enki.

Basis

= Scalar
| E1
| E2
| E12

Basis type

Basis list

Number of coefficients

basisName : MinkBasis -> String

Basis name

Multivector

type Mink
= Mink Float Float Float Float

Multivector

Zero value

get : MinkBasis -> Mink -> Float

Get coefficient

set : MinkBasis -> Float -> Mink -> Mink

Update coefficient

new : Float -> MinkBasis -> Mink

Multivector with one coefficient

Basis multivectors

Basis multivector

Basis multivector

Basis multivector

Basis multivector

Conversion

toString : Mink -> String

Convert multivector to string

fromList : List Float -> Maybe Mink

Convert list of coefficients to multivector

toList : Mink -> List Float

Convert multivector to list of coefficients

Unary Operators

Reverse the order of the basis blades.

Poincare duality operator.

Clifford Conjugation

Main involution

Binary Operators

mul : Mink -> Mink -> Mink

The geometric product.

The outer product. (MEET)

vee : Mink -> Mink -> Mink

The regressive product. (JOIN)

dot : Mink -> Mink -> Mink

The inner product.

add : Mink -> Mink -> Mink

Multivector addition

sub : Mink -> Mink -> Mink

Multivector subtraction

smul : Float -> Mink -> Mink

scalar/multivector multiplication

muls : Mink -> Float -> Mink

multivector/scalar multiplication

sadd : Float -> Mink -> Mink

scalar/multivector addition

adds : Mink -> Float -> Mink

multivector/scalar addition

ssub : Float -> Mink -> Mink

scalar/multivector subtraction

subs : Mink -> Float -> Mink

multivector/scalar subtraction

Norm

norm : Mink -> Float

Norm

inorm : Mink -> Float

Norm of dual

Normalized multivector