How to compute CG coefficient and Wigner 3nj Symbols

Introduction

This blog is the theory for https://github.com/0382/CGcoefficient.jl.

It is mainly inspired by Ref[1]. See Jensen’s code for details.

The idea is to simplify 3nj Symbols to sum combinations of binominal coefficients. We can calculate binominal coefficients by Pascal’s Triangle, and store them first. Then we calculate 3nj Symbols using the stored binominal coefficients.

My code is just a toy model, using Julia’s own binominal function, and use BigInt to get absolute results. If you want to get the exact result, and you don’t use it for numeric computing, it is really a good package.

阅读全文

Fortran学习笔记

这个笔记主要来自于彭国伦的《Fortran95程序设计》,保存在有道云笔记。比较懒就不转移到这里,直接放分享链接。

阅读全文

高斯单位制(其二)

我写这个系列文章的目的一来是为了搞清楚高斯单位制,而来也是打算复习一下经典电磁学。所以之后的一系列文章都会是在高斯单位制下所做的一系列推导。高斯单位制的定义,在第一篇已经明确了。之后的公式,默认都是在高斯单位制下的,但是对于理解高斯单位制,或许意义不大。本节主要内容是麦克斯韦方程组。

阅读全文

高斯单位制(其一)

高斯单位制是一个比较古老的单位制,但是在物理学研究中的很多领域还有很大的用处.不过本文不是用来对比高斯单位制和国际单位制的,而是从高斯单位制出发,推导一下电动力学的相关公式.本节主要是电磁学一些基本物理量的定义公式,高斯单位制下和高中学的有较大的区别.

阅读全文

nabla算子

基础

=exx+eyy+ezz\nabla = \vec{e_x}\frac{\partial}{\partial x} + \vec{e_y}\frac{\partial}{\partial y} + \vec{e_z}\frac{\partial}{\partial z}

fdivf\nabla \cdot \vec{f} \equiv div \vec{f}

×frotf\nabla \times \vec{f} \equiv rot \vec{f}

ϕgradϕ\nabla \phi \equiv grad \phi

阅读全文