Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/util_test.py   9ML(Download)
 
 
        e = StrToExpr.alias('a := b*c + d/(e*sin(f+g/e)) + b1 + e_ / exp(12*g)')
 
        rhs_sub = MathUtil.get_rhs_substituted(e, {'b':'B', 'e':'E'})
        #from nineml.abstraction_layer.component.util import MathUtil
 
        e = StrToExpr.alias('a := b*c + d/(e*sin(f+g/e)) + b1 + e_ / exp(12*g)')
 
        rhs_sub = MathUtil.get_prefixed_rhs_string(e, prefix='U_', exclude=['c','e_'] )
    def test_alias(self):
        for expr_str, (exp_lhs, exp_rhs) in Aliases:
            alias = StrToExpr.alias(expr_str)
 
            self.assertEqual( alias.lhs, exp_lhs  )