Mathematic: Functional and procedural programming