view YLCStuff.c @ 67:0159abc1a9d8

Fix slope measurement For the update algorithm to work correclty the slope measurement must be updated before the mean measurement. Other code is affected by the same issue.
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 29 Oct 2012 14:48:08 +0100
parents d9aae7d7f2c6
children
line wrap: on
line source

//==============================================================================
//
// Title:       YLCStuff.c
// Purpose:     Various stuff used by femtosoftYLC, like math parser callbacks
//				and personnal types
//
// Created on:  19/08/2008 at 10:06:43 by Yann Le Coq.
// Copyright:   syrte. All Rights Reserved.
//
//==============================================================================

//==============================================================================
// Include files

//#include "YLCStuff.h"

//==============================================================================
// Constants

//==============================================================================
// Types

//==============================================================================
// Static global variables

//==============================================================================
// Static functions

//==============================================================================
// Global variables

//==============================================================================
// Global functions

/// HIFN  What does your function do?
/// HIPAR x/What inputs does your function expect?
/// HIRET What does your function return?
double Peta (double x) {
	return 1.0e15*x ;
};

double Tera (double x) {
	return 1.0e12*x ;	
};

double Giga (double x) {
	return 1.0e9*x ;	
};

double Mega (double x) {
	return 1.0e6*x ;	
};

double kilo (double x) {
	return 1.0e3*x ;
};

double milli(double x) {
	return 1.0e-3*x ;
};
	
double micro(double x){
	return 1.0e-6*x ;
};

double nano (double x){
	return 1.0e-9*x ;
};

double pico (double x){
	return 1.e-12*x ;
};

double femto(double x){
	return 1.0e-15*x ;
};