Qbasicnews.com

Full Version: Optimized Polynomial
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Quote:Instead of writing polynomials in the conventional way like
ax^3 + bx^2 + cx + d
it is much faster to write them as
((ax + b)x + c)x + d

Oh shit...only a few months ago we had this in math lesson...
Right, because qb needs to find the start memory address and then get the stored number for the length of the array... right?
ak00ma wrote:
Quote:Oh @£^$...only a few months ago we had this in month lesson...
Sorry, I wasn't around a few months ago, and I noticed that people were doing the Maclauren (Taylor) series the conventional way in Oracle's sine challenge.

Agamemnus wrote:
Quote:Right, because qb needs to find the start memory address and then get the stored number for the length of the array... right?
It is even more efficient if you were to do if by hand. It usually reduces the number of operations.
Pages: 1 2 3