PHP Class MathPHP\LinearAlgebra\VandermondeSquareMatrix

[α₁⁰ α₁¹ α₁² ⋯ α₁ⁿ⁻¹] [α₂⁰ α₂¹ α₂² ⋯ α₂ⁿ⁻¹] [α₃⁰ α₃¹ α₃² ⋯ α₃ⁿ⁻¹] [ ⋮ ⋮ ⋮ ⋱ ⋮ ] [αm⁰ αm¹ αm² ⋯ αmⁿ⁻¹] Ex: M = [1, 2, 3], n = 4 [1⁰ 1¹ 1² 1³] [1 1 1 1 ] V = [2⁰ 2¹ 2² 2³] = [1 2 4 8 ] [3⁰ 3¹ 3² 3³] [1 3 9 27] https://en.wikipedia.org/wiki/Vandermonde_matrix
Inheritance: extends SquareMatrix
Mostra file Open project: markrogoyski/math-php

Public Methods

Method Description
__construct ( array $M, integer $n ) Create the Vandermonde Matrix from a simple array.

Method Details

__construct() public method

Create the Vandermonde Matrix from a simple array.
public __construct ( array $M, integer $n )
$M array array (α₁, α₂, α₃ ⋯ αm)
$n integer int