<s> """<STR_LIT>""" <EOL> import sys <EOL> from sample import sample <EOL> from sympy import log , pi , sqrt , sin , Symbol <EOL> from sympy . core . compatibility import is_sequence <EOL> from sympy . external import import_module <EOL> def mplot2d ( f , var , show = True ) : <EOL> """<STR_LIT>""" <EOL> import warnings <EOL> warnings . filterwarnings ( "<STR_LIT:ignore>" , "<STR_LIT>" ) <EOL> p = import_module ( '<STR_LIT>' ) <EOL> if not p : <EOL> sys . exit ( "<STR_LIT>" ) <EOL> if not is_sequence ( f ) : <EOL> f = [ f , ] <EOL> for f_i in f : <EOL> x , y = sample ( f_i , var ) <EOL> p . plot ( x , y ) <EOL> p . draw ( ) <EOL> if show : <EOL> p . show ( ) <EOL> def main ( ) : <EOL> x = Symbol ( '<STR_LIT:x>' ) <EOL> mplot2d ( [ sqrt ( x ) , - sqrt ( x ) , sqrt ( - x ) , - sqrt ( - x ) ] , ( x , - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
