Ian Jauslin
summaryrefslogtreecommitdiff
blob: f73f3cef44961649d954a4c68c7b115943cc3823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
.Dd $Mdocdate: June 12 2015 $
.Dt meantools-convert 1.3.1
.Os
.Sh NAME
.Nm meantools-convert
.Nd Translate flow equations to various formats
.Sh SYNOPSIS
.Nm
.Op Fl i Ar file
.Sy C
.Op Fl l Ar oldl_symbol
.Op Fl L Ar newl_symbol
.Op Fl C Ar constant_symbol
.Op Fl S
.Pp
.Nm
.Op Fl i Ar file
.Sy javascript
.Op Fl l Ar oldl_symbol
.Op Fl L Ar newl_symbol
.Op Fl C Ar constant_symbol
.Pp
.Nm
.Op Fl i Ar file
.Sy LaTeX
.Op Fl l Ar oldl_symbol
.Op Fl L Ar newl_symbol
.Op Fl C Ar constant_symbol
.Op Fl s
.Pp
.Sh DESCRIPTION
.Nm
is a python script to convert flow equations to C, javascript or LaTeX code.
.Pp
.Nm
is part of a set of tools to compute and manipulate Fermionic hierarchical flows:
.Bl -bullet
.It
.Sy meankondo
: computes flow equations for hierarchical Fermionic models
.It
.Sy numkondo
: numerical evaluation of flow equations.
.It
.Sy meantools, meantools-convert
: perform various operations on flow equations (derivation, exponentiation, evaluation and conversion to other formats).
.El
.Pp
as well as the following pre-processors, which generate configuration files for their associated model:
.Bl -bullet
.It
.Sy kondo_proprocess
:  Kondo model
.El
.Pp
.Sh COMMAND-LINE ARGUMENTS
.Bl -tag -width Ds
.It Fl i Ar file
File containing the flow equation to convert. If this flag is not specified, then
.Nm
reads the equation from stdin.
.El
.Pp
.Sh C
.Nm
supports the following flags when converting to C code.
.Bl -tag -width Ds
.It Fl l Ar oldl_symbol
The symbol for the running coupling constants appearing on the right hand side (defaults to 'l').
.It Fl L Ar newl_symbol
The symbol for the running coupling constants appearing on the left hand side (defaults to 'newL').
.It Fl C Ar constant_symbol
The symbol for the constant factor (defaults to 'C'). Since there can be multiple constants in a flow equation, the actual symbols will be appended an integer (e.g. C1, C2, etc).
.It Fl S
Write each equation on a single line.
.El
.Pp
.Ar oldl_symbol
and
.Ar newl_symbol
must be arrays of floating point numbers (floats, doubles or long doubles) with enough memory allocated to them to hold all running coupling constants. Similarly,
.Ar constant_symbol Ns n
with n large enough must be allocated as floating point numbers.
.Pp
In addition, if the flow equation contains derivatives (see
.Sx meantools Ns (1) ) ,
then 
.Pf d Ar oldl_symbol ,
.Pf d Ar newl_symbol
and
.Pf d Ar constant_symbol Ns n
must be allocated as well. The same holds for higher derivatives, with 'd' replaced by 'dd', 'ddd' and so forth.
.Sh JAVASCRIPT
.Qo
.Nm
.Sy javascript
.Qc
is a shorthand for
.Qo
.Nm
.Sy C
-S
.Qc
.Sh LATEX
.Nm
supports the following flags when converting to LaTeX code.
.Bl -tag -width Ds
.It Fl l Ar oldl_symbol
The symbol for the running coupling constants appearing on the right hand side (defaults to "\\ell").
.It Fl L Ar newl_symbol
The symbol for the running coupling constants appearing on the left hand side (defaults to "\\ell'").
.It Fl C Ar constant_symbol
The symbol for the constant factor (defaults to "C"). Since there can be multiple constants in a flow equation, the actual symbols will be appended an integer subscript (e.g. C_1, C_2, etc).
.It Fl s
Break the line at every '+'.
.El
.Pp
Since the length of the equations can change a lot from one system to another,
.Nm
does not make many formatting decisions (for instance
.Nm
does not insert any alignment characters, and either breaks the line at every '+' sign or at the end of the equation), which are left to the user.
.Pp
.Sh OUTPUT
.Nm
prints the converted flow equation to stdout.
.Pp
.Sh RETURN CODE
.Nm
returns 0 on success and -1 on error.
.Pp
.Sh SEE ALSO
.Sx meankondo Ns (1)
.Sx numkondo Ns (1) ,
.Sx meantools Ns (1) ,
.Sx kondo_preprocess Ns (1)
.Pp