Did I find the right examples for you? yes no

All Samples(380)  |  Call(0)  |  Derive(0)  |  Import(380)
SymPy is a Python library for symbolic mathematics. It aims to become a
full-featured computer algebra system (CAS) while keeping the code as
simple as possible in order to be comprehensible and easily extensible.
SymPy is written entirely in Python and does not require any external
libraries, except optionally for plotting support.

See the webpage for more information and documentation:

    http://code.google.com/p/sympy/

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/lib/symmath/symmath/formula.py   MHST2013-14(Download)
import logging
import operator
import sympy
from sympy.printing.latex import LatexPrinter
from sympy.printing.str import StrPrinter
 
from xml.sax.saxutils import unescape
import sympy
import unicodedata
from lxml import etree

src/s/a/sage-HEAD/src/sage/symbolic/constants.py   sage(Download)
            True
        """
        import sympy
        return sympy.pi
 
            False
        """
        import sympy
        return sympy.nan
 
            True
        """
        import sympy
        return sympy.GoldenRatio
 
            True
        """
        import sympy
        return sympy.EulerGamma
 
            True
        """
        import sympy
        return sympy.Catalan
 

src/d/o/dolo-0.4.6.3/dolo/compiler/compiler_mirfac.py   dolo(Download)
                return v
 
        import sympy
 
        #### build substitution dict
        of_eqs = [eq for eq in dmodel.equations if eq.tags['eq_type'] in ('f','arbitrage')]
        locals = {}
        import sympy
        locals['inf'] = sympy.Symbol('inf')
        locals['log'] = sympy.log # this should be more generic
            sub_list[v] = 'p({0})'.format(i+1)
 
        import sympy
        sub_list[sympy.Symbol('inf')] = 'Inf'
 

src/s/y/sympy-polys-HEAD/doc/src/modules/galgebra/GA/coords.py   sympy-polys(Download)
from sympy import *
 
import sympy,numpy,sys
 
set_main(sys.modules[__name__])

src/d/o/dolo-0.4.6.3/dolo/numeric/portfolios_statefree.py   dolo(Download)
 
from dolo import Equation
import sympy
 
def standardize_portfolio_model(model_pf):
    from copy import copy, deepcopy
 
    import sympy
 
    from dolo.misc.modfile import dynare_import

src/d/o/dolo-0.4.6.3/dolo/compiler/function_compiler_matlab.py   dolo(Download)
        sub_list[p] = '{0}({1})'.format('p',i+1)
 
    import sympy
    sub_list[sympy.Symbol('inf')] = 'inf'
 
if __name__ == '__main__':
 
    import sympy
    from pprint import pprint
 

src/d/o/dolo-0.4.6.3/dolo/compiler/function_compiler_julia.py   dolo(Download)
        sub_list[p] = '{0}[{1}]'.format('p',i+1)
 
    import sympy
    sub_list[sympy.Symbol('inf')] = 'inf'
 
if __name__ == '__main__':
 
    import sympy
    from pprint import pprint
 

src/d/o/dolo-0.4.6.3/dolo/compiler/compiler_recs.py   dolo(Download)
    def read_model(self):
 
        import re
        import sympy
        from dolo.symbolic.symbolic import map_function_to_expression
    def process_output_recs(self):
        '''Main function that formats the model in recs format'''
        import sympy
        from dolo.compiler.common import DicPrinter
        from dolo.misc.matlab import value_to_mat

src/s/a/sage-HEAD/src/sage/rings/infinity.py   sage(Download)
 
        """
        import sympy
        return -sympy.oo
 
            True
        """
        import sympy
        return sympy.oo
 

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/IPython/extensions/sympyprinting.py   antisocial(Download)
    can be printed with LaTeX.
    """
    import sympy
    if isinstance(o, (list, tuple, set, frozenset)):
        return all(can_print_latex(i) for i in o)
def load_ipython_extension(ip):
    """Load the extension in IPython."""
    import sympy
 
    # sympyprinting extension has been moved to SymPy as of 0.7.2, if it

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next