This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
import shutil | |
import glob | |
def list_variables(): | |
return [line.split() for line in open("VARS")] | |
def new_input_file(parameters, var_names, file_name): | |
if len(parameters) != len(var_names): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.integrate as i | |
import scipy as s | |
print i.quad(lambda x:s.exp(-2*i.quad(lambda y:(1-s.exp(-y))/y,0,x)[0]),0,s.inf)[0] |