Demo entry 6684851

suite

   

Submitted by anonymous on Dec 18, 2017 at 02:56
Language: Python. Code size: 297 Bytes.

def f(n, u0, v0, w0):
    u, v, w = u0, v0, w0
    for i in range(n):
        # on utilise des variable temporaires 
        u_temp = (7*u - 2*v +   w)/12
        v_temp = ( -u + 2*v -   w)/3
        w_temp = (  u - 2*v + 7*w)/12
        u, v, w = u_temp, v_temp, w_temp
    return u, v, w

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).