Skip to content

Commit becb371

Browse files
Update README.md
1 parent e782fd5 commit becb371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ julia> roots(Poly([0, 0, 1]))
161161
* `polyfit`: fits a polynomial (of order `n`) to `x` and `y` using a least-squares approximation.
162162

163163
```julia
164-
julia> xs = 1:4; ys = exp(xs); polyfit(xs, ys)
164+
julia> xs = 1:4; ys = exp.(xs); polyfit(xs, ys)
165165
Poly(-7.717211620141281 + 17.9146616149694x - 9.77757245502143x^2 + 2.298404288652356x^3)
166166
```
167167

0 commit comments

Comments
 (0)