GithubHelp home page GithubHelp logo

bwalkowi / cayley-dickson Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wojciechkarpiel/cayley-dickson

0.0 3.0 0.0 17 KB

Repl for calculations on numbers constructed by Caley-Dickson's method

License: BSD 3-Clause "New" or "Revised" License

Haskell 100.00%

cayley-dickson's Introduction

Baw się replem na liczbach kostruowanych metodą Cayleya-Dicksona!

https://pl.wikipedia.org/wiki/Aksjomaty_i_konstrukcje_liczb#Konstrukcja_Cayleya-Dicksona

> (+ 4 0.4) ;notacja polska!
4.4

> (* [0 1] [0 1]) ;liczby zespolone!
-1.0

> (* [1 2 3 4] [5 0 0 0]) ;kwaterniony!
[[5.0 10.0] [15.0 20.0]]

> (* [1 2 3 4] 5) ;z opcjonalną uproszczoną notacją!
[[5.0 10.0] [15.0 20.0]]


> (/ [1.342 32.45 423 0.3452 32 223.432 324.23 4325.23] (* [312 3543 213 2.213] [432 423.4123 213.432 432])) ;oktoniony!
[[[1.2593494533472867e-4 -5.030006686600147e-4] [-1.4088374286154773e-4 -7.649600187541562e-4]] [[-3.5950707169757214e-5 9.636239750571043e-4] [2.3345790201720804e-5 -8.591884164348107e-4]]]

> (/ [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] [17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32]) ;!!!
[[[[0.36926790024135153 3.218020917135969e-3] [6.436041834271905e-3 9.654062751407882e-3]] [[1.2872083668543834e-2 1.609010458567981e-2] [1.930812550281577e-2 2.2526146419951727e-2]]] [[[-7.723250201126305e-2 2.8962188254223656e-2] [3.218020917135962e-2 3.539823008849556e-2]] [[-1.2872083668543866e-2 4.18342719227675e-2] [1.9308125502815777e-2 3.539823008849557e-2]]]]

(r (c [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32])) ;odwrotność sprzężenia!
[[[[[8.74125874125874e-5 1.748251748251748e-4] [2.622377622377622e-4 3.496503496503496e-4]] [[4.37062937062937e-4 5.244755244755244e-4] [6.118881118881118e-4 6.993006993006992e-4]]] [[[7.867132867132865e-4 8.74125874125874e-4] [9.615384615384614e-4 1.0489510489510487e-3]] [[1.136363636363636e-3 1.2237762237762237e-3] [1.311188811188811e-3 1.3986013986013984e-3]]]] [[[[1.4860139860139857e-3 1.573426573426573e-3] [1.6608391608391607e-3 1.748251748251748e-3]] [[1.8356643356643354e-3 1.9230769230769227e-3] [2.0104895104895103e-3 2.0979020979020975e-3]]] [[[2.185314685314685e-3 2.272727272727272e-3] [2.3601398601398598e-3 2.4475524475524473e-3]] [[2.5349650349650345e-3 2.622377622377622e-3] [2.709790209790209e-3 2.7972027972027968e-3]]]]]

kompilacja

stack build

testy

Nie odpalajcie ich! Zabierają cały ram Zostaje tylko słap, halucynacje z niedożywienia i śmierć

cayley-dickson's People

Contributors

bwalkowi avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.