Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimized Polynomial
#21
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...
B 4 EVER
Reply
#22
Right, because qb needs to find the start memory address and then get the stored number for the length of the array... right?
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#23
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.
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)

For God so loved the world, that He gave His only begotten Son,
that whoever believes in Him should not perish, but have eternal life.(John 3:16)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)