I can't really help, just curious

Code: Select all
public static Quadratic From3Points(decimal x1, decimal x2, decimal x3, decimal y1, decimal y2, decimal y3)
{
//Convert the 3 points to quadratic equations.
Quadratic equation1 = new Quadratic(x1, y1);
Quadratic equation2 = new Quadratic(x2, y2);
Quadratic equation3 = new Quadratic(x3, y3);
//Cancel out "C"
Quadratic equation4 = equation1.MakeSubject(equation1.C) - equation2.MakeSubject(equation2.C);
Quadratic equation5 = equation2.MakeSubject(equation2.C) - equation3.MakeSubject(equation3.C);
//Cancel out "B"
Quadratic equation6 = equation4.MakeSubject(equation4.B) - equation5.MakeSubject(equation5.B);
//Solve for A then B then C
var a = equation6.MakeSubject(equation6.A).Result;
var b = (equation4.Result - equation4.A*a)/equation4.B;
var c = y1 - (a * x1 * x1) - (b * x1);
//Create new Quadratic solver based on A B and C.
var output = new Quadratic
{
A = a,
B = b,
C = c
};
return output;
}
“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)
Try read chapter about DAT files in my "YSFLIGHT HANDBOOK" (link in my sign)xX_SuperSic58_Xx wrote:What should the weighting be for each?
“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)
Code: Select all
User.Can(UsersRank.Permission, Users.Console);
Code: Select all
User.Can.Permission(User, [GroupScope]);
Code: Select all
User.Can.Ban(Otheruser);
User.Can.Promote(Otheruser, Groups.Server);
Users browsing this forum: No registered users and 1 guest