It's convoluTed, look here for a definition.
It's convoluTed, look here for a definition.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Mathworld is a good reference for mathematical topics. Here is another definition of convolution.
http://mathworld.wolfram.com/Convolution.html
The reason i want to know this is to find the length of a line, unless some1 knows a way to not use sqrt
Why do you want to use sqrt() to find the length of a line? What line?
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
ill post my basic code
Not using the sqr route the line would be to long or too shortCode:FOR a = 1 TO SQRT((x1 - x) + (y1 - y)) x = x + .5 y = (y + ((y1 - y) / (x1 - x) / 2)) DOT x, y NEXT
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.
Use sin cos or tan if you don't wish to use the square root function.
Favorite Quote:
>For that reason someone invented C++.
BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!
How do i use cos() to do it??
Do you know any of the other lengths and or angles?
Favorite Quote:
>For that reason someone invented C++.
BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!
The above code will plot a line from x,y to x1,y1
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?
Favorite Quote:
>For that reason someone invented C++.
BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!
You confuse me, i never use geometry exept for my circle() function
Do you know any trig.?
Favorite Quote:
>For that reason someone invented C++.
BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!
i cant use -metery
That sucks, why not?
Favorite Quote:
>For that reason someone invented C++.
BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!