big10p #1 Do you get the error every time that bit of code is run? If so, it might just be a typo, like:magnitude# = 1/magntude#