| 1 |
.. comment: -*- fill-column: 72; mode: rst -*- |
| 2 |
|
| 3 |
========= |
| 4 |
CHANGES |
| 5 |
========= |
| 6 |
|
| 7 |
.. _firstrelease: |
| 8 |
|
| 9 |
0.1 (2018/01/11): initial release. Features: |
| 10 |
-------------------------------------------- |
| 11 |
|
| 12 |
* The :ref:`\\poldef <poldef;>` parser itself, |
| 13 |
* Differentiation and anti-differentiation, |
| 14 |
* Euclidean division and GCDs, |
| 15 |
* Various utilities such as :ref:`\\PolFromCSV <PolFromCSV>`, |
| 16 |
:ref:`\\PolMapCoeffs <PolMapCoeffs>`, |
| 17 |
:ref:`\\PolToCSV <PolToCSV>`, :ref:`\\PolToExpr <PolToExpr>`, ... |
| 18 |
|
| 19 |
Only one-variable polynomials so far. |
| 20 |
|
| 21 |
0.2 (2018/01/14) |
| 22 |
---------------- |
| 23 |
|
| 24 |
* Fix: ``"README thinks \numexpr recognizes ^ operator"``. |
| 25 |
* Convert README to reStructuredText markup. |
| 26 |
* Move main documentation from README to separate ``polexpr.txt`` file. |
| 27 |
* Provide ``polexpr.html`` as obtained via DocUtils_ ``rst2html.py``. |
| 28 |
* Convert README to (CTAN compatible) Markdown markup. |
| 29 |
|
| 30 |
Due to lack of available time the test suite might not be extensive |
| 31 |
enough. Bug reports are very welcome! |
| 32 |
|
| 33 |
0.3 (2018/01/17) |
| 34 |
---------------- |
| 35 |
|
| 36 |
* Bug fixes: |
| 37 |
|
| 38 |
- The ``0.1`` :ref:`\\PolEval <PolEvalAt>` accepted expressions for its |
| 39 |
second argument, but this was removed by mistake at ``0.2``. Restored. |
| 40 |
|
| 41 |
**Attention**: at ``0.4`` this has been reverted again, and |
| 42 |
:ref:`\\PolEval{P}\\AtExpr{foo} <PolEvalAtExpr>` syntax is needed for |
| 43 |
using expressions in the second argument. |
| 44 |
* Incompatible or breaking changes: |
| 45 |
|
| 46 |
- :ref:`\\PolToExpr <PolToExpr>` now by default uses *descending* |
| 47 |
powers (it also treats differently coefficients equal to 1 or -1.) |
| 48 |
Use :ref:`\\PolToExpr* <PolToExpr*>` for *ascending* powers. |
| 49 |
- :ref:`\\PolEval <PolEvalAt>` reduced the output to smallest terms, |
| 50 |
but as this is costly with big fractions and not needed if e.g. |
| 51 |
wrapped in an ``\xintRound`` or ``\xintFloat``, this step has been |
| 52 |
removed; the former meaning is available as |
| 53 |
:ref:`\\PolEvalReduced <PolEvalReducedAt>`. |
| 54 |
* New (or newly documented) macros: |
| 55 |
|
| 56 |
- :ref:`\\PolTypesetCmd <PolTypesetCmd>` |
| 57 |
- :ref:`\\PolTypesetCmdPrefix <PolTypesetCmdPrefix>` |
| 58 |
- :ref:`\\PolTypesetMonomialCmd <PolTypesetMonomialCmd>` |
| 59 |
- :ref:`\\PolEvalReducedAt <PolEvalReducedAt>` |
| 60 |
- :ref:`\\PolToFloatExpr <PolToFloatExpr>` |
| 61 |
- :ref:`\\PolToExprOneTerm <PolToExprOneTerm>` |
| 62 |
- :ref:`\\PolToFloatExprOneTerm <PolToFloatExprOneTerm>` |
| 63 |
- :ref:`\\PolToExprCmd <PolToExprCmd>` |
| 64 |
- :ref:`\\PolToFloatExprCmd <PolToFloatExprCmd>` |
| 65 |
- :ref:`\\PolToExprTermPrefix <PolToExprTermPrefix>` |
| 66 |
- :ref:`\\PolToExprVar <PolToExprVar>` |
| 67 |
- :ref:`\\PolToExprTimes <PolToExprTimes>` |
| 68 |
* Improvements: |
| 69 |
|
| 70 |
- Documentation has a table of contents, internal hyperlinks, |
| 71 |
standardized signature notations and added explanations. |
| 72 |
- One can do ``\PolLet{g}={f}`` or ``\PolLet{g}{f}``. |
| 73 |
- ``\PolToExpr{f}`` is highly customizable. |
| 74 |
- :ref:`\\poldef <poldef;>` and other defining macros prepare the |
| 75 |
polynomial functions for usage within ``\xintthefloatexpr`` (or |
| 76 |
``\xintdeffloatvar``). Coefficients are pre-rounded to the floating |
| 77 |
point precision. Indispensible for numerical algorithms, as exact |
| 78 |
fractions, even reduced, quickly become very big. See the documentation |
| 79 |
about how to use the exact polynomials also in floating point context. |
| 80 |
|
| 81 |
**Attention**: this has been reverted at ``0.4``. The macro |
| 82 |
:ref:`\\PolGenFloatVariant <PolGenFloatVariant>` must be used for |
| 83 |
generation floating point polynomial functions. |
| 84 |
|
| 85 |
0.3.1 (2018/01/18) |
| 86 |
------------------ |
| 87 |
|
| 88 |
Fixes two typos in example code included in the documentation. |
| 89 |
|
| 90 |
0.4 (2018/02/16) |
| 91 |
---------------- |
| 92 |
|
| 93 |
* Bug fixes: |
| 94 |
|
| 95 |
- When Euclidean division gave a zero remainder, the internal |
| 96 |
representation of this zero polynomial could be faulty; this |
| 97 |
could cause mysterious bugs in conjunction with other package |
| 98 |
macros such as :ref:`\\PolMapCoeffs <PolMapCoeffs>`. |
| 99 |
- :ref:`\\PolGCD <PolGCD>` was buggy in case of first polynomial being |
| 100 |
of lesser degree than the second one. |
| 101 |
* Breaking changes: |
| 102 |
|
| 103 |
- Formerly :ref:`\\PolEval{P}\\At{foo} <PolEvalAt>` allowed ``foo`` to |
| 104 |
be an expression, which was transparently handled via |
| 105 |
``\xinttheexpr``. Now, ``foo`` must be a fraction (or a macro |
| 106 |
expanding to such) in the format acceptable by ``xintfrac.sty`` |
| 107 |
macros. Use :ref:`\\PolEval{P}\\AtExpr{foo} <PolEvalAtExpr>` for more |
| 108 |
general arguments using expression syntax. E.g., if ``foo`` is the |
| 109 |
name of a variable known to ``\xintexpr``. |
| 110 |
|
| 111 |
The same holds for :ref:`\\PolEvalReduced <PolEvalReducedAt>` |
| 112 |
and :ref:`\\PolFloatEval <PolFloatEvalAt>`. |
| 113 |
- The ``3.0`` automatic generation of floating point variants has |
| 114 |
been reverted. Not only do *not* the package macros automatically |
| 115 |
generate floating point variants of newly created polynomials, |
| 116 |
they actually make pre-existing such variant undefined. |
| 117 |
|
| 118 |
See :ref:`\\PolGenFloatVariant <PolGenFloatVariant>`. |
| 119 |
* New non-expandable macros: |
| 120 |
|
| 121 |
- :ref:`\\PolGenFloatVariant <PolGenFloatVariant>` |
| 122 |
- :ref:`\\PolGlobalLet <PolGlobalLet>` |
| 123 |
- :ref:`\\PolTypesetOne <PolTypesetOne>` |
| 124 |
- :ref:`\\PolQuo <PolQuo>` |
| 125 |
- :ref:`\\PolRem <PolRem>` |
| 126 |
- :ref:`\\PolToSturm <PolToSturm>` |
| 127 |
- :ref:`\\PolToSturm\* <PolToSturm*>` |
| 128 |
- :ref:`\\PolSetToSturmChainSignChangesAt <PolSetToSturmChainSignChangesAt>` |
| 129 |
- :ref:`\\PolSetToNbOfZerosWithin <PolSetToNbOfZerosWithin>` |
| 130 |
- :ref:`\\PolSturmIsolateZeros <PolSturmIsolateZeros>` |
| 131 |
- :ref:`\\PolRefineInterval* <PolRefineInterval*>` |
| 132 |
- :ref:`\\PolRefineInterval[N] <PolRefineInterval[]>` |
| 133 |
- :ref:`\\PolEnsureIntervalLength <PolEnsureIntervalLength>` |
| 134 |
- :ref:`\\PolEnsureIntervalLengths <PolEnsureIntervalLengths>` |
| 135 |
- :ref:`\\PolPrintIntervals <PolPrintIntervals>` |
| 136 |
- :ref:`\\PolPrintIntervalsPrintExactZero <PolPrintIntervalsPrintExactZero>` |
| 137 |
- :ref:`\\PolPrintIntervalsPrintLeftEndPoint <PolPrintIntervalsPrintLeftEndPoint>` |
| 138 |
- :ref:`\\PolPrintIntervalsPrintRightEndPoint <PolPrintIntervalsPrintRightEndPoint>` |
| 139 |
- :ref:`\\PolReduceCoeffs* <PolReduceCoeffs*>` |
| 140 |
- :ref:`\\PolMakeMonic <PolMakeMonic>` |
| 141 |
* New expandable macros: |
| 142 |
|
| 143 |
- :ref:`\\PolToExprOneTermStyleA <PolToExprOneTermStyleA>` |
| 144 |
- :ref:`\\PolIfCoeffIsPlusOrMinusOne <PolIfCoeffIsPlusOrMinusOne>` |
| 145 |
- :ref:`\\PolLeadingCoeff <PolLeadingCoeff>` |
| 146 |
- :ref:`\\PolSturmChainLength <PolSturmChainLength>` |
| 147 |
- :ref:`\\PolSturmNbOfIsolatedZeros <PolSturmNbOfIsolatedZeros>` |
| 148 |
- :ref:`\\PolSturmIfZeroExactlyKnown <PolSturmIfZeroExactlyKnown>` |
| 149 |
- :ref:`\\PolSturmIsolatedZeroLeft <PolSturmIsolatedZeroLeft>` |
| 150 |
- :ref:`\\PolSturmIsolatedZeroRight <PolSturmIsolatedZeroRight>` |
| 151 |
- ``\PolPrintIntervalsTheEndPoint`` (removed at 0.7) |
| 152 |
- :ref:`\\PolPrintIntervalsTheIndex <PolPrintIntervalsTheIndex>` |
| 153 |
- ``\PolIfEndPointIsPositive`` (removed at 0.7) |
| 154 |
- ``\PolIfEndPointIsNegative`` (removed at 0.7) |
| 155 |
- ``\PolIfEndPointIsZero`` (removed at 0.7) |
| 156 |
- :ref:`\\PolIntervalWidth <PolIntervalWidth>` |
| 157 |
- :ref:`\\PolDecToString <PolDecToString>` |
| 158 |
* Improvements: |
| 159 |
|
| 160 |
The main new feature is implementation of the `Sturm algorithm`_ |
| 161 |
for localization of the real roots of polynomials. |
| 162 |
|
| 163 |
0.4.1 (2018/03/01) |
| 164 |
------------------ |
| 165 |
|
| 166 |
Synced with xint 1.3. |
| 167 |
|
| 168 |
0.4.2 (2018/03/03) |
| 169 |
------------------ |
| 170 |
|
| 171 |
Documentation fix. |
| 172 |
|
| 173 |
0.5 (2018/04/08) |
| 174 |
---------------- |
| 175 |
|
| 176 |
* Bug fix: |
| 177 |
|
| 178 |
- :ref:`\\PolGet{polname}\\fromarray\\macro <PolGet>` |
| 179 |
crashed when ``\macro`` was |
| 180 |
an xinttools_ array macro with no items. It now produces the zero |
| 181 |
polynomial. |
| 182 |
* Breaking changes: |
| 183 |
|
| 184 |
- :ref:`\\PolToSturm <PolToSturm>` creates primitive integer coefficients |
| 185 |
polynomials. This speeds up localization of roots via |
| 186 |
:ref:`\\PolSturmIsolateZeros <PolSturmIsolateZeros>`. In case of user |
| 187 |
protests the author will make available again the code producing the |
| 188 |
bona fide Sturm polynomials as used formerly. |
| 189 |
- Polynomials created from :ref:`\\PolFromCSV <PolFromCSV>` or |
| 190 |
:ref:`\\PolGet <PolGet>` |
| 191 |
get their coefficients normalized via xintfrac_\ 's ``\xintRaw``. |
| 192 |
* Experimental change: |
| 193 |
|
| 194 |
- Optional argument to :ref:`\\PolSturmIsolateZeros <PolSturmIsolateZeros>` |
| 195 |
(see ``The degree 41 polynomial with -2, -1.9, -1.8, ..., 0, 0.1, ..., |
| 196 |
1.9, 2 as roots`` in ``polexpr-examples.pdf``). It will presumably be |
| 197 |
replaced in future by an interval specification. |
| 198 |
* New non-expandable macro: |
| 199 |
|
| 200 |
- :ref:`\\PolMakePrimitive <PolMakePrimitive>` |
| 201 |
* New expandable macro: |
| 202 |
|
| 203 |
- :ref:`\\PolIContent <PolIContent>` |
| 204 |
|
| 205 |
0.5.1 (2018/04/22) |
| 206 |
------------------ |
| 207 |
|
| 208 |
* New feature: |
| 209 |
|
| 210 |
- The character ``'`` can be used in polynomial names. |
| 211 |
|
| 212 |
0.6 (2018/11/20) |
| 213 |
---------------- |
| 214 |
|
| 215 |
* Bug fixes: |
| 216 |
|
| 217 |
- The starred variant |
| 218 |
:ref:`\\PolToSturm*{\<polname\>}{\<sturmname\>} <PolToSturm*>` |
| 219 |
was broken. On the occasion of the fix, its meaning has |
| 220 |
been modified, see its documentation. |
| 221 |
|
| 222 |
- Using :ref:`\\PolToSturm <PolToSturm>` with a constant polynomial |
| 223 |
caused a division by zero error. |
| 224 |
|
| 225 |
* New macro: |
| 226 |
|
| 227 |
- :ref:`\\PolSturmIsolateZeros* <PolSturmIsolateZeros*>` |
| 228 |
acts like the :ref:`non-starred variant |
| 229 |
<PolSturmIsolateZeros>` then computes all the multiplicities. |
| 230 |
|
| 231 |
* New expandable macros: |
| 232 |
|
| 233 |
- :ref:`\\PolSturmIsolatedZeroMultiplicity{\<sturmname\>}{\<index\>} <PolSturmIsolatedZeroMultiplicity>` |
| 234 |
- :ref:`\\PolSturmNbOfRootsOf{\<sturmname\>}\\LessThanOrEqualTo{\<value\>} <PolSturmNbOfRootsOfLessThanOrEqualTo>` |
| 235 |
- :ref:`\\PolSturmNbOfRootsOf{\<sturmname\>}\\LessThanOrEqualToExpr{\<num. expr.\>} <PolSturmNbOfRootsOfLessThanOrEqualToExpr>` |
| 236 |
- :ref:`\\PolSturmNbWithMultOfRootsOf{\<sturmname\>}\\LessThanOrEqualTo{\<value\>} <PolSturmNbWithMultOfRootsOfLessThanOrEqualTo>` |
| 237 |
- :ref:`\\PolSturmNbWithMultOfRootsOf{\<sturmname\>}\\LessThanOrEqualToExpr{\<num. expr.\>} <PolSturmNbWithMultOfRootsOfLessThanOrEqualToExpr>` |
| 238 |
|
| 239 |
0.7 (2018/12/08), 0.7.1 (bugfix), 0.7.2 (2nd bugfix) (2018/12/09) |
| 240 |
----------------------------------------------------------------- |
| 241 |
|
| 242 |
* Breaking changes: |
| 243 |
|
| 244 |
- Although :ref:`\\PolPrintIntervals[\<varname\>]{\<sturmname\>} <PolPrintIntervals>` default output |
| 245 |
remains the same, some auxiliary macros for user-customization |
| 246 |
have been removed: ``\PolPrintIntervalsTheEndPoint``, |
| 247 |
``\PolIfEndPointIsPositive{T}{F}``, |
| 248 |
``\PolIfEndPointIsNegative{T}{F}``, and |
| 249 |
``\PolIfEndPointIsZero{T}{F}``. |
| 250 |
|
| 251 |
* Bug fixes: |
| 252 |
|
| 253 |
- It could happen that, contrarily to documentation, an interval computed |
| 254 |
by :ref:`\\PolSturmIsolateZeros{\<sturmname\>} <PolSturmIsolateZeros>` had |
| 255 |
zero as an endpoint, |
| 256 |
- :ref:`\\PolEnsureIntervalLength{\<sturmname\>}{\<index\>}{\<exponent\>} |
| 257 |
<PolEnsureIntervalLength>` could under certain circumstances erroneously |
| 258 |
replace a non-zero root by zero, |
| 259 |
- :ref:`\\PolEnsureIntervalLengths{\<sturmname\>}{\<exponent\>} |
| 260 |
<PolEnsureIntervalLengths>` crashed when used with a polynomial with no |
| 261 |
real roots, hence for which no isolation intervals existed (thanks to |
| 262 |
Thomas Söll for report). |
| 263 |
|
| 264 |
* New macros: |
| 265 |
|
| 266 |
- :ref:`\\PolSturmIsolateZeros**{\<sturmname\>} <PolSturmIsolateZeros**>` |
| 267 |
- :ref:`\\PolSturmIsolateZerosGetMultiplicitiesAndRationalRoots{\<sturmname\>} <PolSturmIsolateZerosGetMultiplicitiesAndRationalRoots>` |
| 268 |
- :ref:`\\PolSturmIsolateZerosAndFindRationalRoots{\<sturmname\>} <PolSturmIsolateZerosAndFindRationalRoots>` |
| 269 |
- :ref:`\\polexprsetup <polexprsetup>` |
| 270 |
- :ref:`\\PolPrintIntervals* <PolPrintIntervals*>` |
| 271 |
- :ref:`\\PolPrintIntervalsNoRealRoots <PolPrintIntervalsNoRealRoots>` |
| 272 |
- :ref:`\\PolPrintIntervalsBeginEnv <PolPrintIntervalsBeginEnv>` |
| 273 |
- :ref:`\\PolPrintIntervalsEndEnv <PolPrintIntervalsEndEnv>` |
| 274 |
- :ref:`\\PolPrintIntervalsKnownRoot <PolPrintIntervalsKnownRoot>` |
| 275 |
- :ref:`\\PolPrintIntervalsUnknownRoot <PolPrintIntervalsUnknownRoot>` |
| 276 |
- :ref:`\\PolPrintIntervalsPrintMultiplicity <PolPrintIntervalsPrintMultiplicity>` |
| 277 |
|
| 278 |
* New expandable macros: |
| 279 |
|
| 280 |
- :ref:`\\PolSturmNbOfRationalRoots{\<sturmname\>} <PolSturmNbOfRationalRoots>` |
| 281 |
- :ref:`\\PolSturmNbOfRationalRootsWithMultiplicities{\<sturmname\>} <PolSturmNbOfRationalRootsWithMultiplicities>` |
| 282 |
- :ref:`\\PolSturmRationalRoot{\<sturmname\>}{\<k\>} <PolSturmRationalRoot>` |
| 283 |
- :ref:`\\PolSturmRationalRootIndex{\<sturmname\>}{\<k\>} <PolSturmRationalRootIndex>` |
| 284 |
- :ref:`\\PolSturmRationalRootMultiplicity{\<sturmname\>}{\<k\>} <PolSturmRationalRootMultiplicity>` |
| 285 |
- :ref:`\\PolPrintIntervalsTheVar <PolPrintIntervalsTheVar>` |
| 286 |
- :ref:`\\PolPrintIntervalsTheSturmName <PolPrintIntervalsTheSturmName>` |
| 287 |
- :ref:`\\PolPrintIntervalsTheMultiplicity <PolPrintIntervalsTheMultiplicity>` |
| 288 |
|
| 289 |
0.7.3 (2019/02/04) |
| 290 |
------------------ |
| 291 |
|
| 292 |
* Bug fixes: |
| 293 |
|
| 294 |
- Debugging information not destined to user showed in log if root |
| 295 |
finding was done under ``\xintverbosetrue`` regime. |
| 296 |
- :ref:`\\PolPrintIntervalsTheVar <PolPrintIntervalsTheVar>` remained |
| 297 |
defined after :ref:`\\PolPrintIntervals <PolPrintIntervals>` but was |
| 298 |
left undefined after :ref:`\\PolPrintIntervals* <PolPrintIntervals*>` |
| 299 |
(reported by Jürgen Gilg). Now remains defined in both cases, and |
| 300 |
:ref:`\\PolPrintIntervalsTheSturmName <PolPrintIntervalsTheSturmName>` |
| 301 |
also. |
| 302 |
- Polynomial names ending in digits caused errors (reported by Thomas |
| 303 |
Söll). |
| 304 |
|
| 305 |
0.7.4 (2019/02/12) |
| 306 |
------------------ |
| 307 |
|
| 308 |
* Bug fix: |
| 309 |
|
| 310 |
- 20000000000 is too big for ``\numexpr``, shouldn't I know that? |
| 311 |
Thanks to Jürgen Gilg for report. |
| 312 |
|
| 313 |
0.7.5 (2020/01/31) |
| 314 |
------------------ |
| 315 |
|
| 316 |
Synced with xintexpr 1.4. Requires it. |
| 317 |
|
| 318 |
.. _polexpr08release: |
| 319 |
|
| 320 |
0.8 (2021/03/29) |
| 321 |
---------------- |
| 322 |
|
| 323 |
Synced with xintexpr 1.4d. Requires it. |
| 324 |
|
| 325 |
* Breaking changes: |
| 326 |
|
| 327 |
- As the usability of character ``'`` in names has been extended |
| 328 |
from ``\poldef`` to also generally ``\xintexpr``, ``\xintdefvar``, |
| 329 |
and ``\xintdeffunc``, it means that the infix operators |
| 330 |
``'and'``, ``'or'``, and ``'mod'`` must be replaced |
| 331 |
by ``&&``, ``||``, and ``/:`` if they |
| 332 |
follow immediately a variable name (similarly ``'xor'`` must |
| 333 |
be replaced by the ``xor()`` function in such case). |
| 334 |
|
| 335 |
- :ref:`\\PolToExpr <PolToExpr>` by default uses a catcode 12 |
| 336 |
``^``. See its documentation and the new configuration |
| 337 |
:ref:`\\PolToExprCaret <PolToExprCaret>`. |
| 338 |
|
| 339 |
* Deprecated: |
| 340 |
|
| 341 |
- Usage of ``P/Q`` for the euclidean quotient of two polynomials is |
| 342 |
deprecated. Start using ``quo(P,Q)`` in its place. |
| 343 |
|
| 344 |
* Bug fixes: |
| 345 |
|
| 346 |
- The ``\xintglobaldefstrue`` setting was obeyed only partially |
| 347 |
by the polexpr macros defining polynomials. |
| 348 |
|
| 349 |
- The ``\xintexpr`` variables storing the values of the extremities of the |
| 350 |
intervals as found by :ref:`\\PolSturmIsolateZeros |
| 351 |
<PolSturmIsolateZeros>` were not updated at 0.7.5 to the xintexpr 1.4 |
| 352 |
format and thus caused low-level TeX errors if used. |
| 353 |
|
| 354 |
- Attempting to use in ``\poldef`` a function previously declared |
| 355 |
via ``\xintdeffunc`` which made usage of the indexing or slicing |
| 356 |
"ople" syntax typically caused ``TeX capacity exceeded`` error. |
| 357 |
Indeed 0.7.5 only partially made polexpr able to cope with the |
| 358 |
extended possibilities for xintexpr 1.4 user-declared functions. |
| 359 |
Hopefully ``0.8`` achieves full functionality in this context. |
| 360 |
|
| 361 |
* New macros: |
| 362 |
|
| 363 |
- :ref:`\\polnewpolverbosefalse <polnewpolverbosefalse>` |
| 364 |
- :ref:`\\PolToExprCaret <PolToExprCaret>` |
| 365 |
- :ref:`\\PolToExprInVar <PolToExprInVar>` |
| 366 |
- Alongside the major new functionalities described in the next item |
| 367 |
:ref:`\\PolTypeset <PolTypeset>` and :ref:`\\PolToExpr <PolToExpr>` have |
| 368 |
been enhanced to accept as argument a general expression and not |
| 369 |
only a pre-declared polynomial name. |
| 370 |
|
| 371 |
* New features: |
| 372 |
|
| 373 |
- The package is usable under Plain and probably most any TeX format, |
| 374 |
and not only under LaTeX. |
| 375 |
|
| 376 |
- The core of the package has been rewritten entirely in order to |
| 377 |
start letting ``\xintexpr`` recognize a polynomial type as a genuine |
| 378 |
variable. This has allowed: |
| 379 |
|
| 380 |
- to solve the reduced inter-operability problems between polexpr |
| 381 |
and xintexpr_ which arose as consequences to the deep xintexpr_ ``1.4`` |
| 382 |
evolution, |
| 383 |
|
| 384 |
- to make available most of the functionality associated to |
| 385 |
expandable macros directly in the ``\xinteval`` syntax as |
| 386 |
operators or functions, |
| 387 |
|
| 388 |
- to provide (expandable) functional interface in ``\xinteval`` to |
| 389 |
features previously available only via (for some, non-expandable) |
| 390 |
macro interface such as gcd computations. |
| 391 |
|
| 392 |
See the updated :ref:`Quick syntax overview <quick>` and then |
| 393 |
:ref:`the extended syntax description <polexpr08>`. |
| 394 |
|
| 395 |
0.8.1 (2021/04/12) |
| 396 |
------------------ |
| 397 |
|
| 398 |
* Breaking changes: |
| 399 |
|
| 400 |
- Renamed 0.8's ``icontent()`` to :ref:`cont() <cont>`. |
| 401 |
- Renamed 0.8's ``lcoeff()`` to :ref:`lc() <lc>`. |
| 402 |
|
| 403 |
* Bug fixes: |
| 404 |
|
| 405 |
- Sadly, ``diff1()``, ``diff2()``, ``diffn()`` were broken |
| 406 |
for polynomials of degrees 8 or more, due to a typo and |
| 407 |
insufficient testing. |
| 408 |
|
| 409 |
- The package should have (as documented) required xintexpr_ 1.4d |
| 410 |
but in practice it accepted to work with xintexpr_ 1.4c, whose |
| 411 |
``\xinteval`` does not know how to "output" a polynomial. |
| 412 |
|
| 413 |
- The definition of one of the two variants of |
| 414 |
:ref:`\\PolSturmNbOfRootsOf... <PolSturmNbOfRootsOfLessThanOrEqualTo>` |
| 415 |
was broken by an end-of-line space, left-over |
| 416 |
from mass conversion from LaTeX to TeX syntax. |
| 417 |
|
| 418 |
* Added: |
| 419 |
|
| 420 |
- :ref:`lpol() <lpol>` |
| 421 |
- :ref:`lcoeffs() <lcoeffs>` |
| 422 |
|
| 423 |
0.8.2 (2021/05/05) |
| 424 |
------------------ |
| 425 |
|
| 426 |
* Breaking change: |
| 427 |
|
| 428 |
- Usage of ``\xintPFloat`` in place of ``\xintFloat`` for |
| 429 |
:ref:`\\PolToFloatExprCmd <PolToFloatExprCmd>`. |
| 430 |
|
| 431 |
* Improved: |
| 432 |
|
| 433 |
- Some xintexpr_ functions such as ``rseq()`` use the semi-colon, |
| 434 |
and it was mentioned in the documentation that :ref:`\\poldef <poldef;>` |
| 435 |
will be confused by this and that inner semi-colons could be |
| 436 |
set within braces ``{;}`` as a work-around. It was not clear from |
| 437 |
this documentation that also :ref:`\\PolDef <PolDef>` required |
| 438 |
this work-around. With this relase only :ref:`\\poldef <poldef;>` but |
| 439 |
not :ref:`\\PolDef <PolDef>` needs the work-around. |
| 440 |
|
| 441 |
* Track xintexpr_ ``1.4e`` changes relative to powers. |
| 442 |
|
| 443 |
0.8.3 (2021/05/27) |
| 444 |
------------------ |
| 445 |
|
| 446 |
* Small internal update to track an xintexpr_ ``1.4h`` change |
| 447 |
regarding handling of exceptions. Will require this version at |
| 448 |
least on loading. |
| 449 |
|
| 450 |
0.8.4 (2021/11/01) |
| 451 |
------------------ |
| 452 |
|
| 453 |
* Bug fix: :ref:`\\PolSturmIsolateZeros**{\<sturmname\>} |
| 454 |
<PolSturmIsolateZeros**>` did not declare the ``<sturmname>_norr`` and |
| 455 |
``<sturmname>_sqf_norr`` polynomials if original polynomial had no real |
| 456 |
root! |
| 457 |
|
| 458 |
0.8.5 (2021/11/30) |
| 459 |
------------------ |
| 460 |
|
| 461 |
* Bug fix: support for the ``intfrom()`` function was in the code, |
| 462 |
but the declaration to the polynomial parser had not been done. |
| 463 |
|
| 464 |
* Track (belatedly) upstream deprecation of ``\xintSignedFrac`` and |
| 465 |
``\xintSignedFwOver`` at xintexpr_ ``1.4g`` |
| 466 |
|
| 467 |
0.8.6 (2022/01/09) |
| 468 |
------------------ |
| 469 |
|
| 470 |
* Provide a separate ``polexpr-examples.pdf`` with examples formerly |
| 471 |
shown as part of the html documentation. |
| 472 |
|
| 473 |
* Minor improvement to the computation of a priori bounds on real roots. |
| 474 |
|
| 475 |
* Add :ref:`\\PolPrintIntervalsRowSeparator <PolPrintIntervalsRowSeparator>` |
| 476 |
and allow usage of ``amsmath`` environments in custom |
| 477 |
:ref:`\\PolPrintIntervalsBeginEnv <PolPrintIntervalsBeginEnv>` and |
| 478 |
:ref:`\\PolPrintIntervalsEndEnv <PolPrintIntervalsEndEnv>`. |
| 479 |
|
| 480 |
0.8.7 (2022/05/14) |
| 481 |
------------------ |
| 482 |
|
| 483 |
* Bug fix: catcode sanitization by :ref:`\\poldef <poldef;>` was minimal |
| 484 |
ever since ``0.1`` and handled only the semi-colon. Thus e.g. the |
| 485 |
active ``!`` from babel-french caused errors and ``\string!`` was |
| 486 |
needed as work-around for factorials. Now the same sanitization as |
| 487 |
for ``\xintdefvar`` and ``\xintdeffunc`` is applied. This however can |
| 488 |
only work at locations where the catcodes are not yet frozen at the |
| 489 |
time ``\poldef`` expands. |
| 490 |
|
| 491 |
* Split the html documentation into three files and enhance it via CSS |
| 492 |
styling. |
| 493 |
|
| 494 |
0.8.7a (2022/05/19) |
| 495 |
------------------- |
| 496 |
|
| 497 |
* Documentation updates. |
| 498 |
|
| 499 |
|
| 500 |
.. _xinttools: |
| 501 |
.. _xintfrac: |
| 502 |
.. _xint: https://www.ctan.org/pkg/xint |
| 503 |
|
| 504 |
.. _xintexpr: https://www.ctan.org/pkg/xintexpr |
| 505 |
|
| 506 |
.. _xintsession: https://www.ctan.org/pkg/xintsession |
| 507 |
|
| 508 |
.. _Wilkinson polynomial: https://en.wikipedia.org/wiki/Wilkinson%27s_polynomial |
| 509 |
|
| 510 |
.. _Sturm algorithm: |
| 511 |
.. _Sturm Theorem: https://en.wikipedia.org/wiki/Sturm%27s_theorem |
| 512 |
|
| 513 |
.. _DocUtils: http://docutils.sourceforge.net/docs/index.html |
| 514 |
|
| 515 |
|
| 516 |
.. Local variables: |
| 517 |
.. sentence-end-double-space: t; |
| 518 |
.. End: |