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
 Radians, degrees conversion error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

wojtek_

5 Posts

Posted - 03/16/2015 :  05:52:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I have a following problem. When I'm trying to convert radians to degrees or vice versa I have a result -- (two dashes). What's wrong?


Origin Ver. 8 and Service Release 0
Operating System: Win7 x64

Hideo Fujii

USA
1582 Posts

Posted - 03/16/2015 :  2:57:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi wojtek,

I suspect that your data in the cells in the worksheet column have been stored as text strings rather than the numeric values. In a typical situation, the former appear left-adjusted, and later appear right-adjusted in the cells.
You can double-click the column header of your data to show the Column Properties dialog, and change the column's "Format" to "Numeric" rather than the default "Text & Numeric" to force them to be converted to the numbers.

I hope my suspect is your actual situation. If it isn't, please describe where is your data, and in which way you have tried to convert your data.

--Hideo Fujii
OriginLab
Go to Top of Page

wojtek_

5 Posts

Posted - 03/17/2015 :  04:13:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo,

Thanks for reply. Unfortunately it is not a reason. I've tried this but I got error even when I make the same calculation in Command Window. I attached example on picture below.



I have also access to newer version of Origin and the problem doesn't exist but now I have to use this version. Any other suggestions?
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 03/17/2015 :  10:34:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi wojtek,

The built-in functions, degrees(x) and radians(x) seem to have been introduced in Origin 8.5.1 . You can define them (e.g, in the script window beforehand) by yourself as:
degrees(x)=180*x/pi;
radians(x)=pi*x/180;
--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 03/17/2015 10:38:23 AM
Go to Top of Page

wojtek_

5 Posts

Posted - 03/18/2015 :  09:35:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Hideo! I resolved this problem before in same way as you proposed. I was just wondered what's wrong. I thought that if I try to use function which is not defined I get error text in the Command Window.
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