SMS: Jacobian elliptic functions