source: sans/XOP_Dev/SANSAnalysis/lib/2Y_utility.c @ 756

Last change on this file since 756 was 756, checked in by srkline, 12 years ago

Adding Yun Liu's 2-Yukawa structure factor to both the library and the XOP. Ideally it would be consolidated to the libStructureFactor files, but there are a lot of files, and labeling them as such seems less confusing.

Currently functions correctly on Mac, still needs to be compiled on Win.

File size: 247 bytes
Line 
1/*
2 *  utility.c
3 *  twoyukawa
4 *
5 *  Created by Marcus Hennig on 5/13/10.
6 *  Copyright 2010 __MyCompanyName__. All rights reserved.
7 *
8 */
9
10#include "2Y_utility.h"
11double chop( double x )
12{
13        if ( fabs(x) < 1E-6 )
14                return 0;
15        else 
16                return x;
17}
Note: See TracBrowser for help on using the repository browser.