Thinking aloud, if you could guarantee 32-bit Excel was available you could probably use Excel automation to do it, i.e.
Create a Workbook programmatically Fill defined cells with your input values Do a Goal Seek with result in a defined cell Read that value back to VFP.
Range("B4").GoalSeek Goal:=-900, ChangingCell:=Range("B3")