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
 255 chars limit for function?

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
SteffenG Posted - 08/23/2004 : 08:57:52 AM
Hello,

I am using Origin 7G (german version) with SR4. I have the following problem. I have declared a function with the script line F2(x)=... The function is drawn properly in the actual graph window. If I save the project and close and open it again the function is truncated.
The function itself has 285 chars. If I save the project the function is truncated to 30 chars so there is a difference of 255 chars. For me it is like an overflow of a string length or something similar to that. So is there a limit for the size of a function? Is there a work around for that problem?

I am grateful for any hints.
Regards,
Steffen
2   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 08/25/2004 : 1:33:57 PM
Hi Steffen,

If you have version 7 or 7.5, one possible workaround is to define/code your function as an Origin C function, and then just call the OC function from the Function Plot.

For example, you can define a function in OC such as:


double myfunc(double x)
{
return sin(x)/x;
}



and then call that from the Function Plot as:
F1(x)=myfunc(x)

With Origin C, you will have no limitations on number of characters etc.

Easwar
OriginLab

Mike Posted - 08/24/2004 : 09:51:28 AM
Hi Steffen,

This is a known problem (QA #6337 in our bug/suggestion database):
quote:
"Currently, a function definition can have over 500 characters, and it works properly, but when you save the file and re-open, the function definition has been cutoff and fails. Cutoff is mod(256), so current limit is probably 255."


The notes indicate that it is being worked on for Origin 8.

Mike
OriginLab

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