With the two arrays, note that array2(1) is the first number, and array3(1) is the first operator. Each number in array2 is separated by the operator in array3. Therefore, by reading array2(1), array3(1), array2(2), array3(2)...etc. You are reading the equation.

Now make array4() as double.
Ok, I'll try another formatting.

[Visual Basic Code]
dim array4() as double
dim ubnd as long
dim x as long
dim n as long

ubnd=ubound(array2)

'Array2() will have one more value than array3().

for x=1 to ubnd

if x<ubnd
if array3(x)="*" or array3(x)="/" then