how can i make a program that uses the quadratic formula in TURBO C????
82879
If your quadric equation is ax2 + bx + C = 0 Than your program should be as below to find the value/s of X.\n\n#include<stdio.h>\n#include<conio.h>\n#include<math.h>\n\nvoid main()\n{\n\nclrscr();\nfloat a,b,c,delta,x1,x2,sqrtdelta;\n\nprintf("Enter the Value of a : ");\nscanf("%f",&a);\nprintf("Enter the Value of b : ");\nscanf("%f",&b);\nprintf("Enter the Value of c : ");\nscanf("%f",&c);\n\ndelta= b*b - 4*a*c;\nsqrtdelta = sqrt(delta);\n\nx1 = (-b + sqrtdelta)/(2*a);\nx2 = (-b - sqrtdelta)/(2*a);\n\nprintf("The X1 : %f",x1);\nprintf("The X2 : %f",x2);\n\ngetch();\n\n}\n\nI think this enough for you. If you need any further help than try to contact me.\n\nBye.
449502
There is NO easy way to grab Algebric Manipulation... make ur lazy a** try harder.
893823
Use the quadratic equation \n\nt = -b + or - sqr(b^2 - 4ac)/2a\n\nyour equation is already in the form:\n\nat^2 + bt + c = 0\n\njust plug in the variables and solve for t twice
583062
i'm not sure if i know what you're asking for, but to solve a quadratic equation you should just be able to use your solve( command and enter in the expression.  be sure to put a comma and the variable name at the end of it, for example \n\nsolve(x^2 + 2x +3=0, x)\n\np.s. i just typed that in randomly, it may have imaginary roots, which your calculator can handle but you'll have to use csolve(
878923
Make a program on your calculator.\nView the snippet in the link for code.
82007
Just type in quadratic equation and maybe roots in a serch engine. You will have your pick of dozens of sites.
759679
heres copied direcly from my calculator to yours...\nmake two programs\nprgm mid:\nInput "X1:",A\nInput "Y1:",B\nInput "X2:",C\nInput "Y2:",D\nClrHome\nDisp " Midpoint, X=",(C+A)/2\nOutput(3,12,"Y=")\nDisp (B+D)/2\nDelVar A\nDelVar B\nDelVar C\nDelVar D\nOutput(1,1," ")\n\nprmn dist\nInput "X1:",A\nInput "Y1:",B\nInput "X2:",C\nInput "Y2:",D\nClrHome\nDisp "DIST="\nDisp root((C-A)2+(D-B)2)*****\nDelVar A\nDelVar B\nDelVar C\nDelVar D\nOutput(1,1," ")\n\nnote: in the distance one\nreplace root with the squareroot function and 2 with squared
1057648
You always can bring a quadratic equation\nax2 + bx + c = 0  in the form x2 + 2px + q = 0\nby dividing with a and p = b/(2a) while q = c/a\n\nx2 + 2px + q = 0\nx2 + 2px + p2 + q = p2\n(x + p)^2 = p2 - q\nx + p = +V(p2 - q) or x + p =  -V(p2 - q) \nx  = -p +V(p2 - q) or x = -p  - V(p2 - q)\n\nWhen you replace p and q you find the famous abc formula.\nSatisfied?
966120
try this stuff... pls understand the logic...\n\n#include<stdio.h>\n\nint main()\n{\nint no,rem;\nscanf("%d",&no);\nwhile (no)\n{\nrem = no % 10;\nprintf("%d",rem);\nno = no / 10;\n}\n}
720929
Let me just work through the steps to solve the problem:\n\nsqrt(2x^2-1)=x   <---Original Equation\n2x^2-1=x         <---Square both sides\n2x^2-x-1=0       <---Subtract x\n\nNow, apply the quadradic equation:\nx=(-b+/-(sqrt(b^2-4ac))/(2a)\n\nFor this equation, the equation is:\nx=(-(-1)+/-(sqrt((-1^2)-4*2*(-1))/(2*(2))\n\nSimplified it is:\nx=(1+/-sqrt(1+8))/(4)\nx=(1+3)/4 or x=(1-3)/4\n\nSo, x=1 or x=-1/2
864388
some formulas that can help :\nhttp://www.eskridgeinc.com/support/formulas.html
1018747
You can store as many characters in an C array as you want.\n\nAlso I suggest you change to djgpp if you something similar to turbo c++. TUrbo C++ 3 is more or less dead and was ment for DOS only. Other alternates are VC 6, GCC on Linux, GCC using cygwin on windows.\n\nThere are some errors in the code you posted along with your question.\n\nIt should be \n\nchar input[1000];\ngets(input);\n\nand not gets(&input)\nSame is the case with scanf\n\nSince the name of an arrey itself is a pointer you need not send address of pointer.
697721
First up you are going to need a compiler, you can get a free one here.\nhttp://www.borland.com/downloads/download_turbo.html\n\nInformation about it can be found here.\nhttp://www.turboexplorer.com/\n\nSome tutorials for c++ can be found here.\nhttp://www.cs.wustl.edu/~schmidt/C++/\n\nhttp://www.cplusplus.com/doc/tutorial/\n\nYou do not have to worry about memory allocation in C++, you can deal with it if you want, but you can avaoid it by using the keywords, 'new', 'delete', and 'delete[]'.\n\nRegarding the generation of random word segments, it would be done the same way as the random numbers are generated.\n\nIe, make an enum of these word segments,\nstring[] word_segments[5] = {"a", "an", "her", "ot", "etc"}\n\nWhen you get the random number, have it select a value from this array.\n\nword_segments[random_number];
797913
That's the quadratic formula. It is the solution to equations of the form\nax^2+bx+c=0
714493
This *is* the way to write it so that x is the input and w is the output. If you want to solve for x in terms of w (i.e. have w the input and x the output), you are better off doing numerical approximations than using the cubic formula (it is really, really nasty).
368941
I can help you with this program in C (not C++).\n\n#include <stdio.h>\n\nint a;\n\nvoid main(void)\n{\n   for(a = 0; a <= 1000; a++)\n   {\n       printf("%d&#92;n", a);\n   }\n}\n\nThe above program lists numbers starting from 0 to 1000.\nYou can modify the program to add up all those numbers if that is what you want.\n\n#include <stdio.h>\n\nint a, sum = 0;\n\nvoid main(void)\n{\n   for(a = 0; a <= 1000; a++)\n   {\n      printf("%d&#92;n", a);\n      sum = sum + a;\n   }\n   printf("Sum = %d", sum);\n}\n\nThis program prints and also finds the sum to 1000 numbers starting from 0!
175327
Try this, maybe?\n\nhttp://mathforum.org/library/drmath/drmath.elem.html