annotate YLCStuff.c @ 58:3a70e376f8c2

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