• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

JuliaAlgebra/MultivariatePolynomials.jl: Multivariate polynomials interface

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

JuliaAlgebra/MultivariatePolynomials.jl

开源软件地址:

https://github.com/JuliaAlgebra/MultivariatePolynomials.jl

开源编程语言:

Julia 100.0%

开源软件介绍:

Multivariate Polynomials

Documentation Build Status Social References to cite
Build Status Gitter DOI
Codecov branch

This package provides an interface for manipulating multivariate polynomials. Implementing algorithms on polynomials using this interface will allow the algorithm to work for all polynomials implementing the interface.

The interface contains functions for accessing the coefficients, monomials, terms of the polynomial, defines arithmetic operations on them, rational functions, division with remainder, calculus/differentiation and evaluation/substitution.

Documentation

  • STABLEmost recently tagged version of the documentation.
  • LATESTin-development version of the documentation.

Examples

Below is a simple usage example

using TypedPolynomials
@polyvar x y # assigns x (resp. y) to a variable of name x (resp. y)
p = 2x + 3.0x*y^2 + y
@test differentiate(p, x) # compute the derivative of p with respect to x
@test differentiate.(p, (x, y)) # compute the gradient of p
@test p((x, y)=>(y, x)) # replace any x by y and y by x
@test subs(p, y=>x^2) # replace any occurence of y by x^2
@test p(x=>1, y=>2) # evaluate p at [1, 2]

Below is an example with @polyvar x[1:3]

using TypedPolynomials
A = rand(3, 3)
@polyvar x[1:3] # assign x to a tuple of variables x1, x2, x3
p = sum(x .* x) # x_1^2 + x_2^2 + x_3^2
subs(p, x[1]=>2, x[3]=>3) # x_2^2 + 13
p(x=>A*vec(x)) # corresponds to dot(A*x, A*x), need vec to convert the tuple to a vector

Ecosystem

The following packages provides multivariate polynomials that implement the interface:

  • TypedPolynomials : Commutative polynomials of arbitrary coefficient types
  • DynamicPolynomials : Commutative and non-commutative polynomials of arbitrary coefficient types

The following packages extend/use the interface:

  • SemialgebraicSets : Sets defined by inequalities and equalities between polynomials and algorithms for solving polynomial systems of equations.
  • FixedPolynomials : Fast evaluation of multivariate polynomials
  • HomotopyContinuation : Solving systems of polynomials via homotopy continuation.
  • MultivariateBases : Standardized API for multivariate polynomial bases.
  • MultivariateMoments : Moments of multivariate measures and their scalar product with polynomials.
  • PolyJuMP : A JuMP extension for Polynomial Optimization.
  • SumOfSquares : Certifying the nonnegativity of polynomials, minimizing/maximizing polynomials and optimization over sum of squares polynomials using Sum of Squares Programming.

See also

  • Nemo for generic polynomial rings, matrix spaces, fraction fields, residue rings, power series
  • Polynomials for univariate polynomials
  • PolynomialRoots for a fast complex polynomial root finder



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap