Skip to content

Instantly share code, notes, and snippets.

@alex4o
Created May 3, 2024 19:19
Show Gist options
  • Save alex4o/ab30127c834dd132a61d9b25a942388f to your computer and use it in GitHub Desktop.
Save alex4o/ab30127c834dd132a61d9b25a942388f to your computer and use it in GitHub Desktop.
vw = 100
vl = 0
vm = 100
vls = 100
ratio = 1
step = 0.00001
while vls > 0:
if vw == 0:
break
vw = vw - (vw/100) * step
# vl = vl - (vl/vw) * step + step
vls = vls - step
print(vl, vw, vls)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment