understanding the math behind ai | Comidoc