brainrape/elm-ganja/1.0.0

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

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

Ganja.Cga

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

Basis

= Scalar
| E1
| E2
| E3
| E4
| E5
| E12
| E13
| E14
| E15
| E23
| E24
| E25
| E34
| E35
| E45
| E123
| E124
| E125
| E134
| E135
| E145
| E234
| E235
| E245
| E345
| E1234
| E1235
| E1245
| E1345
| E2345
| E12345

Basis type |

Basis list

Number of coefficients |

basisName : CgaBasis -> String

Basis name |

Multivector

type Cga
= Cga
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float
Float

Multivector |

Zero value |

get : CgaBasis -> Cga -> Float

Get coefficient |

set : CgaBasis -> Float -> Cga -> Cga

Update coefficient |

new : Float -> CgaBasis -> Cga

Multivector with one coefficient |

Conversion

toString : Cga -> String

Convert multivector to string |

fromList : List Float -> Maybe Cga

Convert list of coefficients to multivector |

toList : Cga -> List Float

Convert multivector to list of coefficients |

Unary Operators

Reverse the order of the basis blades. |

dual : Cga -> Cga

Poincare duality operator. |

Clifford Conjugation |

Main involution |

Binary Operators

mul : Cga -> Cga -> Cga

The geometric product. |

wedge : Cga -> Cga -> Cga

The outer product. (MEET) |

vee : Cga -> Cga -> Cga

The regressive product. (JOIN) |

dot : Cga -> Cga -> Cga

The inner product. |

add : Cga -> Cga -> Cga

Multivector addition |

sub : Cga -> Cga -> Cga

Multivector subtraction |

smul : Float -> Cga -> Cga

scalar/multivector multiplication |

muls : Cga -> Float -> Cga

multivector/scalar multiplication |

sadd : Float -> Cga -> Cga

scalar/multivector addition |

adds : Cga -> Float -> Cga

multivector/scalar addition |

ssub : Float -> Cga -> Cga

scalar/multivector subtraction |

subs : Cga -> Float -> Cga

multivector/scalar subtraction |

Norm

norm : Cga -> Float

Norm |

inorm : Cga -> Float

Norm of dual |

Normalized multivector |