manual:chapter6:angles:cmd_angtograd

Synopsis


Convert an angle to grads

Stack Diagram


Input Stack Output Stack
Num grad
Z Zgrad
grad
V Vgrad
Level 1 Level 1

Legend

Keyword type Command
Parallel list processing capabilities Group 5 One argument, one result commands
Affected by flags -17 Default angle unit (bit 0)
-18 Default angle unit (bit 1)

Description


The A→∡g command turns a scalar or a suitable component of a composite object into an angle measured in grads.

In particular, if the component is:

  • a scalar, then the number is interpreted as an angle in the current angular mode and converted to grads;
  • a polar complex number, then the angular component is converted to grads;
  • an angle, then the angle is converted to grads;
  • a vector, then any angle or polar complex number but not scalars is converted to grads as per above rules.

Compatibility


A→∡g is specific to newRPL and has no direct equivalent in userRPL.

Usage


Input

4:                                      
3:                                      
2:                                      
1:          [ #2h ∡20g (1,2) (3,∡5.5°) ]
…………………………………………………………………………………………………………
A→∡g                                    


Output

4:                                      
3:                                      
2:                                      
1:      [ ∡2g ∡20g (1,2) (3,∡6.1111.g) ]
…………………………………………………………………………………………………………
                                        

Related Commands


Operations with Angles 11 NEW

Command Short Description
→∡° Mark a number as an angle in degrees NEW
→∡r Mark a number as an angle in radians NEW
→∡g Mark a number as an angle in grads (gons) NEW
→∡d Mark a number as an angle in DMS (DD.MMSS) NEW
A→∡° Convert an angle to degrees NEW
A→∡r Convert an angle to radians NEW
A→∡g Convert an angle to grads (gons) NEW
A→∡d Convert an angle to DMS (DD.MMSS) NEW
→RECT Convert vector or complex to cartesian coordinates NEW
→POLAR Convert vector or complex to polar coordinates NEW
→SPHER Convert vector or complex to spherical coordinates NEW
  • manual/chapter6/angles/cmd_angtograd.txt
  • Last modified: 2021/09/16 02:35
  • by jojo1973