Re: cos theta = 1



On Aug 21, 10:57 am, hobbes <sardonicStuffedTi...@xxxxxxxxx> wrote:
On Aug 21, 10:32 am, Randy Poe <poespam-t...@xxxxxxxxx> wrote:



On Aug 21, 10:19 am, hobbes <sardonicStuffedTi...@xxxxxxxxx> wrote:

hi yes cos = 1 was just an example, i was seeking the general
solution. i wasn't sure if you could just divide both sides of the
equation by cos. i guess that's what's happening when you use arccos?

No, that's not what's happening. "Divide by cos" doesn't
mean anything, since "cos" is not a number.

Imagine you have a table with two columns. In column 1 is
a bunch of values of theta. In column 2 is the corresponding
values of cos(theta). The operation "arccosine" is like
starting with a value in column 2, and seeing which value
in column 1 corresponds to that. It has nothing to do
with dividing. Division never comes into it.

Here is a plot of acos(x). An acos function starts with
a value from -1 to 1 on the x-axis of this plot, and finds
the corresponding value on the y-axis.http://www.mathworks.com/access/helpdesk/help/techdoc/ref/acos.html

It has nothing to do with division.

so, in the general case given cos( ) = x, = acos(x) ?

Yes, but -theta is also a solution, and there are
infinitely many others. I'm not sure what you're doing
but I keep reminding you of this because it may turn
out to be important. In some cases -acos(x) might be
the answer that makes more sense for your application.

- Randy

"I'm not sure what you're doing but I keep reminding you of this
because it may turn out to be important."

i'm not doing anything useful now except reminding myself how much
math i forgot (and how much i probably never really understood in the
first place) but i have some function that claims to calculate the
angle between two vectors in degrees. using the fact that the angle
between two vectors can be determined by using the dot product: cos
&theta; = (<b>u</b> &bull; <b>v</b>) / (||u|| ||v||), the logic of the
function does this:

return Math.acos((u.dotproduct(v) / u.magnitude() * v.magnitude()));

do you think this method would give someone a reasonable number for
the angle between two 2D vectors?

by the way, how do you display the html math symbols in this place?

besides the fact that the paranethesis are probably wrong:

return Math.acos(u.dot(v) / (u.magnitude() * v.magnitude()));

.



Relevant Pages

  • Re: Would someone be so kind as to help me with a math equation?
    ... > was the half angle formula which does not give me any negatives. ... the opposite direction,trying to find cos from sin or vice versa ...
    (sci.math)
  • Re: cos theta = 1
    ... "Divide by cos" doesn't ... "I'm not sure what you're doing but I keep reminding you of this ... angle between two vectors in degrees. ...
    (sci.math)
  • Re: Sin Cos Tan, why not Sin Sec Tan?
    ... there's a symmetry between the two ... >> functions it should become clear to you that sin and cos are a natural ... >> pair, whereas the relationship between sin and sec, for example, is more ... Use complimentary angles: the compliment of an angle, co-angle, is a ...
    (sci.math)
  • Re: cos theta = 1
    ... i guess that's what's happening when you use arccos? ... since "cos" is not a number. ... "I'm not sure what you're doing but I keep reminding you of this ... angle between two vectors in degrees. ...
    (sci.math)
  • Re: A help with trigonometric functions, please
    ... because t is not an angle. ... pi radians is the same as 180 degrees. ... new function is Sin and the one you know is sin. ... can calcute the length of sin and cos of a given angle in this second ...
    (sci.math)