Sine
For a right triangle, sine links an angle to the side opposite it. A 30-degree angle is about 0.5236 radians. Supply the angle in radians, then multiply by the sloping length to find the rise.
f64::sin
Simple example
Use an angle of zero radians.
Start0
Result0
fn main() {
println!("{}", (0.0_f64).sin());
}
0
Advertisements
Everyday examples
A scale drawing shows a four-metre ladder at 30 degrees to the ground. How high is its top in metres?
Start0.5235987755982988
Result1.9999999999999998
fn main() {
println!("{}", 4.0 * (0.5235987755982988_f64).sin());
}
1.9999999999999998
A Ferris wheel has an eight-metre radius. The hub is ten metres above the ground. When the cabin is 30 degrees above the horizontal, how high is it above the ground?
Start0.5235987755982988
Result14
fn main() {
println!("{}", 10.0 + 8.0 * (0.5235987755982988_f64).sin());
}
14
A two-metre model ramp rises at 30 degrees. How many metres does it rise?
Start0.5235987755982988
Result0.9999999999999999
fn main() {
println!("{}", 2.0 * (0.5235987755982988_f64).sin());
}
0.9999999999999999