I was adding the sum of the square of numbers as shown below:
do i=1, num
myresult = x(i) * x(i)
end do
However some values of x(i) when squared they become underflow/overflow how can I scale these numbers to get the correct result? Thanks in advance for any help.
do i=1, num
myresult = x(i) * x(i)
end do
However some values of x(i) when squared they become underflow/overflow how can I scale these numbers to get the correct result? Thanks in advance for any help.