code for math460(Mathematical Modeling)