The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Measuring angle
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mohamed1986

43 Posts

Posted - 04/06/2016 :  09:36:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Posted - 04/06/2016 :  12:01:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi mohamed1986,

You can use Tangent gadget (or app for Origin 2016) to get the slope at the desired position.
New App: http://www.originlab.com/fileExchange/details.aspx?fid=227
Old tool: http://www.originlab.com/fileExchange/details.aspx?fid=153

You may need to extract nearby data only lower curve before applying the tool to avoid the multivalued function.

You can convert the tangent value to the angle by ATAN function.

--Hideo Fujii
OriginLab
Go to Top of Page

mohamed1986

43 Posts

Posted - 04/06/2016 :  1:28:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks much for your help.

Kindly, how can I use ATAN function to convert the tangent to angle??
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 04/06/2016 :  2:02:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

mohamed1986

43 Posts

Posted - 04/06/2016 :  2:07:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks much for your kind help.
Now it works well

Best regards
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 04/06/2016 :  4:33:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000