|
|
|
|
|
by mc-lovin
4754 days ago
|
|
Python and Matlab are not interchangeable. Matlab is unique in its expressiveness for numerical and matrix computation, and value semantics. Value semantics matter a lot because they result in functional programming without even having to think about it, while copy-on-write means that you can pass big objects into pure functions and they never get copied if you don't modify them. e.g. in Matlab, the following function is pure (and never makes a copy of big_matrix) function y = my_pure_function(x, big_matrix)
x = x + big_matrix(i, j);
y = x ^ 2;
end
|
|
Matlab and Python are perfectly interchangeable for the overwhelming majority of undergrads and graduate students. Claiming that they are not interchangeable based on the difference between pass-by-reference and copy-on-write is just silly.
You're ignoring the typical use case for an engineering student: general math & plotting. In Python, that is easily accomplished with NumPy, SciPy, and Matplotlib. These are all free.
Kudos on knowing how these languages work and understanding some low-level design specifications, but negative kudos for not understanding the education system and the immense fiscal burden it places on students for books & software. Sure, many schools provide a free license... here is a little tidbit of information for you: ain't nothing free.