functionprintVector
Print vector
Information
Syntax
s = Vectors.printVector(v,significantDigits,name);
Description
This function returns string s containing vector of real numbers v called name.
Example
v = {2,0,-342.1};
printVector(v, 6, "myVec");
// = "
// myVec =
// 2
// 0
// -342
// "
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | v | Vector of real numbers to be printed | |
| Integer | significantDigits | 6 | Number of significant digits that are shown |
| String | name | "v" | Independent variable name used for printing |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | s | "" | String containing v |