SHARE
TWEET

Square of an unsigned integer without products.

a guest Dec 29th, 2012 87 Never
  1. /*
  2.    Please review and comment if at certain low level the computers today already
  3.    make such calculations with the method shown below.
  4. */
  5.  
  6. uisqr(x)={my(i,j,k); x+sum(i=1,2,sum(j=1,(x-1),sum(k=(j+1),x,1)))};
RAW Paste Data
Top