Thread: help!

  1. #1
    Registered User
    Join Date
    Feb 2018
    Posts
    1

    help!

    Hey guys, i got big trouble with one of my task.

    someone could help me?

    I have to write function for, for 20 arguments.

    help!-28877038_1425196317608566_1384656478_o-pnghelp!-28877038_1425196317608566_1384656478_o-png

    this is my function:
    double edx(double x){
    double i=-1;
    double sum=1;
    double ratio=1;
    const double epislon=1e-9;
    while (fabs(ratio)>epislon * fabs(sum))
    {


    ratio*=-x*x/(i*(i));
    sum=sum+ratio;
    i=i+2;

    I know this is bad, but why, and what i need to change

  2. #2
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787

Popular pages Recent additions subscribe to a feed

Tags for this Thread