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 for Programming
 Forum for Origin C
 error fit function problem

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
lojius Posted - 04/19/2011 : 04:29:25 AM
Origin Ver. and Service Release (Select Help-->About Origin): originPro 8.1 SR3
Operating System: windows 7

Hi, i'm new to origin, i tried to fit an error function. Below is my code.
These error code came out when i tried to compile the code.
1.Error, function or variable nag_erf not found
2.:Error, general compile error

3.:Error, error(s) found in compiling function _nlsferfgen

#pragma warning(error : 15618)
#include <stdio.h>
#include <data.h>
#include <math.h>
#include <utilities.h>
#include <origin.h>


//----------------------------------------------------------
//
void _nlsferfgen(
// Fit Parameter(s):
double P1, double P2, double P3, double P4,
// Independent Variable(s):
double x,
// Dependent Variable(s):
double& y)
{
// Beginning of editable part
y=P1+P2*nag_erf((x-P3)/(sqrt(2)*P4))
// End of editable part
}

3   L A T E S T    R E P L I E S    (Newest First)
jimkoli Posted - 05/10/2011 : 01:03:26 AM
thanks dude
i known error in my code



i need seo
lojius Posted - 04/20/2011 : 03:08:46 AM
Thanks Penn.
It solved my problem.
Penn Posted - 04/19/2011 : 9:25:44 PM
Hi,

You are using a NAG function (nag_erf) in the definition of fitting function, so, you need to include the header file for the NAG functions. Please refer to this page for more details.

Penn

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