Search found 1 match

by dark_dragon
Mon Mar 29, 2010 4:01 pm UTC
Forum: Coding
Topic: Smart ways to solve an equation in C++
Replies: 13
Views: 1841

Re: Smart ways to solve an equation in C++

isn't that the quadratic equation?

m=n(3n-1)/2

or 0 = (3/2)n^2 + (1/2)n - m

whcih can be solved using http://en.wikipedia.org/wiki/Quadratic_equation#Quadratic_formula

Go to advanced search