added numerical analysis stuff