Ask Your Question

Andre Mikulec's profile - activity

2020-04-25 07:31:57 +0100 received badge  Good Answer (source)
2016-08-14 20:05:24 +0100 received badge  Nice Answer (source)
2013-06-26 13:53:03 +0100 received badge  Teacher (source)
2013-06-26 13:53:03 +0100 received badge  Necromancer (source)
2012-08-04 15:07:56 +0100 answered a question How-to: (Linear ...) regression in Sage
    mydata = [[1,3],[2,7],[3,13],[4,24]]
    var('a,b,c')
    mymodel(x) = a*x^2 + b*x + c 
    myfit = find_fit(mydata,mymodel,solution_dict=True)
    myfit
    points(mydata,color='purple') + plot(
      mymodel(
        a=myfit[a],
        b=myfit[b],
        c=myfit[c]
        ), 
        (x,0,4,),
        color='red'
      )