Skip to content

Releases: JuliaAlgebra/MultivariatePolynomials.jl

Bugfixes

27 Sep 12:32
Compare
Choose a tag to compare
  • Fixes some more bugs in the new show capabilities #98

Fix show for variables with indices larger than 9

18 Sep 09:31
4cff607
Compare
Choose a tag to compare

We fixed a small bug in the new unicode printing for for variables with indices larger than 9.

Improve printing

27 Aug 09:11
Compare
Choose a tag to compare

We now have by default a very nice unicode output for polynomials

julia> @polyvar a b c;

julia> (a^2+b-c)^2
a⁴ + 2a²b - 2a²c +- 2bc + c²

julia> @polyvar x[1:3] y[1:3];

julia> prod(cross(x, y))
-x₁²x₂y₂y₃² + x₁²x₃y₂²y₃ + x₁x₂²y₁y₃² - x₁x₃²y₁y₂² - x₂²x₃y₁²y₃ + x₂x₃²y₁²y₂

julia> @polyvar X[1:3, 1:2, 4:5]; # Only DynamicPolynomials currently

julia> X
3×2×2 Array{PolyVar{true},3}:
[:, :, 1] =
 X₁₋₁₋₄  X₁₋₂₋₄
 X₂₋₁₋₄  X₂₋₂₋₄
 X₃₋₁₋₄  X₃₋₂₋₄

[:, :, 2] =
 X₁₋₁₋₅  X₁₋₂₋₅
 X₂₋₁₋₅  X₂₋₂₋₅
 X₃₋₁₋₅  X₃₋₂₋₅

Also the print function now creates an output which can be copy-pasted back to a file

julia> @polyvar x[1:3]
(PolyVar{true}[x₁, x₂, x₃],)

julia> sum(x)*x[2]
x₁x₂ + x₂² + x₂x₃

julia> print(sum(x)*x[2])
x[1]*x[2] + x[2]^2 + x[2]*x[3]

If this printing doesn't fit your needs you can use the name_base_indices function to create your own custom printing of variables.

Minor interface update

23 Aug 08:21
80eb4b3
Compare
Choose a tag to compare

We add the name_base_indices function to make it possible to improve the printing of polynomials.

0.7 support

08 Aug 15:17
c3a5b88
Compare
Choose a tag to compare
Merge pull request #89 from JuliaAlgebra/0.7

Update package for 0.7 only

v0.1.4

19 Mar 11:08
Compare
Choose a tag to compare
equalto -> isequal

Add support to Julia v0.7

09 Mar 16:55
Compare
Choose a tag to compare
v0.1.3

Disallow failures on nightly

v0.1.2: Merge pull request #64 from JuliaAlgebra/ratone

12 Jan 09:47
e0f721c
Compare
Choose a tag to compare

v0.1.1

19 Sep 08:47
Compare
Choose a tag to compare
Fix isapproxzero for non-Real

v0.1.0

03 Sep 21:19
Compare
Choose a tag to compare
Enable test