Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
manual:chapter3:angles [2017/08/10 18:53] smartin [Entering Angles] |
manual:chapter3:angles [2019/07/25 16:07] claudio [Working with Angles] |
||
---|---|---|---|
Line 5: | Line 5: | ||
==== Entering Angles ==== | ==== Entering Angles ==== | ||
- | Angles are their own object type. An angle is entered by prefixing a number with the angle symbol (∡, **AL-RS-6**), | + | Angles are their own object type. An angle is entered by prefixing a number with the angle symbol (∡, shortcut |
- | ---- | + | |
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | and | ||
+ | |||
+ | '' | ||
- | ==== Working with Angles ==== | ||
---- | ---- | ||
+ | ==== Working with Angles ==== | ||
+ | Trigonometric functions operate on angle objects as expected: | ||
+ | |||
+ | '' | ||
+ | |||
+ | Basic arithmetic operations can also be applied to angle objects: | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | The result of an operation on angle objects has the following conventions: | ||
+ | |||
+ | * Addition and subtraction between angles returns an angle expressed in the system of the first argument. For example '' | ||
+ | |||
+ | * Addition and subtraction between an angle and a real number will interpret the real number as an angle given in the [[manual: | ||
+ | |||
+ | * Multiplication of an angle by a real number will result in an angle in the given format. For example '' | ||
+ | |||
+ | * Division of an angle by a number results in an angle in the given format. For example '' | ||
+ | |||
+ | * Commands and functions that accept angles as arguments will consider that a real number is an angle expressed in the [[manual: | ||
+ | |||
+ | * For all other operations and commands, including those that don't accept angles as arguments, angles will be converted to radians and become normal real numbers. Notice that radians will be used, regardless of the current angle mode. For example '' | ||
+ | |||
+ | * The system is capable of tracking the behavior mentioned above, therefore if an operation results in an angle being forced into radians, commands that accept angles as arguments (like SIN, COS and TAN) will interpret a number as radians, rather than the current angle mode. For example '90 ∡45° / SIN'' | ||
+ | |||
+ | |||
+ | ---- | ||
==== Commands for Angle Objects ==== | ==== Commands for Angle Objects ==== | ||
+ | | Command | Purpose | Example | | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
---- | ---- |