Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (float y, x = -1.0; x <= 1.0; x += 0.1) {
- y = (4*x*x*x) + (3*x*x) + (5*x) - 10;
- printf("x = %.2f, y = %.2fn", x, y);
- }
- x = -1.00, y = -16.00
- x = -0.90, y = -14.99
- x = -0.80, y = -14.13
- x = -0.70, y = -13.40
- x = -0.60, y = -12.78
- x = -0.50, y = -12.25
- x = -0.40, y = -11.78
- x = -0.30, y = -11.34
- x = -0.20, y = -10.91
- x = -0.10, y = -10.47
- x = 0.00, y = -10.00
- x = 0.10, y = -9.47
- x = 0.20, y = -8.85
- x = 0.30, y = -8.12
- x = 0.40, y = -7.26
- x = 0.50, y = -6.25
- x = 0.60, y = -5.06
- x = 0.70, y = -3.66
- x = 0.80, y = -2.03
- x = 0.90, y = -0.15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement