Skip to content
ExamplesOpen editor ↗

seatisoSaNtlha

Calculates the dot product of vectors.

seatisoSaNtlha(mola, oMongwe)

Multiplies corresponding components and adds the results. Returns a number without changing either vector. Use matching dimensions.

NameTypeDescription
molamolaThe first vector.
oMongwemolaThe second vector.
Calculates the dot product of vectors
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = bopaMola(3, 4);
  diri b = bopaMola(5, 1);
  diri sephetho = seatisoSaNtlha(a, b);
  bogoloJwaMokwalo(28);
  thalaMokwalo(mokwalo(sephetho), 40, 120);
  emisaPoapoeletso();
}

bopaMola, kopololaMola