I know cause I did it.
And I knew the math beforehand. I was a Physics major in college with a CS minor.