| Author | 
                
                  Topic   | 
                
                
                 
                 
                 
                 
                 
                                 | 
              
              
                | 
                 mohamed1986 
                 
                
                43 Posts  | 
                
                  
                    
                      
                       Posted - 04/06/2016 :  09:36:38 AM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2015 Operating System:10 Dear Friends, I want to measure the angle between the X-axis and and a circle as appears in the attached image. Thanks in advance
 
 
   | 
                     
                   
                 | 
              
              
                | 
                 Hideo Fujii 
                 
                
                USA 
                1582 Posts  | 
                
                  
                 | 
              
              
                | 
                 mohamed1986 
                 
                
                43 Posts  | 
                
                  
                    
                      
                       Posted - 04/06/2016 :  1:28:25 PM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Thanks much for your help.
  Kindly, how can I use ATAN function to convert the tangent to angle??
  | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Hideo Fujii 
                 
                
                USA 
                1582 Posts  | 
                
                  
                    
                      
                       Posted - 04/06/2016 :  2:02:44 PM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Hi mohamed1986,
  Once you get the slope value, say -1.25, in the Script window, you can enter the following formula,  and press ENTER key (when default is radian, and you need in degree):180*atan(-1.25)/pi= http://www.originlab.com/doc/LabTalk/ref/Atan-func As the principal value of arctangent is -90<y<90, and your case is negative, you need to add 180 degree.
  --Hideo Fujii OriginLab | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 mohamed1986 
                 
                
                43 Posts  | 
                
                  
                    
                      
                       Posted - 04/06/2016 :  2:07:08 PM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Thanks much for your kind help.  Now it works well
  Best regards | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Hideo Fujii 
                 
                
                USA 
                1582 Posts  | 
                
                  
                    
                      
                       Posted - 04/06/2016 :  4:33:27 PM
                        
                        
                        
                        
                        
                      
  | 
                     
                    
                       Hi mohamed1986,
  Sorry, but I have just noticed that there is an option setting to display/output the angle in the Tangent app.  So, you get the angle directly.
  --Hideo Fujii OriginLab
  | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                |   | 
                
                  Topic   | 
                
                
                 
                 
                 
                 
                 
                 |