|
-
Apr 12th, 2004, 10:11 AM
#1
Thread Starter
Hyperactive Member
Trig Funtions
Is there any possible way to get the Sin, Tan, and Cos in Degrees instead of the VB's default of Radians? Or have a home-made funtions to do all 3 forms? (Grads, Deg, & Rad)
I haven't found anything through search so that's why I'm asking.
53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.

-
Apr 12th, 2004, 10:30 AM
#2
From looking on the internet, the formula looks something like this:
VB Code:
MsgBox Sin(6) * (180 / 3.14159)
Maybe you could try the maths forum...
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 12th, 2004, 11:13 AM
#3
Fanatic Member
-
Apr 12th, 2004, 11:17 AM
#4
So:
VB Code:
MsgBox 180 * (Sin(6) / 3.14159)
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 12th, 2004, 12:00 PM
#5
Fanatic Member
You want to transform the input into sin into degrees from radians. Sin just outputs a number in the range [-1,1]
-
Apr 12th, 2004, 01:08 PM
#6
Actually, it is Sin([x deg]*pi/180). Check it with your calculator:
x = 180 in this case
In degrees: Sin(180) = 0
In radians: Sin(180pi/180) = Sin(pi) = 0
Azteched was correct
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
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
|