Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- def main(y: list, z: list, x: list):
- result = 0
- print(len(y))
- for i in range(len(y)):
- print(i)
- result += 54 * (((y[ceil(i / 2)] ** 2) - (69 * (x[i] ** 3)) - 55 * z[ceil(i / 2)]) ** 5)
- #print(result)
- return result
- print(main([-0.27, 0.5, 0.86, -0.61, -0.69, 0.17],
- [-0.49, -0.43, -0.72, -0.79, -0.45, 0.15],
- [0.42, 0.44, 0.29, -0.98, 0.83, -0.48]))
- print(main([0.75, -0.47, 0.28, 0.32, -0.12, -0.74],
- [-0.61, 0.92, 0.14, 0.38, -0.09, -0.05],
- [0.42, 0.11, 0.07, -0.54, -0.28, -0.72]))
Add Comment
Please, Sign In to add comment