Jump to content

Aplicar Formula numa matriz


cryteck

Recommended Posts

Boa noite.

Imaginemos que tenho a seguinte matriz

ML 1|2|0|2|3

ML 0|1|6|9|3

ML 8|2|6|2|0

Q 0|1|1|3|4

Qual a forma mais simples para aplicar esta formula para cada linha da matriz :

Formula =( MLi . Qi) / raiz ( ∑ MLi ^2) * raiz ( ∑ Qi ^2)

Ou seja no resultado da primeira linha tem de se fazer

numerador = 1*0+2*1+0*1+2*3+3*4

denominador = (raiz (1^2+2^2+0^2+2^2+3^2))* (raiz(0^2+1^2+1^2+3^2+4^2))

Será que me poderiam dar umas dicas é importante.

Cumps 🙂

Edited by cryteck
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.