navneet.sinha.505 0 Newbie Poster

help me to shorten this awk code.I m newbie for this language.

{if(NR>1){z=0;x=$1;while(x){z+=x/(x^4+x^2+1);x--;}printf"%.5f\n",z;}}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.