Timeline for draw part of parabola using graphics
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 7, 2014 at 17:21 | comment | added | Simon Woods |
@user2485710, Fit does least-squares fitting. There will be plenty of curve fitting libraries for C if you google it. For this specific case it's overkill in fact, because there is an exact solution for the quadratic passing through 3 points. I just used Fit because it's quick and easy to do it that way in Mathematica.
|
|
Nov 7, 2014 at 17:02 | comment | added | user2485710 |
what's a good algorithm for this if I want to implement what Fit does in my own C/C++ code ? How to create a curve from a discrete set of points ?
|
|
Nov 7, 2014 at 13:18 | comment | added | Simon Woods | @ubpdqn, I wouldn't worry about it. Ugly code that works is still code that works :-) | |
Nov 7, 2014 at 12:15 | comment | added | user2838619 | I used graphics because i was not aware of Piecewise and other things you did.I should learn more thing in mathematica .great job.thanks | |
Nov 7, 2014 at 12:13 | vote | accept | user2838619 | ||
Nov 7, 2014 at 12:06 | comment | added | ubpdqn | @SimonWoods...I feel somewhat ashamed of the ugliness of my code...though I like aligning vertically...have corrected my ugliness | |
Nov 7, 2014 at 11:52 | history | answered | Simon Woods | CC BY-SA 3.0 |