PHP 클래스 MathPHP\Functions\PolynomialTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: markrogoyski/math-php

공개 메소드들

메소드 설명
dataProviderForAddition ( )
dataProviderForDifferentiate ( )
dataProviderForEval ( )
dataProviderForGetCoefficients ( )
dataProviderForGetDegree ( )
dataProviderForGetVariable ( )
dataProviderForIntegrate ( )
dataProviderForMultiplication ( )
dataProviderForString ( )
dataProviderForVariable ( )
testAddition ( array $polynomialA, array $polynomialB, array $expected_sum )
testDifferentiation ( array $polynomial, array $expected )
testEval ( array $coefficients, $x, $expected )
testFundamentalTheoremOfCalculus ( )
testGetCoefficients ( array $coefficients, array $expected )
testGetDegree ( array $coefficients, integer $expected )
testGetVariable ( array $args, string $expected )
testIntegration ( array $polynomial, array $expected_integral )
testMultiplication ( array $polynomialA, array $polynomialB, array $expected_product )
testSetVariable ( )
testString ( array $coefficients, string $expected )
testVariable ( array $args, string $expected )

메소드 상세

dataProviderForAddition() 공개 메소드

dataProviderForDifferentiate() 공개 메소드

dataProviderForEval() 공개 메소드

public dataProviderForEval ( )

dataProviderForGetCoefficients() 공개 메소드

dataProviderForGetDegree() 공개 메소드

dataProviderForGetVariable() 공개 메소드

dataProviderForIntegrate() 공개 메소드

dataProviderForMultiplication() 공개 메소드

dataProviderForString() 공개 메소드

dataProviderForVariable() 공개 메소드

testAddition() 공개 메소드

public testAddition ( array $polynomialA, array $polynomialB, array $expected_sum )
$polynomialA array
$polynomialB array
$expected_sum array

testDifferentiation() 공개 메소드

public testDifferentiation ( array $polynomial, array $expected )
$polynomial array
$expected array

testEval() 공개 메소드

public testEval ( array $coefficients, $x, $expected )
$coefficients array

testFundamentalTheoremOfCalculus() 공개 메소드

testGetCoefficients() 공개 메소드

public testGetCoefficients ( array $coefficients, array $expected )
$coefficients array
$expected array

testGetDegree() 공개 메소드

public testGetDegree ( array $coefficients, integer $expected )
$coefficients array
$expected integer

testGetVariable() 공개 메소드

public testGetVariable ( array $args, string $expected )
$args array
$expected string

testIntegration() 공개 메소드

public testIntegration ( array $polynomial, array $expected_integral )
$polynomial array
$expected_integral array

testMultiplication() 공개 메소드

public testMultiplication ( array $polynomialA, array $polynomialB, array $expected_product )
$polynomialA array
$polynomialB array
$expected_product array

testSetVariable() 공개 메소드

public testSetVariable ( )

testString() 공개 메소드

public testString ( array $coefficients, string $expected )
$coefficients array
$expected string

testVariable() 공개 메소드

public testVariable ( array $args, string $expected )
$args array
$expected string