mirror of
https://github.com/ejeanboris/MDAF.git
synced 2025-08-14 22:28:29 +00:00
First Prototype To Iannick
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
|
||||
def main(args):
|
||||
"""
|
||||
'''
|
||||
>>> main([0,1])
|
||||
0.26
|
||||
|
||||
:param args: list of floats
|
||||
:return: float
|
||||
|
||||
"""
|
||||
|
||||
#_# dimmensions: 2
|
||||
'''
|
||||
for x in args:
|
||||
if x < -10 or x > 10:
|
||||
return 0
|
||||
@ -15,4 +14,4 @@ def main(args):
|
||||
|
||||
if __name__ == "__main__":
|
||||
import doctest
|
||||
doctest.testmod()
|
||||
doctest.testmod()
|
||||
|
Reference in New Issue
Block a user