SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

Curve Class
O bem que a violência faz, é - sempre - passageiro.
O mal que ela faz, é permanente.
Mahatma Gandhi
< Line | Parabola | Ellipse >
  • Equation:
    [; y=Ax^2+Bx+C ;]
  • Parametrization:
    [; \left( \begin{array}{c} x(t)\\y(t) \end{array}\right) = \left( \begin{array}{c} t\\At^2+Bt+C \end{array}\right) ;]
    Python Listing: Parabola.py.
    class Parabola(Curve):
        self.A=1.0
        self.B=1.0
        self.C=1.0
    
        def Parabola(t):
            return Vector([
                t,
                t*(self.A*t+self.B)*t+self.C
            ])
    
  • Varying [;b;]
< Line | Parabola | Ellipse >
Messages:
0 secs.