|
-
Oct 12th, 2002, 01:41 AM
#1
Thread Starter
G&G Moderator
Cos, Sin
I know Cos is Cosine and Sin is Sine but what do they do??
Cos( 4 * 5 )
BTW this is Visual Basic
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Oct 12th, 2002, 05:33 AM
#2
-
Oct 12th, 2002, 09:22 AM
#3
Thread Starter
G&G Moderator
Ill try and take all that in, i am only 13 so ill keep trying to fiddle with it.
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Oct 13th, 2002, 04:36 AM
#4
Fanatic Member
-
Oct 15th, 2002, 02:05 AM
#5
Addicted Member
radians are a much more logical system than degrees are though, and its easy to work with them once you get used to it. The advantage to radians is that they are directly compatible with formulas like 2*pi*R and pi*R^2.
-
Oct 15th, 2002, 10:39 AM
#6
Originally posted by glyptar
radians are a much more logical system than degrees are though, and its easy to work with them once you get used to it. The advantage to radians is that they are directly compatible with formulas like 2*pi*R and pi*R^2.
The disadvantage is its subdivision unit is an irrational number, so 45 Degrees expressed in radians is {If PI = 180 degrees} = PI/4.
Imagine Navigating a ship in Radians!
"Helmsman, Take us PI Sixtyieths Radians to the Starboard Side"
-
Oct 15th, 2002, 11:44 AM
#7
Frenzied Member
They give you information about missing parts of triangles that you want to calculate, For example, you can use them to draw a circle
Code:
' draw a red circle in a picture box
const PI = 3.14159265358979 ' some decimals whacked off
const radius = 95
const shift = 200 ' shift everything up and over 200 pixels.
Dim x as double, y as double,angle as double
Dim xlong as long, ylong as long
Dim retval as long
Private Declare Function SetPixel Lib "gdi32" (ByVal hdc As Long, _
ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
for angle=0 to PI*2 step (2*PI)/(1/360) ' step by degrees
x=cos(angle)*radius
y=sin(angle)*radius
xlong=cLng(x)
ylong=Clng(y)
retval=SetPixel(Picture1.hDC,xlong,ylong, vbRed)
next
-
Oct 15th, 2002, 08:37 PM
#8
Addicted Member
true, but thats why my VB helmsman can make calculations all on his own
-
Oct 16th, 2002, 05:31 AM
#9
-
Oct 16th, 2002, 09:23 AM
#10
Frenzied Member
sql_lall - nothing I was showing how the circle method did it's job.
-
Oct 16th, 2002, 10:53 AM
#11
Frenzied Member
I cannot give you a complete trig course here, but following are a few hints.
Imagine a right triangle with a hypotenuse (longest side) equal to 2, and one of the shorter sides equal to 1. The third side is equal to SquareRoot(3).
The Sine of the angle opposite the shortest side is 1/2, and the Cosine of that angle is SquareRoot(3)/2.
The Sine and Cosine are ratios of triangle sides. If you know one angle of a right triangle and the hypotenuse, you can use the Sine & Cosine Functions to determine the lengths of the short sides.
Sine & Cosine appear in a lot of formulae, and have uses other than the above.
In a 3, 4, 5 Right triangle, the following are true.
Sine(SmallerAngle) = 3/5
Cosine (SmallerAngle) = 4/5
Tangent(SmallerAngle) = 3/4
Sine(BiggerAngle)= 4/5
Cosine(BiggerAngle)= 3/5
Tangent(BiggerAngle)= 4/3
Live long & prosper.
The Dinosaur from prehistoric era prior to computers.
Eschew obfuscation!
If a billion people believe a foolish idea, it is still a foolish idea!
VB.net 2010 Express
64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|