Overview
/
KCL Standard Library
/
Functions
/
vector::div

vector::divFunction in std::vector

Divides every element of u by its corresponding element in v. Both vectors must have the same length. Returns a new vector of the same length. In other words, component-wise division.

Arguments

NameTypeDescriptionRequired
u[number]Yes
v[number]Yes

Returns

[number]

Examples