comparison YLCStuff.c @ 0:d9aae7d7f2c6

Import
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Tue, 03 Jul 2012 10:38:59 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d9aae7d7f2c6
1 //==============================================================================
2 //
3 // Title: YLCStuff.c
4 // Purpose: Various stuff used by femtosoftYLC, like math parser callbacks
5 // and personnal types
6 //
7 // Created on: 19/08/2008 at 10:06:43 by Yann Le Coq.
8 // Copyright: syrte. All Rights Reserved.
9 //
10 //==============================================================================
11
12 //==============================================================================
13 // Include files
14
15 //#include "YLCStuff.h"
16
17 //==============================================================================
18 // Constants
19
20 //==============================================================================
21 // Types
22
23 //==============================================================================
24 // Static global variables
25
26 //==============================================================================
27 // Static functions
28
29 //==============================================================================
30 // Global variables
31
32 //==============================================================================
33 // Global functions
34
35 /// HIFN What does your function do?
36 /// HIPAR x/What inputs does your function expect?
37 /// HIRET What does your function return?
38 double Peta (double x) {
39 return 1.0e15*x ;
40 };
41
42 double Tera (double x) {
43 return 1.0e12*x ;
44 };
45
46 double Giga (double x) {
47 return 1.0e9*x ;
48 };
49
50 double Mega (double x) {
51 return 1.0e6*x ;
52 };
53
54 double kilo (double x) {
55 return 1.0e3*x ;
56 };
57
58 double milli(double x) {
59 return 1.0e-3*x ;
60 };
61
62 double micro(double x){
63 return 1.0e-6*x ;
64 };
65
66 double nano (double x){
67 return 1.0e-9*x ;
68 };
69
70 double pico (double x){
71 return 1.e-12*x ;
72 };
73
74 double femto(double x){
75 return 1.0e-15*x ;
76 };
77