File: loilog.py

package info (click to toggle)
code-saturne 7.0.2%2Brepack-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 62,868 kB
  • sloc: ansic: 395,271; f90: 100,755; python: 86,746; cpp: 6,227; makefile: 4,247; xml: 2,389; sh: 1,091; javascript: 69
file content (10 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3

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))