Calculate vector solution