Rectify my code

hello @singh.pankhil40

pls share the question link with me.
u have opened ur ur doubt from different location

actually i was asking for question link,but dont worry i got it
pls wait i m checking ur code

@singh.pankhil40
image

this is the issue.
either use abs(diff) or max(diff,-diff)

why this is giving a error because when diff is -ve -diff will be +ve so we will take -diff to be max of diff and -diff if diff is +ve we will take +ve diff to be max of +ve diff and -diff

yeah syntax u need to follow na.

max( maxload ,(diff,-diff)) ; // this is not correct

max(maxload,max(diff,-diff) ) ; // this is correct
max(maxload, abs(diff) ) ; // this is correct

it’s a pretty silly mistake
i will rectify it now