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
 Problem with User-Defined 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
Noba Posted - 05/04/2000 : 8:48:00 PM
I'm writing a function to fit a curve.

Here is what I wrote:
temp1=A/w*sqrt(4*ln(2)/PI);
if (x{temp2=exp(-4*ln(2)*(x-xc)^2)*(abs(t-(x-xc))^p1);
y=temp1*integrate(temp2)}
else
{temp2=exp(-4*ln(2)*(x-xc)^2)*(abs(t-(x-xc))^p2);
y=temp1*integrate(temp2)}

Origin kept on giving me an error message saying that there are too many bad functional evaluations and that parameters may be out of range. Anyone have any idea what is wrong?

2   L A T E S T    R E P L I E S    (Newest First)
Jean Michel Giraud Posted - 05/08/2000 : 8:48:00 PM
I may help, but show me your equation as in text book.
A brief description will be great unless
it is private research.
Preferabbly reply to my e.mail because I hate
crumbling in the forum.
jmgiraud@infoteck.dr.qc.ca
greg Posted - 05/08/2000 : 3:16:00 PM
Your equation does not have a valid condition for the if clause:
if (x{temp2=exp(-4*ln(2)*(x-xc)^2)*(abs(t-(x-xc))^p1);

It's not clear what your intent was for this conditional.

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