Demo entry 2842075

python

   

Submitted by anonymous on Oct 11, 2015 at 21:11
Language: Python 3. Code size: 362 Bytes.

def F(THETAprime, THETAe):			#ACCELERATION FUNCTION
  return g * ((THETAprime) / float(THETAe))    

...

for i in range(k - 1):				#EULER METHOD LOOP

        THETAe[i] = 300 + (0.005 * z[i])
        THETAprime = 301 - THETAe[i]
        t[i + 1] = t[i] + h
        z[i + 1] = z[i] + (h * w[i])
        w[i + 1] = w[i] + (h * F(THETAprime, THETAe[i]))

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).