Now for some reason I get an error that I've defined each of the 3 func two times. The two lines of definition that it gives me for each one are the first and last{} of each func, does anyone know why?
Thanks.

Never use pow to perform squaring - it's a complicated and slow function that needs to perform several slow floating point ops. Squaring can be done in a single operation due to common subexpression elimination.

Share this post

Link to post

Share on other sites

Original post by daniel_i_lHi, I'm working eith Dev and I have this strange problem, for the header file I have:

*** Source Snippet Removed ***

and for the file I have:

*** Source Snippet Removed ***

Now for some reason I get an error that I've defined each of the 3 func two times. The two lines of definition that it gives me for each one are the first and last{} of each func, does anyone know why?Thanks.