Depressed cubic polynomial

Function to obtain the "depressed" cubic polynomial, from the general cubic form.
320.0 次下载
更新时间 2012/5/29

查看许可证

Syntax:
p2 = depressedcubic(p1)

If the general cubic polynomial p1(y) has the form p1=[a b c d], meaning:

p1(y) = a*y^3 + b*y^2 + c*y +d

The Matlab function depressedcubic.m transform it into the "depressed" cubic form p2(x)

p2(x) = a*x^3 + k1*x + k2

by applying the change of variable

y = x - b/(3a)

where k1 = c - b^2/(3a)
and k2 = d - bc/(3a) + (2*b^3)/(27a^2)

This function checks if the input is a valid cubic polynomial (expressed as a 4-vector as in Matlab format) with the coefficient of the cubic term non zero.

The method is the work of Nicolo' Fontana (a.k.a. Tartaglia; 1500-1557) and Scipione Del Ferro (1465-1526). Later published by Cardano in his Ars Magna.

引用格式

Isaac Mancero Mosquera (2025). Depressed cubic polynomial (https://www.mathworks.com/matlabcentral/fileexchange/36813-depressed-cubic-polynomial), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polynomials 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Originally intended to process monic cubic forms, this new version can process a general cubic form.

1.1.0.0

Checked for sign issues, and corrected the expression for "k2" (description above).

1.0.0.0