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;}}
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;}}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.