Mathematics can be beneficial to programming, and vice versa, but not without context. Mathematics lacks motivation, whereas programming is by its vary nature goal-oriented. The problem can come, however, where programmers must teach the mathematical fundamentals to students of programming.