Skip to content

Commit a832eca

Browse files
committed
add docs
1 parent 06df8be commit a832eca

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ julia> roots(Poly([0, 0, 1]))
137137
2-element Array{Float64,1}:
138138
0.0
139139
0.0
140-
```
140+
```
141141

142142
#### Polyfit
143143

144144
* `polyfit`: fits a polynomial of minimal degree fitting the points
145145
specified by `x` and `y` using least squares fit.
146146

147-
```
147+
```julia
148148
julia> xs = 1:4; ys = exp(xs); polyfit(xs, ys)
149149
Poly(-7.717211620141281 + 17.9146616149694x - 9.77757245502143x^2 + 2.298404288652356x^3)
150150
```
@@ -175,3 +175,12 @@ Polynomial objects also have other methods:
175175
* `Pade`: Return the
176176
[Pade approximant](https://en.wikipedia.org/wiki/Pad%C3%A9_approximant)
177177
of order `m/n` for a polynomial as a `Pade` object.
178+
179+
180+
## See also
181+
182+
* [MultiPoly.jl](https://github.com/daviddelaat/MultiPoly.jl) for sparse multivariate polynomials
183+
184+
* [Nemo.jl](https://github.com/wbhart/Nemo.jl) for generic polynomial rings, matrix spaces, fraction fields, residue rings, power series
185+
186+
* [PolynomialRoots.jl](https://github.com/giordano/PolynomialRoots.jl) a fast complex polynomial root finder

src/Polynomials.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export Poly, poly
99
export degree, coeffs, variable
1010
export polyval, polyint, polyder, roots, polyfit
1111
export Pade, padeval
12-
export truncate!
1312

1413
import Base: length, endof, getindex, setindex!, copy, zero, one, convert, norm, gcd
1514
import Base: show, print, *, /, //, -, +, ==, divrem, div, rem, eltype, .*, .-, .+

0 commit comments

Comments
 (0)