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 |
|
|