I've yet to see The Martian, but have read the book and found it pretty reasonable for the behaviour of all characters, I guess the advantage of a book is that the author can describe the internal thoughts of a character much more clearly than an actor can portray on screen. Further while I'm not rocket science (I prefer rocket surgeon, thanks KSP), my understanding is that the science in The Martian was pretty solid the whole way through.