CTAN update: bezierplot
Date: November 3, 2024 9:02:36 AM CET
Linus Romer submitted an update to the
bezierplot
package.
Version: 1.6 2024-11-02
License: lppl1.3c
Summary description: Approximate smooth function graphs with cubic bezier splines for use with TikZ or MetaPost
Announcement text:
In the last version, functions like "sqrt(x)*sin(x)/x" created an infinite loop. This was because the recursion added new inflection points as the derivative was calculated numerically. In this version, a maximum recursion depth stops the loop. Sinh, cosh, tanh, rad, deg have been added as function types.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/bezierplot The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/latex/bezierplot/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
In the last version, functions like "sqrt(x)*sin(x)/x" created an infinite loop. This was because the recursion added new inflection points as the derivative was calculated numerically. In this version, a maximum recursion depth stops the loop. Sinh, cosh, tanh, rad, deg have been added as function types.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/bezierplot The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/latex/bezierplot/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
bezierplot – Approximate smooth function graphs with cubic bezier splines for use with TikZ or METAPOST
This package consists of a Lua program as well as a (Lua)LaTeX .sty file.
Given a smooth function, bezierplot returns a smooth bezier path written in TikZ notation (which also matches METAPOST) that approximates the graph of the function. For polynomial functions of degree ≤ 3 and their inverses the approximation is exact (up to numeric precision).
bezierplot also finds special points such as extreme points and inflection points and reduces the number of used points.
Package | bezierplot |
Version | 1.6 2024-11-02 |
Copyright | 2018–2024 Linus Romer |
Maintainer | Linus Romer |