manual:chapter6:angles:cmd_angtograd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:chapter6:angles:cmd_angtograd [2019/10/22 13:43]
jojo1973 created
manual:chapter6:angles:cmd_angtograd [2021/09/16 02:35]
jojo1973 Redone
Line 1: Line 1:
 ==== A→∡g ==== ==== A→∡g ====
----- 
 <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> <callout type="primary" color="" icon="fa fa-book" title="Synopsis">
 ---- ----
-Convert an angle to grads (gons)+Convert an angle to grads
 </callout> </callout>
  
Line 9: Line 8:
 ---- ----
 ^  __Input Stack__  ^  ^  __Output Stack__  ^ ^  __Input Stack__  ^  ^  __Output Stack__  ^
-|  **Num<sub>1</sub>**  |  **→**  |  **∡<sub>1(g)</sub>** +|  **Num**  |  **→**  |  **∡<sub>grad</sub>** 
-|  **Z<sub>1</sub>**  |  **→**  |  **Z<sub>1(g)</sub>** +|  **Z**  |  **→**  |  **Z<sub>grad</sub>** 
-|  **∡<sub>1</sub>**  |  **→**  |  **∡<sub>1(g)</sub>** +|  **∡**  |  **→**  |  **∡<sub>grad</sub>** 
-|  **V<sub>1</sub>**  |  **→**  |  **V<sub>1(g)</sub>** +|  **V**  |  **→**  |  **V<sub>grad</sub>** 
-|  //Level 1//  |  //→//  |  //Level 1//  | +|  //Level 1//  |  //→//  |  //Level 1//  |
  
 {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
  
-|**Type**| [[manual:chapter5:basics#commands|Command]]  || +| **Keyword type**  | [[manual:chapter5:basics#commands|Command]]  || 
-|**Parallel list processing**| [[manual:chapter5:listproc#group-5one-argument-one-result-commands|Group 5]]  ||  +| **Parallel list processing capabilities**  | [[manual:chapter5:listproc#group-5one-argument-one-result-commands|Group 5]]  | //One argument, one result commands//  
-|**Affected by flags**| [[manual:appendix:flags#flag-17-18|-17]] | Angular Mode 1 +| **Affected by flags**  | [[manual:appendix:flags#flags-17-18|-17]]  //Default angle unit (bit 0)//  
-| ::: | [[manual:appendix:flags#flag-17-18|-18]] | Angular Mode 2 |+| ::: | [[manual:appendix:flags#flags-17-18|-18]]  //Default angle unit (bit 1)//  | 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 </callout> </callout>
  
Line 29: Line 41:
 In particular, if the component is: 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 **scalar**, then the number is interpreted as an angle //in the current angular mode// and converted to grads;
-  * a **rectangular complex number**, nothing happens;+
   * a **polar complex number**, then the angular component is converted to grads;   * a **polar complex number**, then the angular component is converted to grads;
   * an **angle**, then the angle is converted to grads;   * an **angle**, then the angle is converted to grads;
Line 38: Line 49:
 <callout type="danger" icon="true" title="Compatibility"> <callout type="danger" icon="true" title="Compatibility">
 ---- ----
-This command is new in newRPL and does not exist in userRPL.+''A→∡g'' is specific to **newRPL** and has no direct equivalent in **userRPL**.
 </callout> </callout>
  
 <callout type="info" icon="true" title="Usage"> <callout type="info" icon="true" title="Usage">
 ---- ----
 +**__Input__**
 <code> <code>
-1:  [ #2h ∡18° (1,2) (3,∡5.3d) ] +4:                                       
-…………………………………………………………………………………… +3:                                       
-A→∡g+2:                                       
 +1:          [ #2h ∡20g (1,2) (3,∡5.) ] 
 +………………………………………………………………………………………………………… 
 +A→∡g                                    
 </code> </code>
-will result in+\\ 
 +**__Output__**
 <code> <code>
-1:              #2h ∡20g (1,2) +4:                                       
-                 (3,∡6.1111.g) ] +3:                                       
-…………………………………………………………………………………… +2:                                       
 +1:      ∡2g ∡20g (1,2) (3,∡6.1111.g) ] 
 +………………………………………………………………………………………………………… 
 +                                        
 </code> </code>
 </callout> </callout>
Line 61: Line 79:
 {{page>manual:chapter6:angles&nofooter&noeditbtn&inline}} {{page>manual:chapter6:angles&nofooter&noeditbtn&inline}}
 </callout> </callout>
 +
  • manual/chapter6/angles/cmd_angtograd.txt
  • Last modified: 2021/09/16 02:35
  • by jojo1973