fixate tutte le formule con le parentesi.

This commit is contained in:
2025-01-25 19:13:40 +01:00
parent 99d3b2f831
commit e96b821d61
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -169,7 +169,7 @@ void main()
// Prevengo la divisione per zero // Prevengo la divisione per zero
if(p_ext_1.w2 != 0 && p_ext_2.w2 != 0 && pout.w2 !=0) if(p_ext_1.w2 != 0 && p_ext_2.w2 != 0 && pout.w2 !=0)
{ {
rette_p_ext_1[i].m = -(p_ext_1.w1 / p_ext_1.w2); rette_p_ext_1[i].m = -(p_ext_1.w1 / p_ext_1.w2);
rette_p_ext_1[i].q = -(p_ext_1.bias / p_ext_1.w2); rette_p_ext_1[i].q = -(p_ext_1.bias / p_ext_1.w2);
rette_p_ext_2[i].m = -(p_ext_2.w1 / p_ext_2.w2); rette_p_ext_2[i].m = -(p_ext_2.w1 / p_ext_2.w2);
@@ -178,7 +178,7 @@ void main()
/* rette_pout[i].m = -(pout.w1 * x[j][0]) / pout.w2; /* rette_pout[i].m = -(pout.w1 * x[j][0]) / pout.w2;
rette_pout[i].q = -(pout.bias / pout.w2); */ rette_pout[i].q = -(pout.bias / pout.w2); */
rette_pout[i].m = -(pout.w1) / pout.w2; rette_pout[i].m = -(pout.w1 / pout.w2);
rette_pout[i].q = -(pout.bias / pout.w2); rette_pout[i].q = -(pout.bias / pout.w2);
// somma delle rette (m1 + m2)x + (q1 + q2) // somma delle rette (m1 + m2)x + (q1 + q2)