Did I find the right examples for you? yes no

# sympy

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.

```

```try:
from sympy.printing.ccode import CCodePrinter
from sympy.printing.precedence import precedence
import sympy
except ImportError:
```

```import numpy
import scipy
import sympy

import brian2
```

```import sympy as sp

from brian2.parsing.sympytools import sympy_to_str

from .base import StateUpdateMethod
```

```import string

import sympy
from sympy.core.sympify import SympifyError
from pyparsing import (Literal, Group, Word, ZeroOrMore, Suppress, restOfLine,
```

```
from sympy import Wild, Symbol
import sympy as sp

from brian2.parsing.sympytools import sympy_to_str
```

```'''
Utility functions for parsing expressions and statements.
'''
import sympy
from sympy.printing.str import StrPrinter
```

```import ast

import sympy

from brian2.core.functions import DEFAULT_FUNCTIONS, DEFAULT_CONSTANTS
```

```'''
This model defines the `NeuronGroup`, the core of most simulations.
'''
import numpy as np
import sympy
```

```import string
import numpy as np
import sympy
from pyparsing import (Group, ZeroOrMore, OneOrMore, Optional, Word, CharsNotIn,
Combine, Suppress, restOfLine, LineEnd, ParseException)
```

````Expression` and `Statements` are the ones that are actually used.