Drawing the Quadratic formula with sliders on a JPanel

前端 未结 3 1418
不思量自难忘°
不思量自难忘° 2021-01-23 00:20

So, I\'m trying to make a program where you can input the quadratic formula (ax^2+bx+c) via sliders. Then it draws a graph as you adjust for A, B, and C.

Issues:

<
3条回答
  •  深忆病人
    2021-01-23 00:53

    _"error: possible loss of precision Y = (A*(Math.pow(x,2)))+(B*x)+(C); ^ required: int found: double"_

    All your int variables int A, B, C, x,Y;. Make them doubles. double A, B, C, x,Y;

提交回复
热议问题