File: loilog.py

package info (click to toggle)
code-saturne 4.3.3%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 77,992 kB
  • sloc: ansic: 281,257; f90: 122,305; python: 56,490; makefile: 3,915; xml: 3,285; cpp: 3,183; sh: 1,139; lex: 176; yacc: 101; sed: 16
file content (10 lines) | stat: -rwxr-xr-x 239 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python

import math

for i in range(2000):
    x = (i+1)*0.01
    print(' %17.9e %17.9e %17.9e %17.9e %17.9e %17.9e'
          % (x, 1/0.42*math.log(x)+5.2,
             x, 2/0.42*math.log(x)+5.2,
             2*x, 2/0.42))