diff --git a/README.md b/README.md index f75ca5c..74e7734 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ I decide to write myself a simple Mathematica interpreter to learn more about Ha ![mmaclone](https://raw.githubusercontent.com/jyh1/mmaclone/master/demo.GIF) -## Running: +## Running (Using [Stack](https://github.com/commercialhaskell/stack)): ``` git clone https://github.com/jyh1/mmaclone.git cd mmaclone/mmaclone @@ -17,6 +17,9 @@ I decide to write myself a simple Mathematica interpreter to learn more about Ha stack exec mmaclone-exe ``` +## For more information please refer to the project [wiki](https://github.com/jyh1/mmaclone/wiki) (still under construction). + +## [Prebulid Windows Binary File]() ## Features that are likely to be added in future versions: 1. More mathematical functions (`Sin`, `Cos`, `Mod` etc...) diff --git a/demo.GIF b/demo.GIF index 2f84625..e93863c 100644 Binary files a/demo.GIF and b/demo.GIF differ diff --git a/demoScript.txt b/demoScript.txt index d437d2c..0c3036e 100644 --- a/demoScript.txt +++ b/demoScript.txt @@ -1,8 +1,8 @@ -rules={Log[x_ y_]:>Log[x]+Log[y],Log[x_^k_]:>k Log[x]} +rules:={Log[x_ y_]:>Log[x]+Log[y],Log[x_^k_]:>k Log[x]} Log[a (b c^d)^e] //. rules -If[#==0,1,# #0[#-1]]& /@NestList[(2 #)&,5,2] +(If[#==0,1,# #0[#-1]]&)/@NestList[(2 #)&,5,2] fib[n_]:=fib[n]=fib[n-1]+fib[n-2];fib[0]=fib[1]=1 Map[fib,Range/@Range[10],{2}] Print/@fib/@{10,100} -{#,Plus[##2]}& @@@(Range/@Range[2,10]) -%5[[Range[1,9,2],2]] +({#,Plus[##2]}&) @@@(Range/@Range[2,10]) +%[[Range[1,9,2],2]]