Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3002 by [email protected]: Error in textplot
http://code.google.com/p/sympy/issues/detail?id=3002
In [4]: textplot(t/(t-1), 0-20, 20)
12 |
|
|
|
|
|
|
|
5.71429 | -------------------------------------------------------
|
|
|
|
|
| ..
| ..................... .......................
| .......
-0.5714 | .
-20 0 20
In [5]: textplot(t/(t-1), 0-20, 20, 200, 100)
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
/srv/kontrolnaya-rabota_ru/<ipython console> in <module>()
/srv/kontrolnaya-rabota_ru/env/src/sympy/sympy/plotting/textplot.pyc in
textplot(expr, a, b, W, H)
25 for x in range(W):
26 try:
---> 27 y[x] = f(a+(b-a)/float(W)*x)
28 except TypeError:
29 y[x] = 0
/usr/lib/pymodules/python2.7/numpy/__init__.pyc in <lambda>(t)
ZeroDivisionError: float division by zero
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.