From 1c7e8cc6f987a67e332731fa245387013983445a Mon Sep 17 00:00:00 2001 From: programarivm Date: Thu, 26 Sep 2019 21:50:50 +0100 Subject: [PATCH] cleanup --- 03-routines/Main.m | 10 +++++----- 03-routines/{MyMath.m => MyMathRoutines.m} | 0 README.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename 03-routines/{MyMath.m => MyMathRoutines.m} (100%) diff --git a/03-routines/Main.m b/03-routines/Main.m index 5747051..535a8e1 100644 --- a/03-routines/Main.m +++ b/03-routines/Main.m @@ -1,17 +1,17 @@ - d hello^MyMath + d hello^MyMathRoutines r "Enter n: ",n,! - s areaCircle=$$areaCircle^MyMath(n) + s areaCircle=$$areaCircle^MyMathRoutines(n) w "areaCircle(",n,") = ",areaCircle,! - s fibonacci=$$fibonacci^MyMath(n) + s fibonacci=$$fibonacci^MyMathRoutines(n) w "fibonacci(",n,") = ",fibonacci,! - s factorialByVal=$$factorialByVal^MyMath(n) + s factorialByVal=$$factorialByVal^MyMathRoutines(n) w "factorialByVal(",n,") = ",factorialByVal,! s m=n - do factorialByRef^MyMath(.n) + do factorialByRef^MyMathRoutines(.n) w "factorialByRef(",m,") = ",n,! diff --git a/03-routines/MyMath.m b/03-routines/MyMathRoutines.m similarity index 100% rename from 03-routines/MyMath.m rename to 03-routines/MyMathRoutines.m diff --git a/README.md b/README.md index 6fceeae..526adc4 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ Copy the examples into your `~/.fis-gtm/V6.3-003A_x86_64/r` folder and run: factorialByVal(9) = 362880 factorialByRef(9) = 362880 -> For further details also visit [MyMath.m](https://github.com/programarivm/mumps-examples/blob/master/03-routines/MyMath.m) +> For further details also visit [MyMathRoutines.m](https://github.com/programarivm/mumps-examples/blob/master/03-routines/MyMathRoutines.m) ## 4. Databases