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)
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.
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