David Beck, a science teacher at Oak Middle School in Los Alamitos, checking students’ assignments. After reading “The Martian” two years ago, “I thought, I could teach all of my eighth-grade physical science out of this book,” he said.