print which calculator is in use
This commit is contained in:
parent
354be9dfa9
commit
8e92e9103c
|
@ -47,6 +47,8 @@ proc calcCross(vector1: array[3, float], vector2: array[3, float]): array[3, flo
|
||||||
return vector
|
return vector
|
||||||
|
|
||||||
proc dot*() =
|
proc dot*() =
|
||||||
|
echo "MATRIX DOT PRODUCT"
|
||||||
|
|
||||||
#? record first matrix
|
#? record first matrix
|
||||||
echo "Enter number of rows in the first matrix:"
|
echo "Enter number of rows in the first matrix:"
|
||||||
let r1: int = parseInt(readLine(stdin))
|
let r1: int = parseInt(readLine(stdin))
|
||||||
|
@ -77,6 +79,8 @@ proc dot*() =
|
||||||
printMatrix(m)
|
printMatrix(m)
|
||||||
|
|
||||||
proc cross*() =
|
proc cross*() =
|
||||||
|
echo "VECTOR CROSS PRODUCT"
|
||||||
|
|
||||||
type
|
type
|
||||||
vector = array[3, float]
|
vector = array[3, float]
|
||||||
var
|
var
|
||||||
|
|
Loading…
Reference in a new issue