36 lines
861 B
Python
36 lines
861 B
Python
import algoritmo1, algoritmo2, algoritmo3, algoritmo4, algoritmo5
|
|
|
|
# algoritmo1
|
|
content = ""
|
|
for i in range(100):
|
|
content += f"{i} {algoritmo1.f(i)}\n"
|
|
with open("../plots/alg1.txt", "w") as file:
|
|
file.write(content)
|
|
|
|
# algoritmo2
|
|
content = ""
|
|
for i in range(100):
|
|
content += f"{i} {algoritmo2.f(i)}\n"
|
|
with open("../plots/alg2.txt", "w") as file:
|
|
file.write(content)
|
|
|
|
# algortimo3
|
|
content = ""
|
|
for i in range(100):
|
|
content += f"{i} {algoritmo3.f(i)}\n"
|
|
with open("../plots/alg3.txt", "w") as file:
|
|
file.write(content)
|
|
|
|
# algoritmo4
|
|
content = ""
|
|
for i in range(100):
|
|
content += f"{i} {algoritmo4.f(i)}\n"
|
|
with open("../plots/alg4.txt", "w") as file:
|
|
file.write(content)
|
|
|
|
# algoritmo5
|
|
content = ""
|
|
for i in range(100):
|
|
content += f"{i} {algoritmo5.f(i)}\n"
|
|
with open("../plots/alg5.txt", "w") as file:
|
|
file.write(content)
|