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
 All Forums
 Origin Forum
 Origin Forum
 Radians, degrees conversion error

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wojtek_ Posted - 03/16/2015 : 05:52:05 AM
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
4   L A T E S T    R E P L I E S    (Newest First)
wojtek_ Posted - 03/18/2015 : 09:35:37 AM
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.
Hideo Fujii Posted - 03/17/2015 : 10:34:57 AM
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
wojtek_ Posted - 03/17/2015 : 04:13:32 AM
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?
Hideo Fujii Posted - 03/16/2015 : 2:57:10 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000