summaryrefslogtreecommitdiff
path: root/numpy/polynomial/hermite.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-07-06 22:12:02 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-08-12 14:27:39 -0700
commite6e60c02e2c8833e45eab575732011e75b5b7c73 (patch)
tree899626310a37207f6993cffbfd33cc8760e3760e /numpy/polynomial/hermite.py
parent739443679b50b43c34808b8fb767bac643fcd91d (diff)
downloadnumpy-e6e60c02e2c8833e45eab575732011e75b5b7c73.tar.gz
ENH: Add support for ipython latex printing to polynomial
Choices made, and the alternatives rejected (for no particularly strong reason): 1. Show terms in ascending order, to match their internal representation * alternative: descending, to match convention 2. Shows 0 terms in gray * alternative: omit entirely * alternative: show normally to aid comparison 3. Write each term as `basis(ax + b) * alternative: write as `basis(u) ... where u = ax + b` * alternative: show the normalized polynomial In future it would perhaps make sense to expose these options to the end user
Diffstat (limited to 'numpy/polynomial/hermite.py')
-rw-r--r--numpy/polynomial/hermite.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py
index 75c7e6832..8c33ee863 100644
--- a/numpy/polynomial/hermite.py
+++ b/numpy/polynomial/hermite.py
@@ -1851,3 +1851,4 @@ class Hermite(ABCPolyBase):
nickname = 'herm'
domain = np.array(hermdomain)
window = np.array(hermdomain)
+ basis_name = 'H'