示例#1
0
 def Unc_row_to_file(self, pathout):
     Unc = self.Unc
     Unc00 = Unc[0,0]
     Unc01 = Unc[0,1]
     Unc02 = Unc[0,2]
     Unc03 = Unc[0,3]
     Unc04 = Unc[0,4]
     outlabels = ['Unc00', 'Unc01', 'Unc02', 'Unc03', 'Unc04']
     funcname = 'Unc_row0'
     expr_list = [Unc00, Unc01, Unc02, Unc03, Unc04]
     inputs = ['s', 'params', 'Gth']
     replace_dict = {'Gth':'Gth(s)'}
     sympy_TMM.cse_to_file(expr_list, \
                           pathout, \
                           outlabels, \
                           funcname, \
                           inputs, \
                           headerfile='header.py', \
                           replace_dict=replace_dict)
示例#2
0
 def cse_to_file(self):
     sympy_TMM.cse_to_file(self.sym_bodes, self.mod_name+'.py',\
                           ['th_out','a_out'],'Bodes',\
                           inputs=['s','params'], \
                           headerfile='header.py')