Skip to content

Programmer8484/Nave.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Nave.

Manual de la Nave

pip install ipywidgets import ipywidgets as widgets

ignition = widgets.ToggleButton( value=False, description='Iniciar Launch', button_style='success', tooltip='Engage your Launch', icon='rocket' )

output = widgets.Output()

display(ignition, output)

def on_value_change(change): with output: if change['new'] == True: print("Nave Iniciada!") else:
print("Nave Detenida")

ignition.observe(on_value_change, names='value') !pip install matplotlib !pip install numpy ##Niveles de oxígeno. #Muestra diez minútos de niveles de oxígeno en tu nave. import numpy as np import matplotlib.pyplot as plt data = np.random.default_rng(12345) oxy_nums = data.integers(low=0, high=10, size=10)

plt.bar(range(len(oxy_nums)), oxy_nums) plt.show()

Velocidad de la nave

#Muestra los segundos necesarios para pasar de 0 a 11200 metros por segundo, dada la aceleración de la nave en metros por segundo. endVelocity = 11200 startVelocity = 0 acceleration = 9.8 time = (endVelocity - startVelocity) / acceleration print("Tiempo para alcanzar la velocidad deseada = ", time)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published