-- This section gets the multiplicative constants a,b,c, and d
if choice <= 6 then
put line choice of cd fld "trig look up" into func
put "A " & func & "(Bx + C) + D" into You
set the name of cd btn id 3 to You
show btn id 3
ask "What is the constant…A?" with 1
if it is empty then exit to HyperCard
put it into A
ask "What is the constant…B?" with 1
if it is empty then exit to HyperCard
put it into B
ask "What is the constant…C?" with 0
if it is empty then exit to HyperCard
put it into C
ask "What is the constant…D?" with 0
if it is empty then exit to HyperCard
put it into D
hide btn id 3
-- This little piece handles the default situation
if a = 1 then
if b = 1 then
if c = 0 then
if d = 0 then
put line choice of cd fld "Trig Look Up" & "(x)" into fld "function"
exit to HyperCard
end if
end if
end if
end if
put A & "*" & line choice of cd fld "Trig Look Up" & "(" & B & "*x + " & C & ") + " & D into fld "function"
else
-- This handles the inverse functions
put line choice of cd fld "Trig Look Up" into fld "function"
end if
end mouseDown
-- part 2 (field)
-- low flags: 80
-- high flags: 2002
-- rect: left=40 top=71 right=241 bottom=92
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Trig Look Up
-- part 3 (button)
-- low flags: 80
-- high flags: C004
-- rect: left=178 top=60 right=99 bottom=312
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: A cot(Bx + C) + D
-- part contents for background part 4
----- text -----
Trigonometric Function Editor
-- part contents for background part 2
----- text -----
You can use this card to edit and write the trig function you wish to be graphed. Use the "Function Editor" button or enter your equation directly below. Use the "Graph Equation" button to actually graph your work.
If you'd like to read more, click this button -->
-- part contents for background part 3
----- text -----
Trigonometric Functions
Asin(Bx + C) + D, Acos(Bx + C) + D
-- part contents for background part 7
----- text -----
Trig Edit Box
-- part contents for card part 2
----- text -----
sin
cos
tan
csc
sec
cot
asin(x)
acos(x)
atan(x)
acsc(x)
asec(x)
acot(x)
-- part contents for background part 5
----- text -----
The Trigonometric functions are a family of functions that are periodic. A function is periodic if it starts repeating itself after a while. Since the trigonometric functions ( trig for short ) are based upon the circle they repeat themselves every full circle.
A whole circle can be divided into smaller parts. For instance there are exactly 360 degrees in a circle. Other measures prove to be of use also. One such measure is the
radian measure. In a full circle there are 2 π radians. The number
π, in fact, is the ratio of the cirlce's circumfrence to its diameter
is approximately equal to 3.141592653589793238.
The trig functions which you generate here take an angle as
their argument. The argument is the little "x" in the
parentheses. The functions in this stack compute the angles
while assuming they are measured in radians.
Sine and Cosine are the major functions. As shown in the
picture, sine and cosine are the lengths of the triangle legs
formed when an angle is drawn upon a circle that has a
radius of 1. That kind of circle is called the Unit Circle.
The other trig functions are Tangent, Secant, Cosecant, and
Cotangent. Also included on this card are all of the inverse trig
functions. Instead of taking an angle and giving back a length, they
take a length and spit back an angle. On the left are the definitions of the
other trig functions. Click anywhere to dismiss this help.