I usually program scientific applications (Physics/Biology/Mathematics) in C++ and Python, sometimes relying on wxmaxima/maple/matlab etc., I write texts with Latex and plot figures with gnuplot and inkscape.