0% found this document useful (0 votes)
167 views

Mathcad Defining Evaluating Functions

The document discusses defining and evaluating functions to calculate triangle properties like area and side lengths. It provides examples of defining variables for triangle properties like side lengths and angles in units like cm and degrees. It then shows evaluating functions to calculate values like area, missing side lengths, and more using trigonometric functions.

Uploaded by

Kim Aceo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
167 views

Mathcad Defining Evaluating Functions

The document discusses defining and evaluating functions to calculate triangle properties like area and side lengths. It provides examples of defining variables for triangle properties like side lengths and angles in units like cm and degrees. It then shows evaluating functions to calculate values like area, missing side lengths, and more using trigonometric functions.

Uploaded by

Kim Aceo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

AUGUST 22, 2020

DEFINING AND EVALUATING FUNCTIONS AUGUST 22, 2020


For your practice, calculate the area of a triangle:
• The general formula for the area of a triangle is 1/2 *a*b*sin(α), where a and b are the
length of
two of the sides of the triangle, and α is the angle between these sides. Define a 3-argument
function for calculating the area of triangles.
• A triangle has two sides of 5mm and 1.5 cm, and the angle between them is 32°. Define
these
variables. Make sure you type in all the units, including the degree for the angle.
• Evaluate the function for this triangle and check that its area is 0.199cm2. Initially, the result
is
returned in m2, so you must convert the units to cm2.

a ≔ 5 mm
b ≔ 1.5 cm
θ ≔ 32 deg
1
A ≔ ―a ⋅ b sin ((θ))
2

A = ⎛⎝1.987 ⋅ 10 -5⎞⎠ m 2
A = 0.199 cm 2

2 CWD = “C:\Users\ACER\Documents\”
AUGUST 22, 2020
DEFINING AND EVALUATING FUNCTIONS AUGUST 22, 2020

1. A 6m long ladder leans against a vertical wall. If the top of the ladder is 4.8 m above the
floor, how far is its foot from the wall?

c2 =a2 + b2
c≔6 m
b ≔ 4.8 m
a ≔ ‾‾‾‾‾‾
c2 - b2
a = 3.6 m

2. In measuring the distance AB, the tape was not accurately levelled and that one end is
0.85m lower than the other end. If the measured distance is 28.63 m, what is the correct
distance?
a ≔ 28.63 m
b ≔ 0.85 m
a2 =b2 + c2
c ≔ ‾‾‾‾‾‾
a2 - b2
c = 28.617 m

3. Given the sides of a triangle ABC: a=36.3 cm, b=23.9 cm, c=?. The angle opposite side a is
102.7°. Compute value of side c in cm, mm and inches.

a ≔ 36.3 cm
b ≔ 23.9 cm
α ≔ 102.7 deg
⎛ sin ((α)) ⎞
β ≔ asin ⎜b ⋅ ――― ⎟
⎝ a ⎠
β = 39.963 deg
γ ≔ 180 deg - α - β
γ = 37.337 deg
sin ((γ))
c ≔ ――― ⋅a
sin ((α))
c = 22.568 cm
c = 8.885 in
c = 225.681 mm

4. The perimeter of a triangle is 271 cm. The interior angles measure 50°, 60°, and 70°,
3 CWD = “C:\Users\ACER\Documents\”
respectively. What is the length of the longest side of the triangle?
AUGUST 22, 2020
4. The perimeter DEFINING AND
of a triangle is 271 EVALUATING
cm. The FUNCTIONS
interior angles measure 50°, 60°, and 70°,
respectively. What is the length of the longest side of the triangle? AUGUST 22, 2020
P ≔ 271 cm
α ≔ 70 deg
β ≔ 60 deg
γ ≔ 50 deg
P
k ≔ ――――――――
sin ((α)) + sin ((β)) + sin ((γ))
k = 105.375 cm
a ≔ k ⋅ ((sin ((α))))

a = 99.02 cm b ≔ k ⋅ ((sin ((β)))) c ≔ k ⋅ ((sin ((γ))))


b = 91.258 cm
c = 80.722 cm
b has the longest side
5. Two sides of a triangle measures 8m and 12m and the angle opposite the 8-m side is 30°.
What is the measure of the third side of the triangle?
x ≔ 12 m
y≔8 m
α ≔ 30 deg
⎛ sin ((α)) ⎞
β ≔ asin ⎜x ⋅ ――― ⎟
β = 48.59⎝ deg y ⎠
x ≔ 180 deg - α - β
x = 101.41 deg
sin ((x))
z ≔ ――― ⋅y
sin ((α))

z = 15.684 m

4 CWD = “C:\Users\ACER\Documents\”

You might also like