Adaptive filter (LMS Algorithm)

Rex Dio's icon

Hello everyone. I'm trying create LMS adpative filter in MAX.
This topic (https://cycling74.com/forums/adaptive-filters) is nice, but im trying creating using max object only.
I tried to implement the update algorithm based on matlab equation function block (https://www.mathworks.com/help/dsp/ref/lmsupdate.html)

but it seems not working well. Can you guys help me see what's wrong ?

Test LMS UPDATE.maxpat
text/plain 30.60 KB

LMS ANC.maxpat
text/plain 1.46 KB