»Need confirmation with the program

Discussion in 'Off-Topic' started by IcyTea, Mar 1, 2018.

Thread Status:
Not open for further replies.
  1. IcyTea

    IcyTea Nimble Knuckle Member

    Messages:
    392
    Ratings:
    +134 / -0
    Note: try not to join in this thread if you're not into this situation.

    So yeah, what the title says,
    I kinda need confirmation if this program applies to the topic "Infinite Series: Comparison Test"
    the objective of the topic is, how are we going to use it on our field of program (computer engineering), so I wanted to do this topic through coding it with c#, c++, or vb.net.

    so here's a pseudo algorithm
    I: array of structures, consisting of pre-made functions
    the user is only allowed to select one functions
    struct Function {
    string display; //sum ((x)/(2x^2+1),1,infty)
    double equation1; //eqn1 = (x)/(pow(x,2) + 1)
    double equation2; //eqn2 = (1/x)
    };

    P: Let x = 1; and substitute x to the user's selected function
    if (eqn1 == eqn2) x++; and substitute x again

    O: if eqn1 <= eqn2 "Convergent"
    eqn1 > eqn2 "Divergent"

    pls help, and thanks in advance <3

    don't mind on how I construct a sentence x)
     
    #1
  2. DerpySasuke

    DerpySasuke Succ Member

    Messages:
    1,187
    Ratings:
    +698 / -0
    Someone forgot that this is a minecraft server forums
     
    #2
  3. Looting_III

    Looting_III Enthusiast Member

    Messages:
    136
    Ratings:
    +35 / -0
    Your code is unreadable. Also VB should die and anyone using it should feel bad.
    sum ((x)/(2x^2+1),1,infty)
    Really you need a function to do a sum? And wtf is up with ,1,infty
    Like are you trying to do ((x)/(2x^2+1) + 1 + float.infinity) ? because that's always going to be float.infinity

    "P: Let x = 1; and substitute x to the user's selected function"
    Then why do we let x = 1 if we are just replacing it with the user choice? And also "let" baah vb needs to die.
     
    #3
  4. CyberHazard

    CyberHazard Forum Master Member

    Messages:
    1,812
    Ratings:
    +1,317 / -0
    IMG_5322.JPG
     
    #4
  5. _Meeper

    _Meeper Nimble Knuckle Member

    Messages:
    363
    Ratings:
    +60 / -0
    Oh whoops I didn't realise I was on a coding website cya guys
     
    #5
  6. IcyTea

    IcyTea Nimble Knuckle Member

    Messages:
    392
    Ratings:
    +134 / -0
    it's a concept, not an actual code

    some coding websites aren't helpful with that question, i guess none can help here i guess hihihi

    requesting for deleting this post
     
    #6
  7. Sherif

    Sherif Forum Master Member

    Messages:
    1,772
    Ratings:
    +1,078 / -0
    Locked.
     
    #7
Thread Status:
Not open for further replies.

Share This Page