text.c
that displays "Text 's Analysis" on screen and execute it.txt = "hello"
and display it on screen.main
program).\0
txt2 = "babel"
and compute the "dot product" between txt and txt2 (in the main
program) ; print the result.length(txt)
and dot(txt,txt2)
into two sub-programs and adapt the main
to use them.norm(txt)
that computes the square root of dot(txt,txt)
; you can use the function sqrt
from math.h
.correlation(txt,txt2)
that returns the dot produt divided by the norm of each text.i
such as correlation(guess,words[i])
is maximum).char* words = {txt2,txt,txt3};
char guess = "...";
Nb. txt3 = "wasty"
'hallo' ? ... Maybe it's 'hello' ?