I have been try to draw the function of y^2=4*a*x but I have run into a problem. when I use the math.sqrt function to find the square root of a value which has two answer +or- something i only get the positive value. i.e if i found the sqrt of 4 it would return +2 instead of + or -2.
Any help would be deeply appreciated.
If you read the doc (MSDN is really complete and well made, use it before asking questions) you will see that with a parameter 0 or positive,
Math.Sqrt
returns only "The positive square root of d."If you need the negative value, you have to do it yourself, for example like this :