mirror of
https://github.com/ejeanboris/MDAF.git
synced 2025-04-29 12:02:31 +00:00
12 lines
214 B
Python
12 lines
214 B
Python
#Import math library
|
|
|
|
|
|
def main(args):
|
|
'''
|
|
#_# dimmensions: 2
|
|
'''
|
|
for x in args:
|
|
if x < -1.2 or x > 1.2:
|
|
return 0
|
|
return (100*(args[1]-args[0])**2)+(1-args[0])**2
|