From 0d06790170ac4bc9cad3b488dae5ae75802d60bf Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 22 Mar 2023 20:26:38 -0700 Subject: Update Gentle_introduction_Inpla.md --- Gentle_introduction_Inpla.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gentle_introduction_Inpla.md b/Gentle_introduction_Inpla.md index c5b1e1a..3e4d21a 100644 --- a/Gentle_introduction_Inpla.md +++ b/Gentle_introduction_Inpla.md @@ -577,10 +577,10 @@ The sequence of `` must be finished with the otherwise - Example: Fibonacci number: ``` - fib(result) >< (int n) - | n == 0 => result~0 - | n == 1 => result~1 - | _ => fib(r1)~(n-1), fib(r2)~(n-2), Add(result, r2)~r1; + fib(r) >< (int n) + | n == 0 => r~0 + | n == 1 => r~1 + | _ => fib(r1)~(n-1), fib(r2)~(n-2), Add(r, r2)~r1; // * We cannot write result~(r1+r2) for Add(result, r2)~r1 // because r1, r2 may have not been connected to attributes in the anonymous agents, -- cgit v1.2.3