Based on the commercial package Macsyma, Maxima includes a complete ALGOL-like programming language and is most useful for teaching programming concepts in computer algebra.
Although I learned ALGOL, COBOL, and various assembler languages first, Pascal was the language that best enabled me to reason about a solution and implement it effectively and elegantly.