/[escript]/branches/symbolic_from_3470/escript/py_src/symbolic/__init__.py
ViewVC logotype

Contents of /branches/symbolic_from_3470/escript/py_src/symbolic/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3493 - (show annotations)
Mon Apr 4 04:37:02 2011 UTC (8 years, 2 months ago) by caltinay
File MIME type: text/x-python
File size: 1159 byte(s)
Removed escript's legacy Symbol implementation and replaced by a sympy-based
variant. Added more symbolic versions of escript functions and the relevant
unit tests.
This removes nearly 150000 (!) lines of code mainly from the old test suite for
symbols...wow!

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14 __copyright__="""Copyright (c) 2003-2010 by University of Queensland
15 Earth Systems Science Computational Center (ESSCC)
16 http://www.uq.edu.au/esscc
17 Primary Business: Queensland, Australia"""
18 __license__="""Licensed under the Open Software License version 3.0
19 http://www.opensource.org/licenses/osl-3.0.php"""
20 __url__="https://launchpad.net/escript-finley"
21
22 from sympy.core import Basic,Symbol,diff,evalf,expand,oo,pi,symbols
23 from evaluator import *
24
25 # prefer escript's implementation of functions such as 'sign' etc.
26 from sympy.utilities.lambdify import MODULES
27 ESCRIPT_NAMESPACE = {}
28 ESCRIPT_TRANSLATIONS = {
29 #"ln":"log",
30 }
31 MODULES['escript']=(ESCRIPT_NAMESPACE, ESCRIPT_TRANSLATIONS,('from esys.escript import *',))
32
33 #
34 # vim: expandtab shiftwidth=4:

  ViewVC Help
Powered by ViewVC 1.1.26