File: loilog.py

package info (click to toggle)
code-saturne 5.3.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 76,868 kB
  • sloc: ansic: 338,582; f90: 118,487; python: 65,227; makefile: 4,429; cpp: 3,826; xml: 3,078; sh: 1,205; lex: 170; yacc: 100
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))