/arko-x86_64-parabola

Drawing a quadratic function, approximated by segments of equal length. Project for Computer Architecture (ARKO) laboratories at Warsaw University of Technology.

Primary LanguageAssembly

arko-x86_64-parabola

Drawing a quadratic function, approximated by segments of equal length.
Params: a,b,c - coefficients of quadratic function
S - length of approximation segment
To get a ∆x I move along the tangent to the parabola using the formula ∆x = S * cos(atan(f'(x)))

Output

alt text

Sources