Library reference

Inverse sine

Find an angle from the ratio of the opposite side to the sloping length. The returned angle is in radians.

math.asin

Simple example

Find the angle for this ratio.

Start0
Result0.0
lesson.dart
import 'dart:math' as math;

void main() {
    print(math.asin(0.0));
}
Output
0.0
Advertisements

Everyday examples

On a drawing a ramp rises half a metre along every metre of slope. What angle does it make?

Start0.5
Result0.5235987755982988
lesson.dart
import 'dart:math' as math;

void main() {
    print(math.asin(0.5));
}
Output
0.5235987755982988

A model arm is horizontal, so its rise divided by length is zero. What angle is that?

Start0
Result0.0
lesson.dart
import 'dart:math' as math;

void main() {
    print(math.asin(0.0));
}
Output
0.0

A lift cable is vertical. Its rise equals its length. What angle is that from the horizontal?

Start1
Result1.5707963267948966
lesson.dart
import 'dart:math' as math;

void main() {
    print(math.asin(1.0));
}
Output
1.5707963267948966
Run the example
Terminal
dart run lesson.dart
Official documentation