# Sqrt()

Show 80 post(s) from this thread on one page
Page 2 of 3 First 123 Last
• 03-09-2003
It's convoluTed, look here for a definition.
• 03-09-2003
Shiro
Mathworld is a good reference for mathematical topics. Here is another definition of convolution.

http://mathworld.wolfram.com/Convolution.html
• 03-09-2003
krappykoder
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-2003
Why do you want to use sqrt() to find the length of a line? What line?
• 03-09-2003
krappykoder
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```
Not using the sqr route the line would be to long or too short
• 03-09-2003
Shiro
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-2003
Bajanine
Use sin cos or tan if you don't wish to use the square root function.
• 03-09-2003
krappykoder
How do i use cos() to do it??
• 03-09-2003
Bajanine
Do you know any of the other lengths and or angles?
• 03-09-2003
krappykoder
The above code will plot a line from x,y to x1,y1
• 03-09-2003
Bajanine
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-2003
krappykoder
You confuse me, i never use geometry exept for my circle() function
• 03-09-2003
Bajanine
Do you know any trig.?
• 03-09-2003
krappykoder
i cant use -metery :D
• 03-09-2003
Bajanine
That sucks, why not?
Show 80 post(s) from this thread on one page
Page 2 of 3 First 123 Last