manual:chapter6:angles:cmd_angtorad

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
manual:chapter6:angles:cmd_angtorad [2019/10/22 13:41]
jojo1973
manual:chapter6:angles:cmd_angtorad [2021/09/16 02:27]
jojo1973 Redone
Line 1: Line 1:
 ==== A→∡r ==== ==== A→∡r ====
----- 
 <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> <callout type="primary" color="" icon="fa fa-book" title="Synopsis">
 ---- ----
Line 9: Line 8:
 ---- ----
 ^  __Input Stack__  ^  ^  __Output Stack__  ^ ^  __Input Stack__  ^  ^  __Output Stack__  ^
-|  **Num<sub>1</sub>**  |  **→**  |  **∡<sub>1%%(r)%%</sub>** +|  **Num**  |  **→**  |  **∡<sub>rad</sub>** 
-|  **Z<sub>1</sub>**  |  **→**  |  **Z<sub>1%%(r)%%</sub>** +|  **Z**  |  **→**  |  **Z<sub>rad</sub>** 
-|  **∡<sub>1</sub>**  |  **→**  |  **∡<sub>1%%(r)%%</sub>** +|  **∡**  |  **→**  |  **∡<sub>rad</sub>** 
-|  **V<sub>1</sub>**  |  **→**  |  **V<sub>1%%(r)%%</sub>** +|  **V**  |  **→**  |  **V<sub>rad</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 radians+  * a **scalar**, then the number is interpreted as an angle //in the current angular mode// and converted to radians;
-  * a **rectangular complex number**, nothing happens;+
   * a **polar complex number**, then the angular component is converted to radians;   * a **polar complex number**, then the angular component is converted to radians;
   * an **angle**, then the angle is converted to radians;   * an **angle**, then the angle is converted to radians;
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→∡r'' 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 ∡20g (1,2) (3,∡5.3d) ] +4:                                       
-…………………………………………………………………………………… +3:                                       
-A→∡r+2:                                       
 +1:          [ #2h ∡20g (1,2) (3,∡5.) ] 
 +………………………………………………………………………………………………………… 
 +A→∡°                                    
 </code> </code>
-will result in+\\ 
 +**__Output__**
 <code> <code>
-1:              #2h ∡0.31415.r +4:                                       
-          (1,2) (3,∡0.09599.r) ] +3:                                       
-…………………………………………………………………………………… +2:                                       
 +1:[ ∡2r ∡0.31415.r (1,2) (3,∡0.09599.r) 
 +………………………………………………………………………………………………………… 
 +                                        
 </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_angtorad.txt
  • Last modified: 2021/09/16 02:36
  • by jojo1973