sympy/sympy_gamma — pull request #3 by lidavidm (2012-10-02 02:23:48+00:00)
Title: Plotting and more result types

Changes:

- Function plotting! Implemented in JavaScript with [d3.js](http://d3js.org/)
- Different input types return different output types

Examples:

- http://sympy-gamma-li.appspot.com/input/?i=2*x
- http://sympy-gamma-li.appspot.com/input/?i=exp%281%2Fx%29
- http://sympy-gamma-li.appspot.com/input/?i=1006%21
- http://sympy-gamma-li.appspot.com/input/?i=exp%2820%29
- http://sympy-gamma-li.appspot.com/input/?i=0.235
- http://sympy-gamma-li.appspot.com/input/?i=52%2F100
- http://sympy-gamma-li.appspot.com/input/?i=cos%28x%29+*+tan%28x%29
- http://sympy-gamma-li.appspot.com/input/?i=sin%282*x%29

Output sets:

- Integrals
- Simply evaluated
- Integers
- Number of digits
- Float approximation
- Factorization (factors less than 100)
- Rationals
- Float approximation
- Floats
- Rational approximation
- Constants (NumberSymbol or `is_constant() == True`)
- Float approximation
- Everything else
- Same as before (roots, derivative, integral, series)
- Function plot (only 1-variable function of x)
- Trig: alternate form

Function plotting:

- Uses `LineOver1DRangeSeries` from `sympy.plotting` to determine x-values to plot, then calculates y-values on the client
- Done in JavaScript with SVG
- Exportable to SVG
- Assumes a default domain of [-10, 10] for now (I've found http://www.cs.uic.edu/~wilkinson/Publications/plotfunc.pdf; any other ideas?)

This probably needs more work, but I just wanted to get this out here for review.