You did not mention if you just want the value or you wanted this to be another column formula. If it is s column formula you need to provide more information. Here is an exampe with a computation using only 2 of 6 rows.
Names Default to Here(1);
dt = new Table("Test", Add Rows(6), New Column("Values", numeric, continuous, Set Values(J(6,1, Random Integer(1,20))) ) );
mysum = :Values[2]^2 + :Values[4]^2 - 4 * :Values[2]*:Values[4] ;
show(mysum );