Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
' Trigonometric functions in BaCon use Radians for input values
|
||||
' The RAD() function converts from degrees to radians
|
||||
|
||||
FOR v$ IN "0, 10, 45, 90, 190.5"
|
||||
d = VAL(v$) * 1.0
|
||||
r = RAD(d) * 1.0
|
||||
|
||||
PRINT "Sine: ", d, " degrees (or ", r, " radians) is ", SIN(r)
|
||||
PRINT "Cosine: ", d, " degrees (or ", r, " radians) is ", COS(r)
|
||||
PRINT "Tangent: ", d, " degrees (or ", r, " radians) is ", TAN(r)
|
||||
PRINT
|
||||
PRINT "Arc Sine: ", SIN(r), " is ", DEG(ASIN(SIN(r))), " degrees (or ", ASIN(SIN(r)), " radians)"
|
||||
PRINT "Arc CoSine: ", COS(r), " is ", DEG(ACOS(COS(r))), " degrees (or ", ACOS(COS(r)), " radians)"
|
||||
PRINT "Arc Tangent: ", TAN(r), " is ", DEG(ATN(TAN(r))), " degrees (or ", ATN(TAN(r)), " radians)"
|
||||
PRINT
|
||||
NEXT
|
||||
Loading…
Add table
Add a link
Reference in a new issue