Coverage for src/pymor/playground/expression_function : 62%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
except ImportError: HAVE_SYMPY = False
raise ImportError('could not import sympy')
A = ExpressionFunction(['x**2'], 'x') B = ExpressionFunction(['sin(y)', 'x'], 'x y') import pylab for f in range(-2, 4): pylab.plot(f, A([f]), 'x') pylab.plot(f, B([f, f])[0], '|') pylab.plot(f, B([f, f])[1], '-') pylab.show() |