After a 5+ month hiatus from redstone, I'm starting again with a medium-sized project - in particular, the second iteration of my grapher. Pictures will be posted as the project grows.
Features:
Pictures:
The algorithm:
In pseudocode, the algorithm is as follows (with a, b, c the coefficients of the quadratic ax^2 + bx + c):
Explanation: coming soon
Features:
- Constant, linear, and quadratic graphing
- Four 16x16 quadrants
- "Filled-in" curves
- 2 bit signed coefficients
- Fast, multiplication-free algorithm
Pictures:
The algorithm:
In pseudocode, the algorithm is as follows (with a, b, c the coefficients of the quadratic ax^2 + bx + c):
Code:
x := 0
y := c
e := a
while plotting:
plot(x, y)
x += 1
y += (e + b)
e += (a >> 1)
Explanation: coming soon