What will happen if 1/0 condition appears in microcontroller?
No matter what architecture you use, you can do a check before dividing.
temp = (v(n) - v(n-1));
 if  temp &lt;&gt; 0.0 
{
  result = 1.0/ temp^3 ;
}
else
{
  result = ...whatever you want
}