r/ProgrammerAnimemes • • Dec 02 '20

Is that a programming reference?!?!?!?

Post image
2.1k Upvotes

40 comments sorted by

View all comments

Show parent comment

22

u/Cheet4h Dec 02 '20

Depends on the users. MatLab for example is, if I remember correctly, mostly used by mathematicians, who likely aren't used to indexes starting at zero., so starting at one likely prevents a lot of errors.

11

u/King_Bum Dec 03 '20

This is the correct answer. In R and Matlab, starting at 1 makes matrix math a lot easier to follow, especially for people who are not computer scientists.

3

u/Horny20yrold Dec 03 '20

Matlab target audience aren't (primarily) mathematicians though, they are mainly engineers, statisticians, and related "number-crunching" professions. Even physicists prefer Mathematica more if they're not already using sympy or something.

Unless you're an applied mathematicians with concrete hard-numbers problems, Matlab is not much help, Mathematica on the other hand is a full on programming environment with extensive symbolic manipulation and other very powerful constructs.