PHP 클래스 MathPHP\Functions\Map\Single

파일 보기 프로젝트 열기: markrogoyski/math-php 1 사용 예제들

공개 메소드들

메소드 설명
abs ( array $xs ) : array Map absolute value
add ( array $xs, number $k ) : array Map addition
cube ( array $xs ) : array Map cube
divide ( array $xs, number $k ) : array Map Divide
max ( array $xs, number $value ) : array Map max value Each element in the array is compared against the value, and the max of each is returned.
min ( array $xs, number $value ) : array Map min value Each element in array is compared against the value, and the min of each is returned.
multiply ( array $xs, number $k ) : array Map multiply
pow ( array $xs, $n ) : array Map raise to a power
sqrt ( array $xs ) : array Map square root
square ( array $xs ) : array Map square
subtract ( array $xs, number $k ) : array Map subtract

메소드 상세

abs() 공개 정적인 메소드

Map absolute value
public static abs ( array $xs ) : array
$xs array
리턴 array

add() 공개 정적인 메소드

Map addition
public static add ( array $xs, number $k ) : array
$xs array
$k number Number to add to each element
리턴 array

cube() 공개 정적인 메소드

Map cube
public static cube ( array $xs ) : array
$xs array
리턴 array

divide() 공개 정적인 메소드

Map Divide
public static divide ( array $xs, number $k ) : array
$xs array
$k number Number to divide each element by
리턴 array

max() 공개 정적인 메소드

Map max value Each element in the array is compared against the value, and the max of each is returned.
public static max ( array $xs, number $value ) : array
$xs array
$value number
리턴 array

min() 공개 정적인 메소드

Map min value Each element in array is compared against the value, and the min of each is returned.
public static min ( array $xs, number $value ) : array
$xs array
$value number
리턴 array

multiply() 공개 정적인 메소드

Map multiply
public static multiply ( array $xs, number $k ) : array
$xs array
$k number Number to multiply to each element
리턴 array

pow() 공개 정적인 메소드

Map raise to a power
public static pow ( array $xs, $n ) : array
$xs array
리턴 array

sqrt() 공개 정적인 메소드

Map square root
public static sqrt ( array $xs ) : array
$xs array
리턴 array

square() 공개 정적인 메소드

Map square
public static square ( array $xs ) : array
$xs array
리턴 array

subtract() 공개 정적인 메소드

Map subtract
public static subtract ( array $xs, number $k ) : array
$xs array
$k number Number to subtract from each element
리턴 array