Hi, My son is learning Quadratic Equation and I am trying using Stata to help him.
But before help him, First, I need help myself.
Suppose we want to solve the following equation and Bhaskara's is here to help us on that
The equation -5x² + 240x + 5000 = 0 has 2 real roots when solved:
double checked with : https://coolconversion.com/math/quad...ion-calculator
however when plotting using:
the plot crosses the X axis in ~-10 and ~+20, when Y=0

Am I using the appropriate function to plot it ?
But before help him, First, I need help myself.

Suppose we want to solve the following equation and Bhaskara's is here to help us on that
The equation -5x² + 240x + 5000 = 0 has 2 real roots when solved:
Code:
. di ((-240)-((240)^2-4*(-5)*5000)^(1/2))/(2*(-5)) 63.698866 . di ((-240)+((240)^2-4*(-5)*5000)^(1/2))/(2*(-5)) -15.698866
however when plotting using:
Code:
twoway (function (-(5*x)^2)+(240*x)+5000, range(-20 20)),yline(0) xline(0)
Am I using the appropriate function to plot it ?
Comment