Coder Social home page Coder Social logo

jishnub / wignerd.jl Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 466 KB

Wigner d and D matrices following Feng (2015)

Home Page: https://jishnub.github.io/WignerD.jl/

License: MIT License

Julia 100.00%
wignerd-matrices julia linear-algebra rotation-matrix rotation spherical-geometry spherical-harmonics wigner-d-matrix

wignerd.jl's Introduction

WignerD.jl

CI codecov docs:stable docs:dev

Wigner d and D matrices using the exact diagonalization algorithm of Feng (2015), following the phase convention of Varshalovich et al. (1988).

Usage

julia> wignerd(0.5, 0)
2×2 Matrix{Float64}:
 1.0  -0.0
 0.0   1.0

julia> wignerd(1, pi/3)
3×3 Matrix{Float64}:
  0.75       0.612372  0.25
 -0.612372   0.5       0.612372
  0.25      -0.612372  0.75

julia> WignerD.wignerdjmn(1, 1, 1, pi/3)
0.7500000000000004

julia> wignerD(1, 0, pi/3, pi/2)
3×3 Matrix{ComplexF64}:
 4.59243e-17+0.75im       0.612372-0.0im  1.53081e-17-0.25im
 -3.7497e-17-0.612372im        0.5+0.0im   3.7497e-17-0.612372im
 1.53081e-17+0.25im      -0.612372+0.0im  4.59243e-17-0.75im

julia> WignerD.wignerDjmn(1, 1, 1, 0, pi/3, pi/2)
4.592425496802577e-17 - 0.7500000000000004im

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.