It's convoluTed, look here for a definition.

Printable View

- 03-09-2003adrianxw
It's convoluTed, look here for a definition.

- 03-09-2003Shiro
Mathworld is a good reference for mathematical topics. Here is another definition of convolution.

http://mathworld.wolfram.com/Convolution.html - 03-09-2003krappykoder
The reason i want to know this is to find the length of a line, unless some1 knows a way to not use sqrt

- 03-09-2003adrianxw
Why do you want to use sqrt() to find the length of a line? What line?

- 03-09-2003krappykoder
ill post my basic code

Code:`FOR a = 1 TO SQRT((x1 - x) + (y1 - y))`

x = x + .5

y = (y + ((y1 - y) / (x1 - x) / 2))

DOT x, y

NEXT

- 03-09-2003Shiro
Calculating the length of a line. You mean the theorem of Pythagoras?

http://mathworld.wolfram.com/PythagoreanTheorem.html

Back to the original question:

>I'm not neccessarily looking to find out how to do it (I could

>easily find the answer myself), but to see if someone knows the

>formula for it. My math teahcer said she used to know, but she

>hasn't used it in so long that she forgot what it is.

The same with me. I learned it in the math lessons at university, but it is a long time ago that I did that, like some other math I currently don't use much anymore. If I would see the algorithm I will probably understand it again, but I currently don't remember how to do it. - 03-09-2003Bajanine
Use sin cos or tan if you don't wish to use the square root function.

- 03-09-2003krappykoder
How do i use cos() to do it??

- 03-09-2003Bajanine
Do you know any of the other lengths and or angles?

- 03-09-2003krappykoder
The above code will plot a line from x,y to x1,y1

- 03-09-2003Bajanine
Then all you need to do is take the arctan of opposite side/ adjacent side to get an angle then use cos or sin with the appropiate length of one of the sides.

why in the world do you want to do this without using a sqrt function? - 03-09-2003krappykoder
You confuse me, i never use geometry exept for my circle() function

- 03-09-2003Bajanine
Do you know any trig.?

- 03-09-2003krappykoder
i cant use -metery :D

- 03-09-2003Bajanine
That sucks, why not?